R

dh fly

public
rrixh Apr 15, 2024 Never 114
Clone
Lua dhFly_lulaslollipop.jar 330 lines (264 loc) | 11.01 KB
1
game:GetService("StarterGui"):SetCore("SendNotification",{
2
Title = "@rrixh";
3
Text = "daHood mobile fly";
4
Duration = 5;
5
});
6
--inst
7
local main = Instance.new("ScreenGui")
8
local Frame = Instance.new("Frame")
9
local up = Instance.new("TextButton")
10
local down = Instance.new("TextButton")
11
local onof = Instance.new("TextButton")
12
local TextLabel = Instance.new("TextLabel")
13
local plus = Instance.new("TextButton")
14
local speed = Instance.new("TextLabel")
15
local mine = Instance.new("TextButton");
16
17
--prop
18
19
main.Name = "main"
20
main.Parent = game.CoreGui
21
main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling;
22
23
Frame.Parent = main
24
Frame.BackgroundColor3 = Color3.fromRGB(001, 001, 001)
25
Frame.BorderColor3 = Color3.fromRGB(001, 001, 001)
26
Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
27
Frame.Size = UDim2.new(0, 300, 0, 154);
28
29
up.Name = "lift"
30
up.Parent = Frame
31
up.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
32
up.Size = UDim2.new(0, 44, 0, 28)
33
up.Font = Enum.Font.SourceSans
34
up.Text = "up"
35
up.TextColor3 = Color3.fromRGB(255, 255, 255)
36
up.TextSize = 12.000
37
38
down.Name = "downwards"
39
down.Parent = Frame
40
down.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
41
down.Position = UDim2.new(0, 0, 0.491228074, 0)
42
down.Size = UDim2.new(0, 44, 0, 28)
43
down.Font = Enum.Font.SourceSans
44
down.Text = "down"
45
down.TextColor3 = Color3.fromRGB(255, 255, 255)
46
down.TextSize = 10.000
47
48
onof.Name = "onof"
49
onof.Parent = Frame
50
onof.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
51
onof.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
52
onof.Size = UDim2.new(0, 56, 0, 28)
53
onof.Font = Enum.Font.SourceSans
54
onof.Text = "fly"
55
onof.TextColor3 = Color3.fromRGB(255, 255, 255)
56
onof.TextSize = 14.000
57
58
TextLabel.Parent = Frame
59
TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
60
TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
61
TextLabel.Size = UDim2.new(0, 100, 0, 28)
62
TextLabel.Font = Enum.Font.SourceSans
63
TextLabel.Text = "hood fly"
64
TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
65
TextLabel.TextScaled = true
66
TextLabel.TextSize = 14.000
67
TextLabel.TextWrapped = true
68
69
plus.Name = "plus"
70
plus.Parent = Frame
71
plus.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
72
plus.Position = UDim2.new(0.231578946, 0, 0, 0)
73
plus.Size = UDim2.new(0, 45, 0, 28)
74
plus.Font = Enum.Font.SourceSans
75
plus.Text = "+"
76
plus.TextColor3 = Color3.fromRGB(255, 255, 255)
77
plus.TextScaled = true
78
plus.TextSize = 14.000
79
plus.TextWrapped = true
80
81
speed.Name = "speed"
82
speed.Parent = Frame
83
speed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
84
speed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
85
speed.Size = UDim2.new(0, 44, 0, 28)
86
speed.Font = Enum.Font.SourceSans
87
speed.Text = "1"
88
speed.TextColor3 = Color3.fromRGB(255, 255, 255)
89
speed.TextScaled = true
90
speed.TextSize = 14.000
91
speed.TextWrapped = true
92
93
mine.Name = "mine"
94
mine.Parent = Frame
95
mine.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
96
mine.Position = UDim2.new(0.231578946, 0, 0.491228074, 0)
97
mine.Size = UDim2.new(0, 45, 0, 29)
98
mine.Font = Enum.Font.SourceSans
99
mine.Text = "-"
100
mine.TextColor3 = Color3.fromRGB(255, 255, 255)
101
mine.TextScaled = true
102
mine.TextSize = 14.000
103
mine.TextWrapped = true
104
105
speeds = 1
106
107
local speaker = game:GetService("Players").LocalPlayer
108
109
local chr = game.Players.LocalPlayer.Character
110
local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
111
112
nowe = false
113
114
Frame.Active = true -- main = gui
115
Frame.Draggable = true
116
117
onof.MouseButton1Down:connect(function()
118
119
if nowe == true then
120
nowe = false
121
122
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
123
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
124
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
125
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
126
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
127
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
128
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
129
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
130
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
131
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
132
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
133
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
134
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
135
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
136
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
137
speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
138
else
139
nowe = true
140
141
142
143
for i = 1, speeds do
144
spawn(function()
145
146
local hb = game:GetService("RunService").Heartbeat
147
148
149
tpwalking = true
150
local chr = game.Players.LocalPlayer.Character
151
local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
152
while tpwalking and hb:Wait() and chr and hum and hum.Parent do
153
if hum.MoveDirection.Magnitude > 0 then
154
chr:TranslateBy(hum.MoveDirection)
155
end
156
end
157
158
end)
159
end
160
game.Players.LocalPlayer.Character.Animate.Disabled = true
161
local Char = game.Players.LocalPlayer.Character
162
local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
163
164
for i,v in next, Hum:GetPlayingAnimationTracks() do
165
v:AdjustSpeed(0)
166
end
167
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
168
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
169
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
170
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
171
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
172
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
173
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
174
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
175
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
176
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
177
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
178
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
179
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
180
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
181
speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
182
speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
183
end
184
185
186
187
188
189
local plr = game.Players.LocalPlayer
190
local UpperTorso = plr.Character.LowerTorso
191
local flying = true
192
local deb = true
193
local ctrl = {f = 0, b = 0, l = 0, r = 0}
194
local lastctrl = {f = 0, b = 0, l = 0, r = 0}
195
local maxspeed = 50
196
local speed = 0
197
198
199
local bg = Instance.new("BodyGyro", UpperTorso)
200
bg.P = 9e4
201
bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
202
bg.cframe = UpperTorso.CFrame
203
local bv = Instance.new("BodyVelocity", UpperTorso)
204
bv.velocity = Vector3.new(0,0.1,0)
205
bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
206
if nowe == true then
207
plr.Character.Humanoid.PlatformStand = true
208
end
209
while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
210
wait()
211
212
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
213
speed = speed+.5+(speed/maxspeed)
214
if speed > maxspeed then
215
speed = maxspeed
216
end
217
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
218
speed = speed-1
219
if speed < 0 then
220
speed = 0
221
end
222
end
223
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
224
bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
225
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
226
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
227
bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
228
else
229
bv.velocity = Vector3.new(0,0,0)
230
end
231
232
bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
233
end
234
ctrl = {f = 0, b = 0, l = 0, r = 0}
235
lastctrl = {f = 0, b = 0, l = 0, r = 0}
236
speed = 0
237
bg:Destroy()
238
bv:Destroy()
239
plr.Character.Humanoid.PlatformStand = false
240
game.Players.LocalPlayer.Character.Animate.Disabled = false
241
tpwalking = false
242
243
244
245
246
247
248
249
250
251
end)
252
253
254
up.MouseButton1Down:connect(function()
255
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
256
257
end)
258
259
260
down.MouseButton1Down:connect(function()
261
262
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-2,0)
263
264
end)
265
266
267
game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
268
wait(0.7)
269
game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
270
game.Players.LocalPlayer.Character.Animate.Disabled = false
271
272
end)
273
274
275
plus.MouseButton1Down:connect(function()
276
speeds = speeds + 1
277
speed.Text = speeds
278
if nowe == true then
279
280
281
tpwalking = false
282
for i = 1, speeds do
283
spawn(function()
284
285
local hb = game:GetService("RunService").Heartbeat
286
287
288
tpwalking = true
289
local chr = game.Players.LocalPlayer.Character
290
local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
291
while tpwalking and hb:Wait() and chr and hum and hum.Parent do
292
if hum.MoveDirection.Magnitude > 0 then
293
chr:TranslateBy(hum.MoveDirection)
294
end
295
end
296
297
end)
298
end
299
end
300
end)
301
mine.MouseButton1Down:connect(function()
302
if speeds == 1 then
303
speed.Text = 'can not be less than 1'
304
wait(1)
305
speed.Text = speeds
306
else
307
speeds = speeds - 1
308
speed.Text = speeds
309
if nowe == true then
310
tpwalking = false
311
for i = 1, speeds do
312
spawn(function()
313
314
local hb = game:GetService("RunService").Heartbeat
315
316
317
tpwalking = true
318
local chr = game.Players.LocalPlayer.Character
319
local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
320
while tpwalking and hb:Wait() and chr and hum and hum.Parent do
321
if hum.MoveDirection.Magnitude > 0 then
322
chr:TranslateBy(hum.MoveDirection)
323
end
324
end
325
326
end)
327
end
328
end
329
end
330
end)