SHOW:
|
|
- or go back to the newest paste.
1 | - | -- Objects |
1 | + | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | local FEGui = Instance.new("ScreenGui") | |
172 | local MainBody = Instance.new("Frame") | |
173 | local Title = Instance.new("Frame") | |
174 | local Bottom = Instance.new("Frame") | |
175 | local TextLabel = Instance.new("TextLabel") | |
176 | local Animations = Instance.new("TextButton") | |
177 | local CreeperR6 = Instance.new("TextButton") | |
178 | local CreeperR15 = Instance.new("TextButton") | |
179 | local AnimationsR15 = Instance.new("TextButton") | |
180 | local FEDropHats = Instance.new("TextButton") | |
181 | local NoLimbs = Instance.new("TextButton") | |
182 | local FEbtools = Instance.new("TextButton") | |
183 | local FlyR6 = Instance.new("TextButton") | |
184 | local FEinvisible = Instance.new("TextButton") | |
185 | local Glitchmax = Instance.new("TextButton") | |
186 | local FEFloatinghead = Instance.new("TextButton") | |
187 | local Inform = Instance.new("TextButton") | |
188 | local TextLabel_2 = Instance.new("TextLabel") | |
189 | ||
190 | -- Properties | |
191 | ||
192 | FEGui.Name = "FE Gui" | |
193 | FEGui.Parent = game.Players.LocalPlayer.PlayerGui | |
194 | FEGui.ResetOnSpawn = false | |
195 | ||
196 | MainBody.Name = "Main Body" | |
197 | MainBody.Parent = FEGui | |
198 | MainBody.Active = true | |
199 | MainBody.BackgroundColor3 = Color3.new(0, 0, 0) | |
200 | MainBody.Draggable = true | |
201 | MainBody.Position = UDim2.new(0.536635697, 0, 0.0425101332, 0) | |
202 | MainBody.Size = UDim2.new(0, 353, 0, 270) | |
203 | ||
204 | Title.Name = "Title" | |
205 | Title.Parent = MainBody | |
206 | Title.BackgroundColor3 = Color3.new(0.0313726, 0.321569, 1) | |
207 | Title.Position = UDim2.new(0.000818580389, 0, -0.000419855118, 0) | |
208 | Title.Size = UDim2.new(0, 353, 0, 27) | |
209 | ||
210 | Bottom.Name = "Bottom" | |
211 | Bottom.Parent = MainBody | |
212 | Bottom.BackgroundColor3 = Color3.new(0.0235294, 0.627451, 1) | |
213 | Bottom.Position = UDim2.new(0.000818580389, 0, 0.0986804739, 0) | |
214 | Bottom.Size = UDim2.new(0, 353, 0, 16) | |
215 | ||
216 | TextLabel.Parent = MainBody | |
217 | TextLabel.BackgroundColor3 = Color3.new(0.0313726, 0.321569, 1) | |
218 | TextLabel.BorderSizePixel = 0 | |
219 | TextLabel.Size = UDim2.new(0, 200, 0, 19) | |
220 | TextLabel.Font = Enum.Font.SourceSansBold | |
221 | TextLabel.Text = "Troll FE" | |
222 | TextLabel.TextColor3 = Color3.new(1, 1, 1) | |
223 | TextLabel.TextSize = 14 | |
224 | TextLabel.TextWrapped = true | |
225 | TextLabel.TextXAlignment = Enum.TextXAlignment.Left | |
226 | ||
227 | Animations.Name = "Animations" | |
228 | Animations.Parent = MainBody | |
229 | Animations.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
230 | Animations.Position = UDim2.new(0.698873341, 0, 0.194331974, 0) | |
231 | Animations.Size = UDim2.new(0, 106, 0, 27) | |
232 | Animations.Font = Enum.Font.SciFi | |
233 | Animations.Text = "Animations" | |
234 | Animations.TextColor3 = Color3.new(1, 1, 1) | |
235 | Animations.TextSize = 14 | |
236 | ||
237 | Animations.MouseButton1Down:connect(function() | |
238 | local Gui = Instance.new("ScreenGui", game.CoreGui) | |
239 | Gui.Name = "FE Animations" | |
240 | local Background = Instance.new("Frame",Gui) | |
241 | Background.Name = "Background" | |
242 | Background.Active = true | |
243 | Background.BackgroundColor3 = Color3.fromRGB(220,220,255) | |
244 | Background.Transparency = 0.3 | |
245 | Background.BorderSizePixel = 5 | |
246 | Background.Draggable = true | |
247 | Background.Position = UDim2.new(0,300,0,300) | |
248 | Background.Size = UDim2.new(0,345,0,190) | |
249 | local Title = Instance.new("TextLabel",Background) | |
250 | Title.BackgroundTransparency = 1 | |
251 | Title.Position = UDim2.new(0,0,0,-80) | |
252 | Title.Size = UDim2.new(0,290,1,0) | |
253 | Title.Font = "SourceSansLight" | |
254 | Title.FontSize = "Size18" | |
255 | Title.Text = "FE Animations [by illremember]" | |
256 | Title.TextColor3 = Color3.fromRGB(20,20,25) | |
257 | ||
258 | local Chop = Instance.new("TextButton", Background) | |
259 | Chop.Name = "Chop" | |
260 | Chop.BackgroundColor3 = Color3.fromRGB(20,20,20) | |
261 | Chop.BackgroundTransparency = 0.1 | |
262 | Chop.BorderSizePixel = 0 | |
263 | Chop.Position = UDim2.new(0,120,0,30) | |
264 | Chop.Size = UDim2.new(0,100,0,30) | |
265 | Chop.Font = "SourceSansItalic" | |
266 | Chop.FontSize = "Size18" | |
267 | Chop.Text = "Chop" | |
268 | Chop.TextColor3 = Color3.fromRGB(230,230,230) | |
269 | Chop.TextWrapped = true | |
270 | ||
271 | local Dance = Chop:Clone() | |
272 | Dance.Name = "Dance" | |
273 | Dance.Parent = Background | |
274 | Dance.Position = UDim2.new(0,120,0,70) | |
275 | Dance.Text = "Dance" | |
276 | ||
277 | local ArmsOut = Chop:Clone() | |
278 | ArmsOut.Name = "ArmsOut" | |
279 | ArmsOut.Parent = Background | |
280 | ArmsOut.Position = UDim2.new(0,10,0,110) | |
281 | ArmsOut.Text = "ArmsOut" | |
282 | ||
283 | local Stab = Chop:Clone() | |
284 | Stab.Name = "Stab" | |
285 | Stab.Parent = Background | |
286 | Stab.Position = UDim2.new(0,10,0,30) | |
287 | Stab.Text = "Stab" | |
288 | ||
289 | local SmellyRun = Chop:Clone() | |
290 | SmellyRun.Name = "SmellyRun" | |
291 | SmellyRun.Parent = Background | |
292 | SmellyRun.Position = UDim2.new(0,10,0,70) | |
293 | SmellyRun.Text = "SmellyRun" | |
294 | ||
295 | local rando = Chop:Clone() | |
296 | rando.Name = "rando" | |
297 | rando.Parent = Background | |
298 | rando.Position = UDim2.new(0,120,0,110) | |
299 | rando.Text = "rando" | |
300 | ||
301 | local hmm = Chop:Clone() | |
302 | hmm.Name = "hmm" | |
303 | hmm.Parent = Background | |
304 | hmm.Position = UDim2.new(0,120,0,150) | |
305 | hmm.Text = "hmm" | |
306 | ||
307 | local Kick = Chop:Clone() | |
308 | Kick.Name = "Kick" | |
309 | Kick.Parent = Background | |
310 | Kick.Position = UDim2.new(0,10,0,150) | |
311 | Kick.Size = UDim2.new(0,100,0,30) | |
312 | Kick.Text = "Kick" | |
313 | ||
314 | local Flying = Chop:Clone() | |
315 | Flying.Name = "Flying" | |
316 | Flying.Parent = Background | |
317 | Flying.Position = UDim2.new(0,230,0,30) | |
318 | Flying.Size = UDim2.new(0,100,0,30) | |
319 | Flying.Text = "Flying" | |
320 | ||
321 | local Arms = Chop:Clone() | |
322 | Arms.Name = "Arms" | |
323 | Arms.Parent = Background | |
324 | Arms.Position = UDim2.new(0,230,0,70) | |
325 | Arms.Size = UDim2.new(0,100,0,30) | |
326 | Arms.Text = "Arms" | |
327 | ||
328 | local Sword = Chop:Clone() | |
329 | Sword.Name = "Sword" | |
330 | Sword.Parent = Background | |
331 | Sword.Position = UDim2.new(0,230,0,110) | |
332 | Sword.Size = UDim2.new(0,100,0,30) | |
333 | Sword.Text = "Sword" | |
334 | ||
335 | local Insane = Chop:Clone() | |
336 | Insane.Name = "Insane" | |
337 | Insane.Parent = Background | |
338 | Insane.Position = UDim2.new(0,230,0,150) | |
339 | Insane.Size = UDim2.new(0,100,0,30) | |
340 | Insane.Text = "Insane" | |
341 | ||
342 | -- | |
343 | local plr = game.Players.LocalPlayer | |
344 | ||
345 | local mouse = plr:GetMouse() | |
346 | ||
347 | lpc = game.Players.LocalPlayer.Character | |
348 | ||
349 | weld1 = Instance.new("Weld") | |
350 | ||
351 | Chop.MouseButton1Down:connect(function() | |
352 | local gg = mouse.Target | |
353 | if gg ~= nil then | |
354 | for i,v in pairs(game.Players:GetPlayers()) do | |
355 | AnimationId = "33169596" | |
356 | local Anim = Instance.new("Animation") | |
357 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
358 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
359 | k:Play() | |
360 | k:AdjustSpeed(1) | |
361 | end | |
362 | end | |
363 | end) | |
364 | ||
365 | Insane.MouseButton1Down:connect(function() | |
366 | local gg = mouse.Target | |
367 | if gg ~= nil then | |
368 | for i,v in pairs(game.Players:GetPlayers()) do | |
369 | AnimationId = "33796059" | |
370 | local Anim = Instance.new("Animation") | |
371 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
372 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
373 | k:Play() | |
374 | k:AdjustSpeed(10000) | |
375 | end | |
376 | end | |
377 | end) | |
378 | ||
379 | Arms.MouseButton1Down:connect(function() | |
380 | local gg = mouse.Target | |
381 | if gg ~= nil then | |
382 | for i,v in pairs(game.Players:GetPlayers()) do | |
383 | AnimationId = "33169583" | |
384 | local Anim = Instance.new("Animation") | |
385 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
386 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
387 | k:Play() | |
388 | k:AdjustSpeed(1) | |
389 | end | |
390 | end | |
391 | end) | |
392 | ||
393 | Sword.MouseButton1Click:connect(function() | |
394 | local gg = mouse.Target | |
395 | if gg ~= nil then | |
396 | for i,v in pairs(game.Players:GetPlayers()) do | |
397 | AnimationId = "35978879" | |
398 | local Anim = Instance.new("Animation") | |
399 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
400 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
401 | k:Play() | |
402 | k:AdjustSpeed(1) | |
403 | end | |
404 | end | |
405 | end) | |
406 | ||
407 | hmm.MouseButton1Down:connect(function() | |
408 | local gg = mouse.Target | |
409 | if gg ~= nil then | |
410 | for i,v in pairs(game.Players:GetPlayers()) do | |
411 | AnimationId = "33855276" | |
412 | local Anim = Instance.new("Animation") | |
413 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
414 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
415 | k:Play() | |
416 | k:AdjustSpeed(1) | |
417 | end | |
418 | end | |
419 | end) | |
420 | ||
421 | rando.MouseButton1Down:connect(function() | |
422 | local gg = mouse.Target | |
423 | if gg ~= nil then | |
424 | for i,v in pairs(game.Players:GetPlayers()) do | |
425 | AnimationId = "48977286" | |
426 | local Anim = Instance.new("Animation") | |
427 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
428 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
429 | k:Play() | |
430 | k:AdjustSpeed(1) | |
431 | end | |
432 | end | |
433 | end) | |
434 | ||
435 | Dance.MouseButton1Down:connect(function() | |
436 | local gg = mouse.Target | |
437 | if gg ~= nil then | |
438 | for i,v in pairs(game.Players:GetPlayers()) do | |
439 | AnimationId = "35654637" | |
440 | local Anim = Instance.new("Animation") | |
441 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
442 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
443 | k:Play() | |
444 | k:AdjustSpeed(1) | |
445 | end | |
446 | end | |
447 | end) | |
448 | ||
449 | Stab.MouseButton1Down:connect(function() | |
450 | local gg = mouse.Target | |
451 | if gg ~= nil then | |
452 | for i,v in pairs(game.Players:GetPlayers()) do | |
453 | AnimationId = "66703241" | |
454 | local Anim = Instance.new("Animation") | |
455 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
456 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
457 | k:Play() | |
458 | k:AdjustSpeed(1) | |
459 | end | |
460 | end | |
461 | end) | |
462 | ||
463 | Kick.MouseButton1Down:connect(function() | |
464 | local gg = mouse.Target | |
465 | if gg ~= nil then | |
466 | for i,v in pairs(game.Players:GetPlayers()) do | |
467 | AnimationId = "45737360" | |
468 | local Anim = Instance.new("Animation") | |
469 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
470 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
471 | k:Play() | |
472 | k:AdjustSpeed(1) | |
473 | end | |
474 | end | |
475 | end) | |
476 | ||
477 | Flying.MouseButton1Down:connect(function() | |
478 | flying = not flying | |
479 | repeat wait() | |
480 | until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") | |
481 | local mouse = game.Players.LocalPlayer:GetMouse() | |
482 | repeat wait() until mouse | |
483 | local plr = game.Players.LocalPlayer | |
484 | local torso = plr.Character.Torso | |
485 | local deb = true | |
486 | local ctrl = {f = 0, b = 0, l = 0, r = 0} | |
487 | local lastctrl = {f = 0, b = 0, l = 0, r = 0} | |
488 | local maxspeed = 70 | |
489 | local speed = 0 | |
490 | if flying then | |
491 | Fly.BackgroundColor3 = loc | |
492 | else | |
493 | Fly.BackgroundColor3 = col | |
494 | end | |
495 | ||
496 | function FlyFunction() | |
497 | local bg = Instance.new("BodyGyro", torso) | |
498 | bg.P = 9e4 | |
499 | bg.maxTorque = Vector3.new(9e9, 9e9, 9e9) | |
500 | bg.cframe = torso.CFrame | |
501 | local bv = Instance.new("BodyVelocity", torso) | |
502 | bv.velocity = Vector3.new(0,0.1,0) | |
503 | bv.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
504 | repeat wait() | |
505 | plr.Character.Humanoid.PlatformStand = true | |
506 | if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then | |
507 | speed = speed+.5+(speed/maxspeed) | |
508 | if speed > maxspeed then | |
509 | speed = maxspeed | |
510 | end | |
511 | elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then | |
512 | speed = speed-1 | |
513 | if speed < 0 then | |
514 | speed = 0 | |
515 | end | |
516 | end | |
517 | if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then | |
518 | 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 | |
519 | lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r} | |
520 | elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then | |
521 | 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 | |
522 | else | |
523 | bv.velocity = Vector3.new(0,0.1,0) | |
524 | end | |
525 | bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0) | |
526 | until not flying | |
527 | ctrl = {f = 0, b = 0, l = 0, r = 0} | |
528 | lastctrl = {f = 0, b = 0, l = 0, r = 0} | |
529 | speed = 0 | |
530 | bg:Destroy() | |
531 | bv:Destroy() | |
532 | plr.Character.Humanoid.PlatformStand = false | |
533 | end | |
534 | mouse.KeyDown:connect(function(key) | |
535 | if key:lower() == "w" then | |
536 | ctrl.f = 1 | |
537 | elseif key:lower() == "s" then | |
538 | ctrl.b = -1 | |
539 | elseif key:lower() == "a" then | |
540 | ctrl.l = -1 | |
541 | elseif key:lower() == "d" then | |
542 | ctrl.r = 1 | |
543 | end | |
544 | end) | |
545 | mouse.KeyUp:connect(function(key) | |
546 | if key:lower() == "w" then | |
547 | ctrl.f = 0 | |
548 | elseif key:lower() == "s" then | |
549 | ctrl.b = 0 | |
550 | elseif key:lower() == "a" then | |
551 | ctrl.l = 0 | |
552 | elseif key:lower() == "d" then | |
553 | ctrl.r = 0 | |
554 | end | |
555 | end) | |
556 | FlyFunction() | |
557 | end) | |
558 | ||
559 | SmellyRun.MouseButton1Down:connect(function() | |
560 | local gg = mouse.Target | |
561 | if gg ~= nil then | |
562 | for i,v in pairs(game.Players:GetPlayers()) do | |
563 | AnimationId = "30235165" | |
564 | local Anim = Instance.new("Animation") | |
565 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
566 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
567 | k:Play() | |
568 | k:AdjustSpeed(1) | |
569 | end | |
570 | end | |
571 | end) | |
572 | ||
573 | ArmsOut.MouseButton1Down:connect(function() | |
574 | local gg = mouse.Target | |
575 | if gg ~= nil then | |
576 | for i,v in pairs(game.Players:GetPlayers()) do | |
577 | AnimationId = "27432691" | |
578 | local Anim = Instance.new("Animation") | |
579 | Anim.AnimationId = "rbxassetid://"..AnimationId | |
580 | local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
581 | k:Play() | |
582 | k:AdjustSpeed(1) | |
583 | end | |
584 | end | |
585 | end) | |
586 | end) | |
587 | ||
588 | CreeperR6.Name = "Creeper R6" | |
589 | CreeperR6.Parent = MainBody | |
590 | CreeperR6.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
591 | CreeperR6.Position = UDim2.new(-0.000271856785, 0, 0.194331974, 0) | |
592 | CreeperR6.Size = UDim2.new(0, 106, 0, 27) | |
593 | CreeperR6.Font = Enum.Font.SciFi | |
594 | CreeperR6.Text = "Creeper (R6)" | |
595 | CreeperR6.TextColor3 = Color3.new(1, 1, 1) | |
596 | CreeperR6.TextSize = 14 | |
597 | ||
598 | CreeperR6.MouseButton1Down:connect(function() | |
599 | game.Players.LocalPlayer.Character.Head.Mesh:Destroy() | |
600 | game.Players.LocalPlayer.Character["Left Arm"]:Destroy() | |
601 | game.Players.LocalPlayer.Character["Right Arm"]:Destroy() | |
602 | end) | |
603 | ||
604 | CreeperR15.Name = "Creeper R15" | |
605 | CreeperR15.Parent = MainBody | |
606 | CreeperR15.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
607 | CreeperR15.Position = UDim2.new(0.349042743, 0, 0.192480117, 0) | |
608 | CreeperR15.Size = UDim2.new(0, 106, 0, 27) | |
609 | CreeperR15.Font = Enum.Font.SciFi | |
610 | CreeperR15.Text = "Creeper (R15)" | |
611 | CreeperR15.TextColor3 = Color3.new(1, 1, 1) | |
612 | CreeperR15.TextSize = 14 | |
613 | ||
614 | CreeperR15.MouseButton1Down:connect(function() | |
615 | game.Players.LocalPlayer.Character.Head.Mesh:Destroy() | |
616 | game.Players.LocalPlayer.Character.LeftHand:Destroy() | |
617 | game.Players.LocalPlayer.Character.LeftLowerArm:Destroy() | |
618 | game.Players.LocalPlayer.Character.LeftUpperArm:Destroy() | |
619 | game.Players.LocalPlayer.Character.RightHand:Destroy() | |
620 | game.Players.LocalPlayer.Character.RightLowerArm:Destroy() | |
621 | game.Players.LocalPlayer.Character.RightUpperArm:Destroy() | |
622 | end) | |
623 | ||
624 | AnimationsR15.Name = "Animations R15" | |
625 | AnimationsR15.Parent = MainBody | |
626 | AnimationsR15.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
627 | AnimationsR15.Position = UDim2.new(0.698873341, 0, 0.34988755, 0) | |
628 | AnimationsR15.Size = UDim2.new(0, 106, 0, 27) | |
629 | AnimationsR15.Font = Enum.Font.SciFi | |
630 | AnimationsR15.Text = "Animations (R15)" | |
631 | AnimationsR15.TextColor3 = Color3.new(1, 1, 1) | |
632 | AnimationsR15.TextSize = 14 | |
633 | ||
634 | AnimationsR15.MouseButton1Down:connect(function() | |
635 | loadstring(Game:GetObjects("rbxassetid://1202558084")[1].Source)() | |
636 | end) | |
637 | ||
638 | FEDropHats.Name = "FE DropHats" | |
639 | FEDropHats.Parent = MainBody | |
640 | FEDropHats.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
641 | FEDropHats.Position = UDim2.new(0.347598553, 0, 0.34988755, 0) | |
642 | FEDropHats.Size = UDim2.new(0, 106, 0, 27) | |
643 | FEDropHats.Font = Enum.Font.SciFi | |
644 | FEDropHats.Text = "FE DropHats" | |
645 | FEDropHats.TextColor3 = Color3.new(1, 1, 1) | |
646 | FEDropHats.TextSize = 14 | |
647 | ||
648 | FEDropHats.MouseButton1Down:connect(function() | |
649 | local a=Instance.new("ScreenGui")a.Parent=game.CoreGui;local b=Instance.new("Frame")b.BackgroundTransparency=1;b.Parent=a;local c=Instance.new("TextButton")c.Active=true;c.BackgroundColor3=Color3.new(0.827451,0,0.0117647)c.BorderSizePixel=0;c.Name="topbar"c.Position=UDim2.new(4.84556389,0,3.46589231,0)c.Selectable=true;c.Size=UDim2.new(0,297,0,31)c.Style=Enum.ButtonStyle.Custom;c.Font=Enum.Font.Legacy;c.FontSize=Enum.FontSize.Size14;c.Text=""c.Draggable=true;c.Parent=b;local d=Instance.new("Frame")d.BackgroundColor3=Color3.new(0.678431,0,0.00784314)d.BackgroundTransparency=0.55000001192093;d.BorderSizePixel=0;d.Size=UDim2.new(0,297,0,160)d.Draggable=true;d.Parent=c;local e=Instance.new("TextButton")e.Active=true;e.BackgroundColor3=Color3.new(0.713726,0.121569,0.133333)e.Position=UDim2.new(0.0404040404,0,0.268750012,0)e.Selectable=true;e.Size=UDim2.new(0,126,0,73)e.Style=Enum.ButtonStyle.Custom;e.Font=Enum.Font.Highway;e.FontSize=Enum.FontSize.Size32;e.Text="DROP"e.TextColor3=Color3.new(1,1,1)e.TextStrokeColor3=Color3.new(1,0,0.0156863)e.TextStrokeTransparency=0;e.Parent=d;local f=Instance.new("TextButton")f.Active=true;f.BackgroundColor3=Color3.new(0.713726,0.121569,0.133333)f.Position=UDim2.new(0.537963867,0,0.268750012,0)f.Selectable=true;f.Size=UDim2.new(0,126,0,73)f.Style=Enum.ButtonStyle.Custom;f.Font=Enum.Font.Highway;f.FontSize=Enum.FontSize.Size24;f.Text="Hats = Blocks"f.TextColor3=Color3.new(1,1,1)f.TextStrokeColor3=Color3.new(1,0,0.0156863)f.TextStrokeTransparency=0;f.TextWrapped=true;f.Parent=d;local g=Instance.new("TextLabel")g.BackgroundColor3=Color3.new(0.611765,0,0.00784314)g.BorderSizePixel=0;g.Position=UDim2.new(0,0,0.837499976,0)g.Size=UDim2.new(0,297,0,26)g.Font=Enum.Font.Highway;g.FontSize=Enum.FontSize.Size18;g.Text="This was made by I low."g.TextColor3=Color3.new(1,1,1)g.Parent=d;local h=Instance.new("TextLabel")h.BackgroundColor3=Color3.new(0.639216,0.635294,0.647059)h.BackgroundTransparency=1;h.BorderSizePixel=0;h.Size=UDim2.new(0,297,0,31)h.Font=Enum.Font.Highway;h.FontSize=Enum.FontSize.Size18;h.Text="FE Drop Hats"h.TextColor3=Color3.new(1,1,1)h.Parent=d;local i=Instance.new("TextButton")i.Active=true;i.BackgroundColor3=Color3.new(0.815686,0,0)i.Position=UDim2.new(0,0,0.947432756,0)i.Selectable=true;i.Size=UDim2.new(0,98,0,43)i.Style=Enum.ButtonStyle.Custom;i.Font=Enum.Font.Highway;i.FontSize=Enum.FontSize.Size14;i.Text="Hide/Show"i.TextColor3=Color3.new(1,1,1)i.Parent=a;e.MouseButton1Click:connect(function()local j=game.Players.LocalPlayer;for k,l in pairs(j.Character:GetChildren())do if l:IsA'Accoutrement'then l.Parent=game.Workspace end end end)f.MouseButton1Click:connect(function()local j=game.Players.LocalPlayer;for k,l in pairs(j.Character:GetChildren())do if l:IsA'Accoutrement'then l.Handle.Mesh:Destroy()end end end)i.MouseButton1Click:connect(function()if b.Visible==true then b.Visible=false elseif b.Visible==false then b.Visible=true end end) | |
650 | end) | |
651 | ||
652 | NoLimbs.Name = "No Limbs" | |
653 | NoLimbs.Parent = MainBody | |
654 | NoLimbs.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
655 | NoLimbs.Position = UDim2.new(-0.000843375921, 0, 0.34988755, 0) | |
656 | NoLimbs.Size = UDim2.new(0, 106, 0, 27) | |
657 | NoLimbs.Font = Enum.Font.SciFi | |
658 | NoLimbs.Text = "No lmbs" | |
659 | NoLimbs.TextColor3 = Color3.new(1, 1, 1) | |
660 | NoLimbs.TextSize = 14 | |
661 | ||
662 | NoLimbs.MouseButton1Down:connect(function() | |
663 | game.Players.LocalPlayer.Character["Left Leg"]:Destroy() | |
664 | game.Players.LocalPlayer.Character["Left Arm"]:Destroy() | |
665 | game.Players.LocalPlayer.Character["Right Leg"]:Destroy() | |
666 | game.Players.LocalPlayer.Character["Right Arm"]:Destroy() | |
667 | end) | |
668 | ||
669 | FEbtools.Name = "FE btools" | |
670 | FEbtools.Parent = MainBody | |
671 | FEbtools.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
672 | FEbtools.Position = UDim2.new(-0.000843375921, 0, 0.501739383, 0) | |
673 | FEbtools.Size = UDim2.new(0, 106, 0, 27) | |
674 | FEbtools.Font = Enum.Font.SciFi | |
675 | FEbtools.Text = "FE btools" | |
676 | FEbtools.TextColor3 = Color3.new(1, 1, 1) | |
677 | FEbtools.TextSize = 14 | |
678 | ||
679 | FEbtools.MouseButton1Down:connect(function() | |
680 | maind = nil | |
681 | if workspace:FindFirstChild'GiveSystem' then | |
682 | if workspace.GiveSystem:FindFirstChild'GiveItem' then | |
683 | maind = workspace.GiveSystem.GiveItem | |
684 | end | |
685 | end | |
686 | if workspace:FindFirstChild'HandToCentre' then | |
687 | if workspace.HandToCentre:FindFirstChild'SendItem' then | |
688 | maind = workspace.HandToCentre.SendItem | |
689 | end | |
690 | end | |
691 | if maind == nil then | |
692 | print'could not find give event :(' | |
693 | return | |
694 | end | |
695 | tool = Instance.new'Tool' | |
696 | me = game:GetService'Players'.LocalPlayer | |
697 | tool.RequiresHandle = false | |
698 | tool.TextureId = 'http://www.roblox.com/asset/?id=12223874' | |
699 | tool.Name = 'ya like jazz?' | |
700 | tool.Parent = me.Backpack | |
701 | buttonf = nil | |
702 | tool.Equipped:connect(function() | |
703 | local m = game:GetService'Players'.LocalPlayer:GetMouse() | |
704 | m.Icon = 'rbxasset://textures/HammerCursor.png' | |
705 | buttonf = m.Button1Down:connect(function() | |
706 | if m.Target == nil then return end | |
707 | local ob = m.Target | |
708 | if ob:IsA'BasePart' or ob:IsA'WedgePart' then | |
709 | if ob:IsDescendantOf(me.Character) then return end | |
710 | m.Icon = 'rbxasset://textures/HammerOverCursor.png' | |
711 | local ex = Instance.new'Explosion' | |
712 | ex.BlastRadius = 0 | |
713 | ex.Position = ob.Position | |
714 | ex.Parent = workspace | |
715 | maind:FireServer(workspace, ob) | |
716 | wait(0.3) | |
717 | m.Icon = 'rbxasset://textures/HammerCursor.png' | |
718 | end | |
719 | end) | |
720 | end) | |
721 | tool.Unequipped:connect(function() | |
722 | if buttonf ~= nil then | |
723 | buttonf:Disconnect() | |
724 | buttonf = nil | |
725 | end | |
726 | local m = game:GetService'Players'.LocalPlayer:GetMouse() | |
727 | m.Icon = '' | |
728 | end) | |
729 | end) | |
730 | ||
731 | FlyR6.Name = "Fly (R6)" | |
732 | FlyR6.Parent = MainBody | |
733 | FlyR6.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
734 | FlyR6.Position = UDim2.new(0.347598553, 0, 0.501739383, 0) | |
735 | FlyR6.Size = UDim2.new(0, 106, 0, 27) | |
736 | FlyR6.Font = Enum.Font.SciFi | |
737 | FlyR6.Text = "Fly (R6)" | |
738 | FlyR6.TextColor3 = Color3.new(1, 1, 1) | |
739 | FlyR6.TextSize = 14 | |
740 | ||
741 | FlyR6.MouseButton1Down:connect(function() | |
742 | -- FLY SCRIPT BY RGEENEUS | |
743 | ||
744 | -- The following code should be in a local script. | |
745 | -- Only works on PC, not xbox or mobile. I do not have devices to test on. | |
746 | -- Call the start fly function AFTER the character exists to fly. The function does not run if there is no character. | |
747 | ||
748 | local speed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running | |
749 | ||
750 | local c | |
751 | local h | |
752 | local bv | |
753 | local bav | |
754 | local cam | |
755 | local flying | |
756 | local p = game.Players.LocalPlayer | |
757 | local buttons = {W = false, S = false, A = false, D = false, Moving = false} | |
758 | ||
759 | local startFly = function () -- Call this function to begin flying | |
760 | if not p.Character or not p.Character.Head or flying then return end | |
761 | c = p.Character | |
762 | h = c.Humanoid | |
763 | h.PlatformStand = true | |
764 | cam = workspace:WaitForChild('Camera') | |
765 | bv = Instance.new("BodyVelocity") | |
766 | bav = Instance.new("BodyAngularVelocity") | |
767 | bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000 | |
768 | bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000 | |
769 | bv.Parent = c.Head | |
770 | bav.Parent = c.Head | |
771 | flying = true | |
772 | h.Died:connect(function() flying = false end) | |
773 | end | |
774 | ||
775 | local endFly = function () -- Call this function to stop flying | |
776 | if not p.Character or not flying then return end | |
777 | h.PlatformStand = false | |
778 | bv:Destroy() | |
779 | bav:Destroy() | |
780 | flying = false | |
781 | end | |
782 | ||
783 | game:GetService("UserInputService").InputBegan:connect(function (input, GPE) | |
784 | if GPE then return end | |
785 | for i, e in pairs(buttons) do | |
786 | if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then | |
787 | buttons[i] = true | |
788 | buttons.Moving = true | |
789 | end | |
790 | end | |
791 | end) | |
792 | ||
793 | game:GetService("UserInputService").InputEnded:connect(function (input, GPE) | |
794 | if GPE then return end | |
795 | local a = false | |
796 | for i, e in pairs(buttons) do | |
797 | if i ~= "Moving" then | |
798 | if input.KeyCode == Enum.KeyCode[i] then | |
799 | buttons[i] = false | |
800 | end | |
801 | if buttons[i] then a = true end | |
802 | end | |
803 | end | |
804 | buttons.Moving = a | |
805 | end) | |
806 | ||
807 | local setVec = function (vec) | |
808 | return vec * (speed / vec.Magnitude) | |
809 | end | |
810 | ||
811 | game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame | |
812 | if flying and c and c.PrimaryPart then | |
813 | local p = c.PrimaryPart.Position | |
814 | local cf = cam.CFrame | |
815 | local ax, ay, az = cf:toEulerAnglesXYZ() | |
816 | c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az)) | |
817 | if buttons.Moving then | |
818 | local t = Vector3.new() | |
819 | if buttons.W then t = t + (setVec(cf.lookVector)) end | |
820 | if buttons.S then t = t - (setVec(cf.lookVector)) end | |
821 | if buttons.A then t = t - (setVec(cf.rightVector)) end | |
822 | if buttons.D then t = t + (setVec(cf.rightVector)) end | |
823 | c:TranslateBy(t * step) | |
824 | end | |
825 | end | |
826 | end) | |
827 | end) | |
828 | ||
829 | FEinvisible.Name = "FE invisible" | |
830 | FEinvisible.Parent = MainBody | |
831 | FEinvisible.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
832 | FEinvisible.Position = UDim2.new(0.698873341, 0, 0.501739383, 0) | |
833 | FEinvisible.Size = UDim2.new(0, 106, 0, 27) | |
834 | FEinvisible.Font = Enum.Font.SciFi | |
835 | FEinvisible.Text = "FE Invisible (R6)" | |
836 | FEinvisible.TextColor3 = Color3.new(1, 1, 1) | |
837 | FEinvisible.TextSize = 14 | |
838 | ||
839 | FEinvisible.MouseButton1Down:connect(function() | |
840 | Local = game:GetService('Players').LocalPlayer | |
841 | Char = Local.Character | |
842 | touched,tpdback = false, false | |
843 | Local.CharacterAdded:connect(function(char) | |
844 | if script.Disabled ~= true then | |
845 | wait(.25) | |
846 | loc = Char.HumanoidRootPart.Position | |
847 | Char:MoveTo(box.Position + Vector3.new(0,.5,0)) | |
848 | end | |
849 | end) | |
850 | game:GetService('UserInputService').InputBegan:connect(function(key) | |
851 | if key.KeyCode == Enum.KeyCode.Equals then | |
852 | if script.Disabled ~= true then | |
853 | script.Disabled = true | |
854 | print'you may re-execute' | |
855 | end | |
856 | end | |
857 | end) | |
858 | box = Instance.new('Part',workspace) | |
859 | box.Anchored = true | |
860 | box.CanCollide = true | |
861 | box.Size = Vector3.new(10,1,10) | |
862 | box.Position = Vector3.new(0,10000,0) | |
863 | box.Touched:connect(function(part) | |
864 | if (part.Parent.Name == Local.Name) then | |
865 | if touched == false then | |
866 | touched = true | |
867 | function apply() | |
868 | if script.Disabled ~= true then | |
869 | no = Char.HumanoidRootPart:Clone() | |
870 | wait(.25) | |
871 | Char.HumanoidRootPart:Destroy() | |
872 | no.Parent = Char | |
873 | Char:MoveTo(loc) | |
874 | touched = false | |
875 | end end | |
876 | if Char then | |
877 | apply() | |
878 | end | |
879 | end | |
880 | end | |
881 | end) | |
882 | repeat wait() until Char | |
883 | loc = Char.HumanoidRootPart.Position | |
884 | Char:MoveTo(box.Position + Vector3.new(0,.5,0)) | |
885 | end) | |
886 | ||
887 | Glitchmax.Name = "Glitchmax" | |
888 | Glitchmax.Parent = MainBody | |
889 | Glitchmax.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
890 | Glitchmax.Position = UDim2.new(-0.000843346119, 0, 0.653591216, 0) | |
891 | Glitchmax.Size = UDim2.new(0, 106, 0, 27) | |
892 | Glitchmax.Font = Enum.Font.SciFi | |
893 | Glitchmax.Text = "Glitchmax GUI" | |
894 | Glitchmax.TextColor3 = Color3.new(1, 1, 1) | |
895 | Glitchmax.TextSize = 14 | |
896 | ||
897 | Glitchmax.MouseButton1Down:connect(function() | |
898 | -- Objects | |
899 | ||
900 | local GlitchMax = Instance.new("ScreenGui") | |
901 | local MainFrame = Instance.new("Frame") | |
902 | local TopFrame = Instance.new("Frame") | |
903 | local Title = Instance.new("TextLabel") | |
904 | local CloseGUI = Instance.new("TextButton") | |
905 | local Credit = Instance.new("TextLabel") | |
906 | local DetailTopFrame = Instance.new("Frame") | |
907 | local ButtonFrame = Instance.new("Frame") | |
908 | local UserBox = Instance.new("TextBox") | |
909 | local Flatten = Instance.new("TextButton") | |
910 | local Push = Instance.new("TextButton") | |
911 | local LockOn = Instance.new("TextButton") | |
912 | local Float = Instance.new("TextButton") | |
913 | local Stick = Instance.new("TextButton") | |
914 | local Experimental = Instance.new("TextButton") | |
915 | local SideFrame = Instance.new("Frame") | |
916 | local OpenGUI = Instance.new("TextButton") | |
917 | local SideCredit = Instance.new("TextLabel") | |
918 | local SideTitle = Instance.new("TextLabel") | |
919 | ||
920 | -- Properties | |
921 | ||
922 | GlitchMax.Name = "GlitchMax" | |
923 | GlitchMax.Parent = game.CoreGui | |
924 | ||
925 | MainFrame.Name = "MainFrame" | |
926 | MainFrame.Parent = GlitchMax | |
927 | MainFrame.Active = true | |
928 | MainFrame.BackgroundColor3 = Color3.new(1, 1, 1) | |
929 | MainFrame.BackgroundTransparency = 1 | |
930 | MainFrame.Draggable = true | |
931 | MainFrame.Position = UDim2.new(0, 570, 0, 61) | |
932 | MainFrame.Size = UDim2.new(0, 376, 0, 285) | |
933 | ||
934 | TopFrame.Name = "TopFrame" | |
935 | TopFrame.Parent = MainFrame | |
936 | TopFrame.BackgroundColor3 = Color3.new(0.466667, 0.47451, 1) | |
937 | TopFrame.Size = UDim2.new(0, 376, 0, 36) | |
938 | ||
939 | Title.Name = "Title" | |
940 | Title.Parent = TopFrame | |
941 | Title.BackgroundColor3 = Color3.new(1, 1, 1) | |
942 | Title.BackgroundTransparency = 1 | |
943 | Title.Size = UDim2.new(0, 376, 0, 36) | |
944 | Title.Font = Enum.Font.Highway | |
945 | Title.FontSize = Enum.FontSize.Size14 | |
946 | Title.Text = "GlitchMax" | |
947 | Title.TextColor3 = Color3.new(0.243137, 0.372549, 0.4) | |
948 | Title.TextScaled = true | |
949 | Title.TextSize = 14 | |
950 | Title.TextStrokeColor3 = Color3.new(1, 1, 1) | |
951 | Title.TextStrokeTransparency = 0 | |
952 | Title.TextWrapped = true | |
953 | ||
954 | CloseGUI.Name = "CloseGUI" | |
955 | CloseGUI.Parent = TopFrame | |
956 | CloseGUI.BackgroundColor3 = Color3.new(1, 1, 1) | |
957 | CloseGUI.BackgroundTransparency = 1 | |
958 | CloseGUI.Position = UDim2.new(0, 327, 0, 0) | |
959 | CloseGUI.Size = UDim2.new(0, 49, 0, 36) | |
960 | CloseGUI.Font = Enum.Font.SourceSans | |
961 | CloseGUI.FontSize = Enum.FontSize.Size60 | |
962 | CloseGUI.Text = "X" | |
963 | CloseGUI.TextSize = 50 | |
964 | ||
965 | Credit.Name = "Credit" | |
966 | Credit.Parent = TopFrame | |
967 | Credit.BackgroundColor3 = Color3.new(1, 1, 1) | |
968 | Credit.BackgroundTransparency = 1 | |
969 | Credit.Position = UDim2.new(0, 16, 0, 0) | |
970 | Credit.Size = UDim2.new(0, 96, 0, 36) | |
971 | Credit.Font = Enum.Font.Highway | |
972 | Credit.FontSize = Enum.FontSize.Size14 | |
973 | Credit.Text = "illremember" | |
974 | Credit.TextColor3 = Color3.new(0.431373, 0.662745, 0.709804) | |
975 | Credit.TextScaled = true | |
976 | Credit.TextSize = 14 | |
977 | Credit.TextStrokeColor3 = Color3.new(1, 1, 1) | |
978 | Credit.TextStrokeTransparency = 0 | |
979 | Credit.TextWrapped = true | |
980 | ||
981 | DetailTopFrame.Name = "DetailTopFrame" | |
982 | DetailTopFrame.Parent = MainFrame | |
983 | DetailTopFrame.BackgroundColor3 = Color3.new(0.541176, 0.678431, 1) | |
984 | DetailTopFrame.Position = UDim2.new(0, 0, 0, 37) | |
985 | DetailTopFrame.Size = UDim2.new(0, 376, 0, 11) | |
986 | ||
987 | ButtonFrame.Name = "ButtonFrame" | |
988 | ButtonFrame.Parent = MainFrame | |
989 | ButtonFrame.BackgroundColor3 = Color3.new(0.945098, 0.945098, 0.945098) | |
990 | ButtonFrame.Position = UDim2.new(0, 0, 0, 49) | |
991 | ButtonFrame.Size = UDim2.new(0, 376, 0, 236) | |
992 | ||
993 | UserBox.Name = "UserBox" | |
994 | UserBox.Parent = ButtonFrame | |
995 | UserBox.BackgroundColor3 = Color3.new(0.898039, 0.898039, 0.898039) | |
996 | UserBox.BorderColor3 = Color3.new(0.360784, 0.384314, 0.392157) | |
997 | UserBox.BorderSizePixel = 5 | |
998 | UserBox.Position = UDim2.new(0, 33, 0, 15) | |
999 | UserBox.Size = UDim2.new(0, 310, 0, 31) | |
1000 | UserBox.Font = Enum.Font.SourceSans | |
1001 | UserBox.FontSize = Enum.FontSize.Size14 | |
1002 | UserBox.Text = "" | |
1003 | UserBox.TextScaled = true | |
1004 | UserBox.TextSize = 14 | |
1005 | UserBox.TextWrapped = true | |
1006 | ||
1007 | Flatten.Name = "Flatten" | |
1008 | Flatten.Parent = ButtonFrame | |
1009 | Flatten.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902) | |
1010 | Flatten.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549) | |
1011 | Flatten.BorderSizePixel = 2 | |
1012 | Flatten.Position = UDim2.new(0, 22, 0, 66) | |
1013 | Flatten.Size = UDim2.new(0, 135, 0, 36) | |
1014 | Flatten.Font = Enum.Font.Highway | |
1015 | Flatten.FontSize = Enum.FontSize.Size32 | |
1016 | Flatten.Text = "Flatten" | |
1017 | Flatten.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451) | |
1018 | Flatten.TextScaled = true | |
1019 | Flatten.TextSize = 30 | |
1020 | Flatten.TextWrapped = true | |
1021 | ||
1022 | Push.Name = "Push" | |
1023 | Push.Parent = ButtonFrame | |
1024 | Push.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902) | |
1025 | Push.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549) | |
1026 | Push.BorderSizePixel = 2 | |
1027 | Push.Position = UDim2.new(0, 22, 0, 126) | |
1028 | Push.Size = UDim2.new(0, 135, 0, 36) | |
1029 | Push.Font = Enum.Font.Highway | |
1030 | Push.FontSize = Enum.FontSize.Size32 | |
1031 | Push.Text = "Push" | |
1032 | Push.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451) | |
1033 | Push.TextScaled = true | |
1034 | Push.TextSize = 30 | |
1035 | Push.TextWrapped = true | |
1036 | ||
1037 | LockOn.Name = "LockOn" | |
1038 | LockOn.Parent = ButtonFrame | |
1039 | LockOn.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902) | |
1040 | LockOn.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549) | |
1041 | LockOn.BorderSizePixel = 2 | |
1042 | LockOn.Position = UDim2.new(0, 22, 0, 186) | |
1043 | LockOn.Size = UDim2.new(0, 135, 0, 36) | |
1044 | LockOn.Font = Enum.Font.Highway | |
1045 | LockOn.FontSize = Enum.FontSize.Size32 | |
1046 | LockOn.Text = "LockOn" | |
1047 | LockOn.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451) | |
1048 | LockOn.TextSize = 30 | |
1049 | LockOn.TextWrapped = true | |
1050 | ||
1051 | Float.Name = "Float" | |
1052 | Float.Parent = ButtonFrame | |
1053 | Float.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902) | |
1054 | Float.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549) | |
1055 | Float.BorderSizePixel = 2 | |
1056 | Float.Position = UDim2.new(0, 218, 0, 66) | |
1057 | Float.Size = UDim2.new(0, 135, 0, 36) | |
1058 | Float.Font = Enum.Font.Highway | |
1059 | Float.FontSize = Enum.FontSize.Size32 | |
1060 | Float.Text = "Float" | |
1061 | Float.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451) | |
1062 | Float.TextScaled = true | |
1063 | Float.TextSize = 30 | |
1064 | Float.TextWrapped = true | |
1065 | ||
1066 | Stick.Name = "Stick" | |
1067 | Stick.Parent = ButtonFrame | |
1068 | Stick.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902) | |
1069 | Stick.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549) | |
1070 | Stick.BorderSizePixel = 2 | |
1071 | Stick.Position = UDim2.new(0, 218, 0, 126) | |
1072 | Stick.Size = UDim2.new(0, 135, 0, 36) | |
1073 | Stick.Font = Enum.Font.Highway | |
1074 | Stick.FontSize = Enum.FontSize.Size32 | |
1075 | Stick.Text = "Stick" | |
1076 | Stick.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451) | |
1077 | Stick.TextSize = 30 | |
1078 | Stick.TextWrapped = true | |
1079 | ||
1080 | Experimental.Name = "Experimental" | |
1081 | Experimental.Parent = ButtonFrame | |
1082 | Experimental.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902) | |
1083 | Experimental.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549) | |
1084 | Experimental.BorderSizePixel = 2 | |
1085 | Experimental.Position = UDim2.new(0, 218, 0, 186) | |
1086 | Experimental.Size = UDim2.new(0, 135, 0, 36) | |
1087 | Experimental.Font = Enum.Font.Highway | |
1088 | Experimental.FontSize = Enum.FontSize.Size28 | |
1089 | Experimental.Text = "Experimental" | |
1090 | Experimental.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451) | |
1091 | Experimental.TextSize = 25 | |
1092 | Experimental.TextWrapped = true | |
1093 | ||
1094 | SideFrame.Name = "SideFrame" | |
1095 | SideFrame.Parent = GlitchMax | |
1096 | SideFrame.Active = true | |
1097 | SideFrame.BackgroundColor3 = Color3.new(0.466667, 0.47451, 1) | |
1098 | SideFrame.Draggable = true | |
1099 | SideFrame.Position = UDim2.new(0, 570, 0, 61) | |
1100 | SideFrame.Size = UDim2.new(0, 376, 0, 36) | |
1101 | SideFrame.Visible = false | |
1102 | ||
1103 | OpenGUI.Name = "OpenGUI" | |
1104 | OpenGUI.Parent = SideFrame | |
1105 | OpenGUI.BackgroundColor3 = Color3.new(1, 1, 1) | |
1106 | OpenGUI.BackgroundTransparency = 1 | |
1107 | OpenGUI.Position = UDim2.new(0, 327, 0, 0) | |
1108 | OpenGUI.Size = UDim2.new(0, 49, 0, 36) | |
1109 | OpenGUI.Font = Enum.Font.SourceSans | |
1110 | OpenGUI.FontSize = Enum.FontSize.Size60 | |
1111 | OpenGUI.Text = "X" | |
1112 | OpenGUI.TextSize = 50 | |
1113 | ||
1114 | SideCredit.Name = "SideCredit" | |
1115 | SideCredit.Parent = SideFrame | |
1116 | SideCredit.BackgroundColor3 = Color3.new(1, 1, 1) | |
1117 | SideCredit.BackgroundTransparency = 1 | |
1118 | SideCredit.Position = UDim2.new(0, 16, 0, 0) | |
1119 | SideCredit.Size = UDim2.new(0, 96, 0, 36) | |
1120 | SideCredit.Font = Enum.Font.Highway | |
1121 | SideCredit.FontSize = Enum.FontSize.Size14 | |
1122 | SideCredit.Text = "illremember" | |
1123 | SideCredit.TextColor3 = Color3.new(0.431373, 0.662745, 0.709804) | |
1124 | SideCredit.TextScaled = true | |
1125 | SideCredit.TextSize = 14 | |
1126 | SideCredit.TextStrokeColor3 = Color3.new(1, 1, 1) | |
1127 | SideCredit.TextStrokeTransparency = 0 | |
1128 | SideCredit.TextWrapped = true | |
1129 | ||
1130 | SideTitle.Name = "SideTitle" | |
1131 | SideTitle.Parent = SideFrame | |
1132 | SideTitle.BackgroundColor3 = Color3.new(1, 1, 1) | |
1133 | SideTitle.BackgroundTransparency = 1 | |
1134 | SideTitle.Size = UDim2.new(0, 376, 0, 36) | |
1135 | SideTitle.Font = Enum.Font.Highway | |
1136 | SideTitle.FontSize = Enum.FontSize.Size14 | |
1137 | SideTitle.Text = "GlitchMax" | |
1138 | SideTitle.TextColor3 = Color3.new(0.243137, 0.372549, 0.4) | |
1139 | SideTitle.TextScaled = true | |
1140 | SideTitle.TextSize = 14 | |
1141 | SideTitle.TextStrokeColor3 = Color3.new(1, 1, 1) | |
1142 | SideTitle.TextStrokeTransparency = 0 | |
1143 | SideTitle.TextWrapped = true | |
1144 | ||
1145 | -- Buttons | |
1146 | ||
1147 | col = Color3.new(0.254902, 0.254902, 0.254902) | |
1148 | loc = Color3.new(0.40, 0.40, 0.40) | |
1149 | ||
1150 | CloseGUI.MouseButton1Click:connect(function() | |
1151 | MainFrame.Visible = false | |
1152 | SideFrame.Visible = true | |
1153 | SideFrame.Position = MainFrame.Position | |
1154 | end) | |
1155 | ||
1156 | OpenGUI.MouseButton1Click:connect(function() | |
1157 | MainFrame.Visible = true | |
1158 | SideFrame.Visible = false | |
1159 | MainFrame.Position = SideFrame.Position | |
1160 | end) | |
1161 | ||
1162 | function shortnames(username) | |
1163 | local nameshort = {} | |
1164 | for i,v in pairs(game.Players:GetPlayers()) do | |
1165 | if v.Name:lower():sub(1, #username) == username:lower() then | |
1166 | table.insert(nameshort,v) | |
1167 | end | |
1168 | end | |
1169 | return nameshort | |
1170 | end | |
1171 | ||
1172 | local Anim = Instance.new("Animation") | |
1173 | Anim.AnimationId = "rbxassetid://282574440" | |
1174 | local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
1175 | flattening = false | |
1176 | Flatten.MouseButton1Click:connect(function() | |
1177 | flattening = not flattening | |
1178 | if flattening then | |
1179 | Flatten.BackgroundColor3 = loc | |
1180 | local y = Instance.new("RocketPropulsion") | |
1181 | y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
1182 | y.CartoonFactor = 1 | |
1183 | y.MaxThrust = 50000 | |
1184 | y.MaxSpeed = 1000 | |
1185 | y.ThrustP = 50000 | |
1186 | y.Name = "Flatten" | |
1187 | for i,v in pairs(shortnames(UserBox.Text))do | |
1188 | y.Target = game.Players[v.name].Character["Left Leg"] | |
1189 | y:Fire() | |
1190 | track:Play(.1, 1, 1) | |
1191 | game:GetService('RunService').Stepped:connect(function() | |
1192 | if flattening then | |
1193 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
1194 | game.Players.LocalPlayer.Character.Torso.CanCollide = false | |
1195 | game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false | |
1196 | game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false | |
1197 | end | |
1198 | end) | |
1199 | while wait(0.3) do | |
1200 | if flattening then | |
1201 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame + Vector3.new(0,2,0) | |
1202 | end | |
1203 | end | |
1204 | end | |
1205 | else | |
1206 | game.Players.LocalPlayer.Character.HumanoidRootPart.Flatten:Destroy() | |
1207 | track:Stop() | |
1208 | Flatten.BackgroundColor3 = col | |
1209 | end | |
1210 | end) | |
1211 | ||
1212 | floating = false | |
1213 | Float.MouseButton1Click:connect(function() | |
1214 | floating = not floating | |
1215 | if floating then | |
1216 | Float.BackgroundColor3 = loc | |
1217 | local y = Instance.new("RocketPropulsion") | |
1218 | y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
1219 | y.CartoonFactor = 1 | |
1220 | y.MaxThrust = 50000 | |
1221 | y.MaxSpeed = 1000 | |
1222 | y.ThrustP = 50000 | |
1223 | y.Name = "Float" | |
1224 | for i,v in pairs(shortnames(UserBox.Text))do | |
1225 | y.Target = game.Players[v.Name].Character.Head | |
1226 | y:Fire() | |
1227 | game:GetService('RunService').Stepped:connect(function() | |
1228 | if floating then | |
1229 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
1230 | game.Players.LocalPlayer.Character.Torso.CanCollide = false | |
1231 | game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false | |
1232 | game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false | |
1233 | end | |
1234 | end) | |
1235 | while wait(0.3) do | |
1236 | if floating then | |
1237 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character["Left Leg"].CFrame | |
1238 | end | |
1239 | end | |
1240 | end | |
1241 | else | |
1242 | game.Players.LocalPlayer.Character.HumanoidRootPart.Float:Destroy() | |
1243 | Float.BackgroundColor3 = col | |
1244 | end | |
1245 | end) | |
1246 | ||
1247 | LockOnACTIVE = false | |
1248 | LockOn.MouseButton1Click:connect(function() | |
1249 | LockOnACTIVE = not LockOnACTIVE | |
1250 | for i,v in pairs(shortnames(UserBox.Text))do | |
1251 | while wait() do | |
1252 | if LockOnACTIVE then | |
1253 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame | |
1254 | LockOn.BackgroundColor3 = loc | |
1255 | else | |
1256 | LockOn.BackgroundColor3 = col | |
1257 | end | |
1258 | end | |
1259 | end | |
1260 | end) | |
1261 | ||
1262 | pushing = false | |
1263 | Push.MouseButton1Click:connect(function() | |
1264 | pushing = not pushing | |
1265 | if pushing then | |
1266 | Push.BackgroundColor3 = loc | |
1267 | local b = Instance.new("RocketPropulsion") | |
1268 | b.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
1269 | b.TurnP = 2500 | |
1270 | b.MaxThrust = 50000 | |
1271 | b.MaxSpeed = 1000 | |
1272 | b.ThrustP = 50000 | |
1273 | b.CartoonFactor = 1 | |
1274 | b.Name = "Push" | |
1275 | for i,v in pairs(shortnames(UserBox.Text))do | |
1276 | b.Target = game.Players[v.Name].Character.HumanoidRootPart | |
1277 | b:Fire() | |
1278 | game:GetService('RunService').Stepped:connect(function() | |
1279 | if pushing then | |
1280 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
1281 | game.Players.LocalPlayer.Character.Torso.CanCollide = false | |
1282 | game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false | |
1283 | game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false | |
1284 | end | |
1285 | end) | |
1286 | b:Fire() | |
1287 | end | |
1288 | else | |
1289 | game.Players.LocalPlayer.Character.HumanoidRootPart.Push:Destroy() | |
1290 | Push.BackgroundColor3 = col | |
1291 | end | |
1292 | end) | |
1293 | ||
1294 | local Anim = Instance.new("Animation") | |
1295 | Anim.AnimationId = "rbxassetid://215384594" | |
1296 | local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) | |
1297 | experi = false | |
1298 | Experimental.MouseButton1Click:connect(function() | |
1299 | experi = not experi | |
1300 | if experi then | |
1301 | Experimental.BackgroundColor3 = loc | |
1302 | local h = Instance.new("RocketPropulsion") | |
1303 | h.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
1304 | h.Name = "Experimental" | |
1305 | for i,v in pairs(shortnames(UserBox.Text))do | |
1306 | h.Target = game.Players[v.Name].Character.HumanoidRootPart | |
1307 | h:Fire() | |
1308 | track:Play(.1,1,1) | |
1309 | game:GetService('RunService').Stepped:connect(function() | |
1310 | if experi then | |
1311 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
1312 | game.Players.LocalPlayer.Character.Torso.CanCollide = false | |
1313 | game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false | |
1314 | game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false | |
1315 | end | |
1316 | end) | |
1317 | end | |
1318 | else | |
1319 | game.Players.LocalPlayer.Character.HumanoidRootPart.Experimental:Destroy() | |
1320 | track:Stop() | |
1321 | Stick.BackgroundColor3 = col | |
1322 | end | |
1323 | end) | |
1324 | ||
1325 | stuck = false | |
1326 | Stick.MouseButton1Click:connect(function() | |
1327 | stuck = not stuck | |
1328 | if stuck then | |
1329 | Stick.BackgroundColor3 = loc | |
1330 | local h = Instance.new("RocketPropulsion") | |
1331 | h.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
1332 | h.MaxSpeed = 1000 | |
1333 | h.MaxThrust = 10000 | |
1334 | h.Name = "Stick" | |
1335 | for i,v in pairs(shortnames(UserBox.Text))do | |
1336 | h.Target = game.Players[v.Name].Character.HumanoidRootPart | |
1337 | h:Fire() | |
1338 | game:GetService('RunService').Stepped:connect(function() | |
1339 | if stuck then | |
1340 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
1341 | game.Players.LocalPlayer.Character.Torso.CanCollide = false | |
1342 | game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false | |
1343 | game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false | |
1344 | end | |
1345 | end) | |
1346 | end | |
1347 | else | |
1348 | game.Players.LocalPlayer.Character.HumanoidRootPart.Stick:Destroy() | |
1349 | Stick.BackgroundColor3 = col | |
1350 | end | |
1351 | end) | |
1352 | end) | |
1353 | ||
1354 | ||
1355 | FEFloatinghead.Name = "FE Floating head" | |
1356 | FEFloatinghead.Parent = MainBody | |
1357 | FEFloatinghead.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
1358 | FEFloatinghead.Position = UDim2.new(0.347598583, 0, 0.653591216, 0) | |
1359 | FEFloatinghead.Size = UDim2.new(0, 106, 0, 27) | |
1360 | FEFloatinghead.Font = Enum.Font.SciFi | |
1361 | FEFloatinghead.Text = "FE FloatingHead" | |
1362 | FEFloatinghead.TextColor3 = Color3.new(1, 1, 1) | |
1363 | FEFloatinghead.TextSize = 14 | |
1364 | ||
1365 | FEFloatinghead.MouseButton1Down:connect(function() | |
1366 | local speed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running | |
1367 | local c | |
1368 | local h | |
1369 | local bv | |
1370 | local bav | |
1371 | local cam | |
1372 | local flying | |
1373 | local p = game:GetService'Players'.LocalPlayer | |
1374 | local buttons = {W = false, S = false, A = false, D = false, Moving = false} | |
1375 | local startFly = function () -- Call this function to begin flying | |
1376 | if not p.Character or not p.Character.Head or flying then return end | |
1377 | c = p.Character | |
1378 | h = c.Humanoid | |
1379 | h.PlatformStand = true | |
1380 | cam = workspace:WaitForChild('Camera') | |
1381 | bv = Instance.new("BodyVelocity") | |
1382 | bav = Instance.new("BodyAngularVelocity") | |
1383 | bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000 | |
1384 | bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000 | |
1385 | bv.Parent = c.Head | |
1386 | bav.Parent = c.Head | |
1387 | flying = true | |
1388 | h.Died:connect(function() flying = false end) | |
1389 | end | |
1390 | local endFly = function () -- Call this function to stop flying | |
1391 | if not p.Character or not flying then return end | |
1392 | h.PlatformStand = false | |
1393 | bv:Destroy() | |
1394 | bav:Destroy() | |
1395 | flying = false | |
1396 | end | |
1397 | game:GetService("UserInputService").InputBegan:connect(function (input, GPE) | |
1398 | if GPE then return end | |
1399 | for i, e in pairs(buttons) do | |
1400 | if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then | |
1401 | buttons[i] = true | |
1402 | buttons.Moving = true | |
1403 | end | |
1404 | end | |
1405 | end) | |
1406 | game:GetService("UserInputService").InputEnded:connect(function (input, GPE) | |
1407 | if GPE then return end | |
1408 | local a = false | |
1409 | for i, e in pairs(buttons) do | |
1410 | if i ~= "Moving" then | |
1411 | if input.KeyCode == Enum.KeyCode[i] then | |
1412 | buttons[i] = false | |
1413 | end | |
1414 | if buttons[i] then a = true end | |
1415 | end | |
1416 | end | |
1417 | buttons.Moving = a | |
1418 | end) | |
1419 | local setVec = function (vec) | |
1420 | return vec * (speed / vec.Magnitude) | |
1421 | end | |
1422 | game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame | |
1423 | if flying and c and c.PrimaryPart then | |
1424 | local p = c.PrimaryPart.Position | |
1425 | local cf = cam.CFrame | |
1426 | local ax, ay, az = cf:toEulerAnglesXYZ() | |
1427 | c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az)) | |
1428 | if buttons.Moving then | |
1429 | local t = Vector3.new() | |
1430 | if buttons.W then t = t + (setVec(cf.lookVector)) end | |
1431 | if buttons.S then t = t - (setVec(cf.lookVector)) end | |
1432 | if buttons.A then t = t - (setVec(cf.rightVector)) end | |
1433 | if buttons.D then t = t + (setVec(cf.rightVector)) end | |
1434 | c:TranslateBy(t * step) | |
1435 | end | |
1436 | end | |
1437 | end) | |
1438 | FEFloatinghead.MouseButton1Down:connect(function() | |
1439 | local lol = game:GetService'Players'.LocalPlayer.Character | |
1440 | pcall(function() | |
1441 | for i,v in pairs(lol:GetChildren()) do | |
1442 | if v.Name ~= 'Head' and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
1443 | v:Destroy() | |
1444 | end | |
1445 | end | |
1446 | local ok = lol:FindFirstChild'Torso' | |
1447 | if ok then ok = ok:FindFirstChild'roblox' if ok then ok:Destroy() end end | |
1448 | Instance.new('Humanoid', lol) | |
1449 | if lol.HumanoidRootPart:FindFirstChild'Rank' then lol.HumanoidRootPart:FindFirstChild'Rank':Destroy() end | |
1450 | local nouxd = lol:FindFirstChild'Torso' | |
1451 | wait'1' | |
1452 | lol.Head.Position = lol.Head.Position + Vector3.new(1,1,1) | |
1453 | if nouxd then nouxd.Transparency = 1 end | |
1454 | wait'.3' | |
1455 | startFly() | |
1456 | end) | |
1457 | end) | |
1458 | end) | |
1459 | ||
1460 | ||
1461 | ||
1462 | Inform.Name = "Inform" | |
1463 | Inform.Parent = MainBody | |
1464 | Inform.BackgroundColor3 = Color3.new(0, 0.615686, 1) | |
1465 | Inform.Position = UDim2.new(0.698873401, 0, 0.653591216, 0) | |
1466 | Inform.Size = UDim2.new(0, 106, 0, 27) | |
1467 | Inform.Font = Enum.Font.SciFi | |
1468 | Inform.Text = "ChatLogs" | |
1469 | Inform.TextColor3 = Color3.new(1, 1, 1) | |
1470 | Inform.TextSize = 14 | |
1471 | ||
1472 | Inform.MouseButton1Down:connect(function() | |
1473 | loadstring(game:GetObjects("rbxassetid://1295331911")[1].Source)() | |
1474 | end) | |
1475 | ||
1476 | TextLabel_2.Parent = MainBody | |
1477 | TextLabel_2.BackgroundColor3 = Color3.new(0, 0, 0) | |
1478 | TextLabel_2.BorderSizePixel = 0 | |
1479 | TextLabel_2.Position = UDim2.new(0, 0, 0.940740705, 0) | |
1480 | TextLabel_2.Size = UDim2.new(0, 200, 0, 16) | |
1481 | TextLabel_2.Font = Enum.Font.ArialBold | |
1482 | TextLabel_2.Text = "Made by 1x7x9x0x3x1x9" | |
1483 | TextLabel_2.TextColor3 = Color3.new(1, 1, 1) | |
1484 | TextLabel_2.TextSize = 14 |