View difference between Paste ID: Kieq5sh5 and HegiagTN
SHOW: | | - or go back to the newest paste.
1
2
spawn(function()
3
local message = Instance.new("Message",workspace)
4
message.Text = "Fe penisito loaded"
5
wait(11)
6
message:Destroy()
7
end)
8
9
local name = "Torso"
10
if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").RigType == Enum.HumanoidRigType.R15 then
11
    name = "UpperTorso"
12
end
13
14
local ch = game.Players.LocalPlayer.Character
15
local prt=Instance.new("Model", workspace)
16
local z1 =  Instance.new("Part", prt)
17
z1.Name="Torso"
18
z1.CanCollide = false
19
z1.Anchored = true
20
local z2  =Instance.new("Part", prt)
21
z2.Name="Head"
22
z2.Anchored = true
23
z2.CanCollide = false
24
local z3 =Instance.new("Humanoid", prt)
25
z3.Name="Humanoid"
26
z1.Position = Vector3.new(0,9999,0)
27
z2.Position = Vector3.new(0,9991,0)
28
 game.Players.LocalPlayer.Character=prt
29
wait(5)
30
game.Players.LocalPlayer.Character=ch
31
wait(6)
32
game:GetService('RunService').Stepped:connect(function()
33
game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = true
34
end)
35
game:GetService('RunService').RenderStepped:connect(function()
36
game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = true
37
end)
38
plr = game.Players.LocalPlayer
39
mouse = plr:GetMouse()
40
41
game.Players.LocalPlayer.Character.HumanoidRootPart:Destroy() 
42
43
local Hum = Instance.new("Humanoid")
44
    
45
46
47
Hum.Parent = game.Players.LocalPlayer.Character
48
game.Players.LocalPlayer.Character.Humanoid.Parent = game.Lighting
49
--game.Players.LocalPlayer.Character:FindFirstChild("Torso").Name = "Head"
50
--game.Players.LocalPlayer.Character:FindFirstChild("Head"):Destroy()
51
--game.Players.LocalPlayer.Character:FindFirstChild(name):Destroy()
52
--game.Players.LocalPlayer.Character.HumanoidRootPart.Name = "GaiPArt"
53
local root =game.Players.LocalPlayer.Character["Right Arm"] -- game.Players.LocalPlayer.Character["Left Leg"]
54
root.Name = "HumanoidRootPart"
55
56
Hum.HipHeight = 5
57
58
           
59
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
60
61
62
63
64
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
65
66
if v.Name ~=root.Name and v.Name ~="Humanoid" and v.Name ~= "Left Arm" and v.Name ~= "Left Leg" and v.Name ~= "Right Leg" then
67
68
v:Destroy()
69
70
elseif v.Name == "Left Arm" then
71
72
local bp = Instance.new("BodyPosition",v)
73
bp.MaxForce = Vector3.new(99999,99999,99999)
74
local bg = Instance.new("BodyGyro",v)
75
bg.MaxTorque = Vector3.new(9999999,9999999,999999)
76
 
77
spawn(function()
78
bp.D = 300
79
while true do
80
bp.Position = root.Position+Vector3.new(0,1.8+1.8+1.8-0.3,0)
81
wait()
82
end
83
84
end)
85
86
elseif v.Name == "Left Leg" then
87
88
local bp = Instance.new("BodyPosition",v)
89
bp.MaxForce = Vector3.new(99999,99999,99999)
90
local bg = Instance.new("BodyGyro",v)
91
bg.MaxTorque = Vector3.new(9999999,9999999,999999)
92
       
93
spawn(function()
94
bp.D = 300
95
while true do
96
bp.Position = root.Position+Vector3.new(0,1.8-0.3,0)
97
wait()
98
end
99
100
end)
101
102
elseif v.Name == "Right Leg" then
103
104
local bp = Instance.new("BodyPosition",v)
105
bp.MaxForce = Vector3.new(99999,99999,99999)
106
local bg = Instance.new("BodyGyro",v)
107
bg.MaxTorque = Vector3.new(9999999,9999999,999999)
108
spawn(function()
109
bp.D = 300
110
while true do
111
bp.Position = root.Position+Vector3.new(0,1.8+1.8-0.3,0)
112
wait()
113
end
114
115
end)
116
elseif v.Name == root.Name then
117
118
local bg = Instance.new("BodyGyro",v)
119
bg.MaxTorque = Vector3.new(9999999,9999999,999999)
120
bg.CFrame = CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
121
122
end
123
124
125
end
126
127
--local se = Instance.new("SelectionBox",root)
128
--se.Adornee = root
129
130
131
power = 999999 -- change this to make it more or less powerful
132
133
power = power*10
134
135
---
136
wait(.1)
137
--local bambam = Instance.new("BodyThrust")
138
--bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
139
--bambam.Force = Vector3.new(power,0,power)
140
--bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position 
141
142
143
144
145
local mouse = game.Players.LocalPlayer:GetMouse()
146
147
148
local plr = game.Players.LocalPlayer
149
local torso = root
150
local flying = true
151
local deb = true
152
local ctrl = {f = 0, b = 0, l = 0, r = 0}
153
local lastctrl = {f = 0, b = 0, l = 0, r = 0}
154
local maxspeed = 120
155
local speed = 15
156
157
158
---local bambam = Instance.new("BodyThrust")
159
---bambam.Parent = torso
160
--bambam.Force = Vector3.new(9999999,0,9999999)
161
--bambam.Location = torso.Position
162
163
164
---
165
166
167
function Fly()
168
local bg = Instance.new("BodyGyro", torso)
169
bg.P = 9e4
170
bg.maxTorque = Vector3.new(0, 0, 0)
171
bg.cframe = torso.CFrame
172
local bv = Instance.new("BodyVelocity", torso)
173
bv.velocity = Vector3.new(0,0,0)
174
bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
175
repeat wait()
176
177
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
178
speed = speed+.2
179
if speed > maxspeed then
180
speed = maxspeed
181
end
182
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
183
speed = speed-1
184
if speed < 0 then
185
speed = 0
186
end
187
end
188
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
189
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
190
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
191
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
192
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
193
else
194
bv.velocity = Vector3.new(0,0,0)
195
end
196
197
until not flying
198
ctrl = {f = 0, b = 0, l = 0, r = 0}
199
lastctrl = {f = 0, b = 0, l = 0, r = 0}
200
speed = 0
201
bg:Destroy()
202
bv:Destroy()
203
204
end
205
mouse.KeyDown:connect(function(key)
206
if key:lower() == "e" then
207
if flying then flying = false
208
else
209
flying = true
210
Fly()
211
end
212
elseif key:lower() == "w" then
213
ctrl.f = 1
214
elseif key:lower() == "s" then
215
ctrl.b = -1
216
elseif key:lower() == "a" then
217
ctrl.l = -1
218
elseif key:lower() == "d" then
219
ctrl.r = 1
220
end
221
end)
222
mouse.KeyUp:connect(function(key)
223
if key:lower() == "w" then
224
ctrl.f = 0
225
elseif key:lower() == "s" then
226
ctrl.b = 0
227
elseif key:lower() == "a" then
228
ctrl.l = 0
229
elseif key:lower() == "d" then
230
ctrl.r = 0
231
elseif key:lower() == "r" then
232
233
end
234
end)
235
Fly()