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