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