· 7 years ago · Dec 05, 2018, 08:52 PM
1-- This script has been converted to FE by iPxter
2
3
4if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6do
7 print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8 script.Parent = Player.Character
9
10 --RemoteEvent for communicating
11 local Event = Instance.new("RemoteEvent")
12 Event.Name = "UserInput_Event"
13
14 --Fake event to make stuff like Mouse.KeyDown work
15 local function fakeEvent()
16 local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17 t.connect = t.Connect
18 return t
19 end
20
21 --Creating fake input objects with fake variables
22 local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23 local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24 local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25 CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26 end}
27 --Merged 2 functions into one by checking amount of arguments
28 CAS.UnbindAction = CAS.BindAction
29
30 --This function will trigger the events that have been :Connect()'ed
31 local function te(self,ev,...)
32 local t = m[ev]
33 if t and t._fakeEvent and t.Function then
34 t.Function(...)
35 end
36 end
37 m.TrigEvent = te
38 UIS.TrigEvent = te
39
40 Event.OnServerEvent:Connect(function(plr,io)
41 if plr~=Player then return end
42 if io.isMouse then
43 m.Target = io.Target
44 m.Hit = io.Hit
45 else
46 local b = io.UserInputState == Enum.UserInputState.Begin
47 if io.UserInputType == Enum.UserInputType.MouseButton1 then
48 return m:TrigEvent(b and "Button1Down" or "Button1Up")
49 end
50 for _,t in pairs(CAS.Actions) do
51 for _,k in pairs(t.Keys) do
52 if k==io.KeyCode then
53 t.Function(t.Name,io.UserInputState,io)
54 end
55 end
56 end
57 m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58 UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59 end
60 end)
61 Event.Parent = NLS([==[
62 local Player = owner
63 local Event = script:WaitForChild("UserInput_Event")
64
65 local UIS = game:GetService("UserInputService")
66 local input = function(io,a)
67 if a then return end
68 --Since InputObject is a client-side instance, we create and pass table instead
69 Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70 end
71 UIS.InputBegan:Connect(input)
72 UIS.InputEnded:Connect(input)
73
74 local h,t
75 --Give the server mouse data 30 times every second, but only if the values changed
76 --If player is not moving their mouse, client won't fire events
77 while wait(1/30) do
78 if h~=Mouse.Hit or t~=Mouse.Target then
79 h,t=Mouse.Hit,Mouse.Target
80 Event:FireServer({isMouse=true,Target=t,Hit=h})
81 end
82 end]==],Player.Character)
83 Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
84end
85
86-- Objects
87
88local FEGui = Instance.new("ScreenGui")
89local MainBody = Instance.new("Frame")
90local Title = Instance.new("Frame")
91local Bottom = Instance.new("Frame")
92local TextLabel = Instance.new("TextLabel")
93local Animations = Instance.new("TextButton")
94local CreeperR6 = Instance.new("TextButton")
95local CreeperR15 = Instance.new("TextButton")
96local AnimationsR15 = Instance.new("TextButton")
97local FEDropHats = Instance.new("TextButton")
98local NoLimbs = Instance.new("TextButton")
99local FEbtools = Instance.new("TextButton")
100local FlyR6 = Instance.new("TextButton")
101local FEinvisible = Instance.new("TextButton")
102local Glitchmax = Instance.new("TextButton")
103local FEFloatinghead = Instance.new("TextButton")
104local Inform = Instance.new("TextButton")
105local TextLabel_2 = Instance.new("TextLabel")
106
107-- Properties
108
109FEGui.Name = "FE Gui"
110FEGui.Parent = owner
111FEGui.ResetOnSpawn = false
112
113MainBody.Name = "Main Body"
114MainBody.Parent = FEGui
115MainBody.Active = true
116MainBody.BackgroundColor3 = Color3.new(0, 0, 0)
117MainBody.Draggable = true
118MainBody.Position = UDim2.new(0.536635697, 0, 0.0425101332, 0)
119MainBody.Size = UDim2.new(0, 353, 0, 270)
120
121Title.Name = "Title"
122Title.Parent = MainBody
123Title.BackgroundColor3 = Color3.new(0.0313726, 0.321569, 1)
124Title.Position = UDim2.new(0.000818580389, 0, -0.000419855118, 0)
125Title.Size = UDim2.new(0, 353, 0, 27)
126
127Bottom.Name = "Bottom"
128Bottom.Parent = MainBody
129Bottom.BackgroundColor3 = Color3.new(0.0235294, 0.627451, 1)
130Bottom.Position = UDim2.new(0.000818580389, 0, 0.0986804739, 0)
131Bottom.Size = UDim2.new(0, 353, 0, 16)
132
133TextLabel.Parent = MainBody
134TextLabel.BackgroundColor3 = Color3.new(0.0313726, 0.321569, 1)
135TextLabel.BorderSizePixel = 0
136TextLabel.Size = UDim2.new(0, 200, 0, 19)
137TextLabel.Font = Enum.Font.SourceSansBold
138TextLabel.Text = "Troll FE"
139TextLabel.TextColor3 = Color3.new(1, 1, 1)
140TextLabel.TextSize = 14
141TextLabel.TextWrapped = true
142TextLabel.TextXAlignment = Enum.TextXAlignment.Left
143
144Animations.Name = "Animations"
145Animations.Parent = MainBody
146Animations.BackgroundColor3 = Color3.new(0, 0.615686, 1)
147Animations.Position = UDim2.new(0.698873341, 0, 0.194331974, 0)
148Animations.Size = UDim2.new(0, 106, 0, 27)
149Animations.Font = Enum.Font.SciFi
150Animations.Text = "Animations"
151Animations.TextColor3 = Color3.new(1, 1, 1)
152Animations.TextSize = 14
153
154Animations.MouseButton1Down:connect(function()
155 local Gui = Instance.new("ScreenGui", game.CoreGui)
156Gui.Name = "FE Animations"
157local Background = Instance.new("Frame",Gui)
158Background.Name = "Background"
159Background.Active = true
160Background.BackgroundColor3 = Color3.fromRGB(220,220,255)
161Background.Transparency = 0.3
162Background.BorderSizePixel = 5
163Background.Draggable = true
164Background.Position = UDim2.new(0,300,0,300)
165Background.Size = UDim2.new(0,345,0,190)
166local Title = Instance.new("TextLabel",Background)
167Title.BackgroundTransparency = 1
168Title.Position = UDim2.new(0,0,0,-80)
169Title.Size = UDim2.new(0,290,1,0)
170Title.Font = "SourceSansLight"
171Title.FontSize = "Size18"
172Title.Text = "FE Animations [by illremember]"
173Title.TextColor3 = Color3.fromRGB(20,20,25)
174
175local Chop = Instance.new("TextButton", Background)
176Chop.Name = "Chop"
177Chop.BackgroundColor3 = Color3.fromRGB(20,20,20)
178Chop.BackgroundTransparency = 0.1
179Chop.BorderSizePixel = 0
180Chop.Position = UDim2.new(0,120,0,30)
181Chop.Size = UDim2.new(0,100,0,30)
182Chop.Font = "SourceSansItalic"
183Chop.FontSize = "Size18"
184Chop.Text = "Chop"
185Chop.TextColor3 = Color3.fromRGB(230,230,230)
186Chop.TextWrapped = true
187
188local Dance = Chop:Clone()
189Dance.Name = "Dance"
190Dance.Parent = Background
191Dance.Position = UDim2.new(0,120,0,70)
192Dance.Text = "Dance"
193
194local ArmsOut = Chop:Clone()
195ArmsOut.Name = "ArmsOut"
196ArmsOut.Parent = Background
197ArmsOut.Position = UDim2.new(0,10,0,110)
198ArmsOut.Text = "ArmsOut"
199
200local Stab = Chop:Clone()
201Stab.Name = "Stab"
202Stab.Parent = Background
203Stab.Position = UDim2.new(0,10,0,30)
204Stab.Text = "Stab"
205
206local SmellyRun = Chop:Clone()
207SmellyRun.Name = "SmellyRun"
208SmellyRun.Parent = Background
209SmellyRun.Position = UDim2.new(0,10,0,70)
210SmellyRun.Text = "SmellyRun"
211
212local rando = Chop:Clone()
213rando.Name = "rando"
214rando.Parent = Background
215rando.Position = UDim2.new(0,120,0,110)
216rando.Text = "rando"
217
218local hmm = Chop:Clone()
219hmm.Name = "hmm"
220hmm.Parent = Background
221hmm.Position = UDim2.new(0,120,0,150)
222hmm.Text = "hmm"
223
224local Kick = Chop:Clone()
225Kick.Name = "Kick"
226Kick.Parent = Background
227Kick.Position = UDim2.new(0,10,0,150)
228Kick.Size = UDim2.new(0,100,0,30)
229Kick.Text = "Kick"
230
231local Flying = Chop:Clone()
232Flying.Name = "Flying"
233Flying.Parent = Background
234Flying.Position = UDim2.new(0,230,0,30)
235Flying.Size = UDim2.new(0,100,0,30)
236Flying.Text = "Flying"
237
238local Arms = Chop:Clone()
239Arms.Name = "Arms"
240Arms.Parent = Background
241Arms.Position = UDim2.new(0,230,0,70)
242Arms.Size = UDim2.new(0,100,0,30)
243Arms.Text = "Arms"
244
245local Sword = Chop:Clone()
246Sword.Name = "Sword"
247Sword.Parent = Background
248Sword.Position = UDim2.new(0,230,0,110)
249Sword.Size = UDim2.new(0,100,0,30)
250Sword.Text = "Sword"
251
252local Insane = Chop:Clone()
253Insane.Name = "Insane"
254Insane.Parent = Background
255Insane.Position = UDim2.new(0,230,0,150)
256Insane.Size = UDim2.new(0,100,0,30)
257Insane.Text = "Insane"
258
259--
260 local plr = game.Players.LocalPlayer
261
262local mouse = plr:GetMouse()
263
264lpc = game.Players.LocalPlayer.Character
265
266weld1 = Instance.new("Weld")
267
268Chop.MouseButton1Down:connect(function()
269local gg = mouse.Target
270if gg ~= nil then
271for i,v in pairs(game.Players:GetPlayers()) do
272AnimationId = "33169596"
273local Anim = Instance.new("Animation")
274Anim.AnimationId = "rbxassetid://"..AnimationId
275local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
276k:Play()
277k:AdjustSpeed(1)
278end
279end
280end)
281
282Insane.MouseButton1Down:connect(function()
283local gg = mouse.Target
284if gg ~= nil then
285for i,v in pairs(game.Players:GetPlayers()) do
286AnimationId = "33796059"
287local Anim = Instance.new("Animation")
288Anim.AnimationId = "rbxassetid://"..AnimationId
289local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
290k:Play()
291k:AdjustSpeed(10000)
292end
293end
294end)
295
296Arms.MouseButton1Down:connect(function()
297local gg = mouse.Target
298if gg ~= nil then
299for i,v in pairs(game.Players:GetPlayers()) do
300AnimationId = "33169583"
301local Anim = Instance.new("Animation")
302Anim.AnimationId = "rbxassetid://"..AnimationId
303local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
304k:Play()
305k:AdjustSpeed(1)
306end
307end
308end)
309
310Sword.MouseButton1Click:connect(function()
311local gg = mouse.Target
312if gg ~= nil then
313for i,v in pairs(game.Players:GetPlayers()) do
314AnimationId = "35978879"
315local Anim = Instance.new("Animation")
316Anim.AnimationId = "rbxassetid://"..AnimationId
317local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
318k:Play()
319k:AdjustSpeed(1)
320end
321end
322end)
323
324hmm.MouseButton1Down:connect(function()
325local gg = mouse.Target
326if gg ~= nil then
327for i,v in pairs(game.Players:GetPlayers()) do
328AnimationId = "33855276"
329local Anim = Instance.new("Animation")
330Anim.AnimationId = "rbxassetid://"..AnimationId
331local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
332k:Play()
333k:AdjustSpeed(1)
334end
335end
336end)
337
338rando.MouseButton1Down:connect(function()
339local gg = mouse.Target
340if gg ~= nil then
341for i,v in pairs(game.Players:GetPlayers()) do
342AnimationId = "48977286"
343local Anim = Instance.new("Animation")
344Anim.AnimationId = "rbxassetid://"..AnimationId
345local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
346k:Play()
347k:AdjustSpeed(1)
348end
349end
350end)
351
352Dance.MouseButton1Down:connect(function()
353local gg = mouse.Target
354if gg ~= nil then
355for i,v in pairs(game.Players:GetPlayers()) do
356AnimationId = "35654637"
357local Anim = Instance.new("Animation")
358Anim.AnimationId = "rbxassetid://"..AnimationId
359local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
360k:Play()
361k:AdjustSpeed(1)
362end
363end
364end)
365
366Stab.MouseButton1Down:connect(function()
367local gg = mouse.Target
368if gg ~= nil then
369for i,v in pairs(game.Players:GetPlayers()) do
370AnimationId = "66703241"
371local Anim = Instance.new("Animation")
372Anim.AnimationId = "rbxassetid://"..AnimationId
373local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
374k:Play()
375k:AdjustSpeed(1)
376end
377end
378end)
379
380Kick.MouseButton1Down:connect(function()
381local gg = mouse.Target
382if gg ~= nil then
383for i,v in pairs(game.Players:GetPlayers()) do
384AnimationId = "45737360"
385local Anim = Instance.new("Animation")
386Anim.AnimationId = "rbxassetid://"..AnimationId
387local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
388k:Play()
389k:AdjustSpeed(1)
390end
391end
392end)
393
394Flying.MouseButton1Down:connect(function()
395flying = not flying
396repeat wait()
397until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
398local mouse = game.Players.LocalPlayer:GetMouse()
399repeat wait() until mouse
400local plr = game.Players.LocalPlayer
401local torso = plr.Character.Torso
402local deb = true
403local ctrl = {f = 0, b = 0, l = 0, r = 0}
404local lastctrl = {f = 0, b = 0, l = 0, r = 0}
405local maxspeed = 70
406local speed = 0
407if flying then
408 Fly.BackgroundColor3 = loc
409else
410 Fly.BackgroundColor3 = col
411end
412
413function FlyFunction()
414local bg = Instance.new("BodyGyro", torso)
415bg.P = 9e4
416bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
417bg.cframe = torso.CFrame
418local bv = Instance.new("BodyVelocity", torso)
419bv.velocity = Vector3.new(0,0.1,0)
420bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
421repeat wait()
422plr.Character.Humanoid.PlatformStand = true
423if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
424speed = speed+.5+(speed/maxspeed)
425if speed > maxspeed then
426speed = maxspeed
427end
428elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
429speed = speed-1
430if speed < 0 then
431speed = 0
432end
433end
434if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
435bv.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
436lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
437elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
438bv.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
439else
440bv.velocity = Vector3.new(0,0.1,0)
441end
442bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
443until not flying
444ctrl = {f = 0, b = 0, l = 0, r = 0}
445lastctrl = {f = 0, b = 0, l = 0, r = 0}
446speed = 0
447bg:Destroy()
448bv:Destroy()
449plr.Character.Humanoid.PlatformStand = false
450end
451mouse.KeyDown:connect(function(key)
452if key:lower() == "w" then
453ctrl.f = 1
454elseif key:lower() == "s" then
455ctrl.b = -1
456elseif key:lower() == "a" then
457ctrl.l = -1
458elseif key:lower() == "d" then
459ctrl.r = 1
460end
461end)
462mouse.KeyUp:connect(function(key)
463if key:lower() == "w" then
464ctrl.f = 0
465elseif key:lower() == "s" then
466ctrl.b = 0
467elseif key:lower() == "a" then
468ctrl.l = 0
469elseif key:lower() == "d" then
470ctrl.r = 0
471end
472end)
473FlyFunction()
474end)
475
476SmellyRun.MouseButton1Down:connect(function()
477local gg = mouse.Target
478if gg ~= nil then
479for i,v in pairs(game.Players:GetPlayers()) do
480AnimationId = "30235165"
481local Anim = Instance.new("Animation")
482Anim.AnimationId = "rbxassetid://"..AnimationId
483local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
484k:Play()
485k:AdjustSpeed(1)
486end
487end
488end)
489
490ArmsOut.MouseButton1Down:connect(function()
491local gg = mouse.Target
492if gg ~= nil then
493for i,v in pairs(game.Players:GetPlayers()) do
494AnimationId = "27432691"
495local Anim = Instance.new("Animation")
496Anim.AnimationId = "rbxassetid://"..AnimationId
497local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
498k:Play()
499k:AdjustSpeed(1)
500end
501end
502end)
503end)
504
505CreeperR6.Name = "Creeper R6"
506CreeperR6.Parent = MainBody
507CreeperR6.BackgroundColor3 = Color3.new(0, 0.615686, 1)
508CreeperR6.Position = UDim2.new(-0.000271856785, 0, 0.194331974, 0)
509CreeperR6.Size = UDim2.new(0, 106, 0, 27)
510CreeperR6.Font = Enum.Font.SciFi
511CreeperR6.Text = "Creeper (R6)"
512CreeperR6.TextColor3 = Color3.new(1, 1, 1)
513CreeperR6.TextSize = 14
514
515CreeperR6.MouseButton1Down:connect(function()
516 game.Players.LocalPlayer.Character.Head.Mesh:Destroy()
517game.Players.LocalPlayer.Character["Left Arm"]:Destroy()
518game.Players.LocalPlayer.Character["Right Arm"]:Destroy()
519end)
520
521CreeperR15.Name = "Creeper R15"
522CreeperR15.Parent = MainBody
523CreeperR15.BackgroundColor3 = Color3.new(0, 0.615686, 1)
524CreeperR15.Position = UDim2.new(0.349042743, 0, 0.192480117, 0)
525CreeperR15.Size = UDim2.new(0, 106, 0, 27)
526CreeperR15.Font = Enum.Font.SciFi
527CreeperR15.Text = "Creeper (R15)"
528CreeperR15.TextColor3 = Color3.new(1, 1, 1)
529CreeperR15.TextSize = 14
530
531CreeperR15.MouseButton1Down:connect(function()
532 game.Players.LocalPlayer.Character.Head.Mesh:Destroy()
533game.Players.LocalPlayer.Character.LeftHand:Destroy()
534game.Players.LocalPlayer.Character.LeftLowerArm:Destroy()
535game.Players.LocalPlayer.Character.LeftUpperArm:Destroy()
536game.Players.LocalPlayer.Character.RightHand:Destroy()
537game.Players.LocalPlayer.Character.RightLowerArm:Destroy()
538game.Players.LocalPlayer.Character.RightUpperArm:Destroy()
539end)
540
541AnimationsR15.Name = "Animations R15"
542AnimationsR15.Parent = MainBody
543AnimationsR15.BackgroundColor3 = Color3.new(0, 0.615686, 1)
544AnimationsR15.Position = UDim2.new(0.698873341, 0, 0.34988755, 0)
545AnimationsR15.Size = UDim2.new(0, 106, 0, 27)
546AnimationsR15.Font = Enum.Font.SciFi
547AnimationsR15.Text = "Animations (R15)"
548AnimationsR15.TextColor3 = Color3.new(1, 1, 1)
549AnimationsR15.TextSize = 14
550
551AnimationsR15.MouseButton1Down:connect(function()
552 loadstring(Game:GetObjects("rbxassetid://1202558084")[1].Source)()
553end)
554
555FEDropHats.Name = "FE DropHats"
556FEDropHats.Parent = MainBody
557FEDropHats.BackgroundColor3 = Color3.new(0, 0.615686, 1)
558FEDropHats.Position = UDim2.new(0.347598553, 0, 0.34988755, 0)
559FEDropHats.Size = UDim2.new(0, 106, 0, 27)
560FEDropHats.Font = Enum.Font.SciFi
561FEDropHats.Text = "FE DropHats"
562FEDropHats.TextColor3 = Color3.new(1, 1, 1)
563FEDropHats.TextSize = 14
564
565FEDropHats.MouseButton1Down:connect(function()
566 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)
567end)
568
569NoLimbs.Name = "No Limbs"
570NoLimbs.Parent = MainBody
571NoLimbs.BackgroundColor3 = Color3.new(0, 0.615686, 1)
572NoLimbs.Position = UDim2.new(-0.000843375921, 0, 0.34988755, 0)
573NoLimbs.Size = UDim2.new(0, 106, 0, 27)
574NoLimbs.Font = Enum.Font.SciFi
575NoLimbs.Text = "No lmbs"
576NoLimbs.TextColor3 = Color3.new(1, 1, 1)
577NoLimbs.TextSize = 14
578
579NoLimbs.MouseButton1Down:connect(function()
580 game.Players.LocalPlayer.Character["Left Leg"]:Destroy()
581 game.Players.LocalPlayer.Character["Left Arm"]:Destroy()
582 game.Players.LocalPlayer.Character["Right Leg"]:Destroy()
583 game.Players.LocalPlayer.Character["Right Arm"]:Destroy()
584end)
585
586FEbtools.Name = "FE btools"
587FEbtools.Parent = MainBody
588FEbtools.BackgroundColor3 = Color3.new(0, 0.615686, 1)
589FEbtools.Position = UDim2.new(-0.000843375921, 0, 0.501739383, 0)
590FEbtools.Size = UDim2.new(0, 106, 0, 27)
591FEbtools.Font = Enum.Font.SciFi
592FEbtools.Text = "FE btools"
593FEbtools.TextColor3 = Color3.new(1, 1, 1)
594FEbtools.TextSize = 14
595
596FEbtools.MouseButton1Down:connect(function()
597 maind = nil
598if workspace:FindFirstChild'GiveSystem' then
599 if workspace.GiveSystem:FindFirstChild'GiveItem' then
600 maind = workspace.GiveSystem.GiveItem
601 end
602end
603if workspace:FindFirstChild'HandToCentre' then
604 if workspace.HandToCentre:FindFirstChild'SendItem' then
605 maind = workspace.HandToCentre.SendItem
606 end
607end
608if maind == nil then
609 print'could not find give event :('
610 return
611end
612tool = Instance.new'Tool'
613me = game:GetService'Players'.LocalPlayer
614tool.RequiresHandle = false
615tool.TextureId = 'http://www.roblox.com/asset/?id=12223874'
616tool.Name = 'ya like jazz?'
617tool.Parent = me.Backpack
618buttonf = nil
619tool.Equipped:connect(function()
620 local m = game:GetService'Players'.LocalPlayer:GetMouse()
621 m.Icon = 'rbxasset://textures/HammerCursor.png'
622 buttonf = m.Button1Down:connect(function()
623 if m.Target == nil then return end
624 local ob = m.Target
625 if ob:IsA'BasePart' or ob:IsA'WedgePart' then
626 if ob:IsDescendantOf(me.Character) then return end
627 m.Icon = 'rbxasset://textures/HammerOverCursor.png'
628 local ex = Instance.new'Explosion'
629 ex.BlastRadius = 0
630 ex.Position = ob.Position
631 ex.Parent = workspace
632 maind:FireServer(workspace, ob)
633 wait(0.3)
634 m.Icon = 'rbxasset://textures/HammerCursor.png'
635 end
636 end)
637end)
638tool.Unequipped:connect(function()
639 if buttonf ~= nil then
640 buttonf:Disconnect()
641 buttonf = nil
642 end
643 local m = game:GetService'Players'.LocalPlayer:GetMouse()
644 m.Icon = ''
645end)
646end)
647
648FlyR6.Name = "Fly (R6)"
649FlyR6.Parent = MainBody
650FlyR6.BackgroundColor3 = Color3.new(0, 0.615686, 1)
651FlyR6.Position = UDim2.new(0.347598553, 0, 0.501739383, 0)
652FlyR6.Size = UDim2.new(0, 106, 0, 27)
653FlyR6.Font = Enum.Font.SciFi
654FlyR6.Text = "Fly (R6)"
655FlyR6.TextColor3 = Color3.new(1, 1, 1)
656FlyR6.TextSize = 14
657
658FlyR6.MouseButton1Down:connect(function()
659 -- FLY SCRIPT BY RGEENEUS
660
661-- The following code should be in a local script.
662-- Only works on PC, not xbox or mobile. I do not have devices to test on.
663-- Call the start fly function AFTER the character exists to fly. The function does not run if there is no character.
664
665local speed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running
666
667local c
668local h
669local bv
670local bav
671local cam
672local flying
673local p = game.Players.LocalPlayer
674local buttons = {W = false, S = false, A = false, D = false, Moving = false}
675
676local startFly = function () -- Call this function to begin flying
677 if not p.Character or not p.Character.Head or flying then return end
678 c = p.Character
679 h = c.Humanoid
680 h.PlatformStand = true
681 cam = workspace:WaitForChild('Camera')
682 bv = Instance.new("BodyVelocity")
683 bav = Instance.new("BodyAngularVelocity")
684 bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
685 bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
686 bv.Parent = c.Head
687 bav.Parent = c.Head
688 flying = true
689 h.Died:connect(function() flying = false end)
690end
691
692local endFly = function () -- Call this function to stop flying
693 if not p.Character or not flying then return end
694 h.PlatformStand = false
695 bv:Destroy()
696 bav:Destroy()
697 flying = false
698end
699
700game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
701 if GPE then return end
702 for i, e in pairs(buttons) do
703 if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
704 buttons[i] = true
705 buttons.Moving = true
706 end
707 end
708end)
709
710game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
711 if GPE then return end
712 local a = false
713 for i, e in pairs(buttons) do
714 if i ~= "Moving" then
715 if input.KeyCode == Enum.KeyCode[i] then
716 buttons[i] = false
717 end
718 if buttons[i] then a = true end
719 end
720 end
721 buttons.Moving = a
722end)
723
724local setVec = function (vec)
725 return vec * (speed / vec.Magnitude)
726end
727
728game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
729 if flying and c and c.PrimaryPart then
730 local p = c.PrimaryPart.Position
731 local cf = cam.CFrame
732 local ax, ay, az = cf:toEulerAnglesXYZ()
733 c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
734 if buttons.Moving then
735 local t = Vector3.new()
736 if buttons.W then t = t + (setVec(cf.lookVector)) end
737 if buttons.S then t = t - (setVec(cf.lookVector)) end
738 if buttons.A then t = t - (setVec(cf.rightVector)) end
739 if buttons.D then t = t + (setVec(cf.rightVector)) end
740 c:TranslateBy(t * step)
741 end
742 end
743end)
744end)
745
746FEinvisible.Name = "FE invisible"
747FEinvisible.Parent = MainBody
748FEinvisible.BackgroundColor3 = Color3.new(0, 0.615686, 1)
749FEinvisible.Position = UDim2.new(0.698873341, 0, 0.501739383, 0)
750FEinvisible.Size = UDim2.new(0, 106, 0, 27)
751FEinvisible.Font = Enum.Font.SciFi
752FEinvisible.Text = "FE Invisible (R6)"
753FEinvisible.TextColor3 = Color3.new(1, 1, 1)
754FEinvisible.TextSize = 14
755
756FEinvisible.MouseButton1Down:connect(function()
757 Local = game:GetService('Players').LocalPlayer
758Char = Local.Character
759touched,tpdback = false, false
760Local.CharacterAdded:connect(function(char)
761 if script.Disabled ~= true then
762 wait(.25)
763 loc = Char.HumanoidRootPart.Position
764 Char:MoveTo(box.Position + Vector3.new(0,.5,0))
765 end
766end)
767game:GetService('UserInputService').InputBegan:connect(function(key)
768 if key.KeyCode == Enum.KeyCode.Equals then
769 if script.Disabled ~= true then
770 script.Disabled = true
771 print'you may re-execute'
772 end
773 end
774end)
775box = Instance.new('Part',workspace)
776box.Anchored = true
777box.CanCollide = true
778box.Size = Vector3.new(10,1,10)
779box.Position = Vector3.new(0,10000,0)
780box.Touched:connect(function(part)
781 if (part.Parent.Name == Local.Name) then
782 if touched == false then
783 touched = true
784 function apply()
785 if script.Disabled ~= true then
786 no = Char.HumanoidRootPart:Clone()
787 wait(.25)
788 Char.HumanoidRootPart:Destroy()
789 no.Parent = Char
790 Char:MoveTo(loc)
791 touched = false
792 end end
793 if Char then
794 apply()
795 end
796 end
797 end
798end)
799repeat wait() until Char
800loc = Char.HumanoidRootPart.Position
801Char:MoveTo(box.Position + Vector3.new(0,.5,0))
802end)
803
804Glitchmax.Name = "Glitchmax"
805Glitchmax.Parent = MainBody
806Glitchmax.BackgroundColor3 = Color3.new(0, 0.615686, 1)
807Glitchmax.Position = UDim2.new(-0.000843346119, 0, 0.653591216, 0)
808Glitchmax.Size = UDim2.new(0, 106, 0, 27)
809Glitchmax.Font = Enum.Font.SciFi
810Glitchmax.Text = "Glitchmax GUI"
811Glitchmax.TextColor3 = Color3.new(1, 1, 1)
812Glitchmax.TextSize = 14
813
814Glitchmax.MouseButton1Down:connect(function()
815 -- Objects
816
817local GlitchMax = Instance.new("ScreenGui")
818local MainFrame = Instance.new("Frame")
819local TopFrame = Instance.new("Frame")
820local Title = Instance.new("TextLabel")
821local CloseGUI = Instance.new("TextButton")
822local Credit = Instance.new("TextLabel")
823local DetailTopFrame = Instance.new("Frame")
824local ButtonFrame = Instance.new("Frame")
825local UserBox = Instance.new("TextBox")
826local Flatten = Instance.new("TextButton")
827local Push = Instance.new("TextButton")
828local LockOn = Instance.new("TextButton")
829local Float = Instance.new("TextButton")
830local Stick = Instance.new("TextButton")
831local Experimental = Instance.new("TextButton")
832local SideFrame = Instance.new("Frame")
833local OpenGUI = Instance.new("TextButton")
834local SideCredit = Instance.new("TextLabel")
835local SideTitle = Instance.new("TextLabel")
836
837-- Properties
838
839GlitchMax.Name = "GlitchMax"
840GlitchMax.Parent = game.CoreGui
841
842MainFrame.Name = "MainFrame"
843MainFrame.Parent = GlitchMax
844MainFrame.Active = true
845MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
846MainFrame.BackgroundTransparency = 1
847MainFrame.Draggable = true
848MainFrame.Position = UDim2.new(0, 570, 0, 61)
849MainFrame.Size = UDim2.new(0, 376, 0, 285)
850
851TopFrame.Name = "TopFrame"
852TopFrame.Parent = MainFrame
853TopFrame.BackgroundColor3 = Color3.new(0.466667, 0.47451, 1)
854TopFrame.Size = UDim2.new(0, 376, 0, 36)
855
856Title.Name = "Title"
857Title.Parent = TopFrame
858Title.BackgroundColor3 = Color3.new(1, 1, 1)
859Title.BackgroundTransparency = 1
860Title.Size = UDim2.new(0, 376, 0, 36)
861Title.Font = Enum.Font.Highway
862Title.FontSize = Enum.FontSize.Size14
863Title.Text = "GlitchMax"
864Title.TextColor3 = Color3.new(0.243137, 0.372549, 0.4)
865Title.TextScaled = true
866Title.TextSize = 14
867Title.TextStrokeColor3 = Color3.new(1, 1, 1)
868Title.TextStrokeTransparency = 0
869Title.TextWrapped = true
870
871CloseGUI.Name = "CloseGUI"
872CloseGUI.Parent = TopFrame
873CloseGUI.BackgroundColor3 = Color3.new(1, 1, 1)
874CloseGUI.BackgroundTransparency = 1
875CloseGUI.Position = UDim2.new(0, 327, 0, 0)
876CloseGUI.Size = UDim2.new(0, 49, 0, 36)
877CloseGUI.Font = Enum.Font.SourceSans
878CloseGUI.FontSize = Enum.FontSize.Size60
879CloseGUI.Text = "X"
880CloseGUI.TextSize = 50
881
882Credit.Name = "Credit"
883Credit.Parent = TopFrame
884Credit.BackgroundColor3 = Color3.new(1, 1, 1)
885Credit.BackgroundTransparency = 1
886Credit.Position = UDim2.new(0, 16, 0, 0)
887Credit.Size = UDim2.new(0, 96, 0, 36)
888Credit.Font = Enum.Font.Highway
889Credit.FontSize = Enum.FontSize.Size14
890Credit.Text = "illremember"
891Credit.TextColor3 = Color3.new(0.431373, 0.662745, 0.709804)
892Credit.TextScaled = true
893Credit.TextSize = 14
894Credit.TextStrokeColor3 = Color3.new(1, 1, 1)
895Credit.TextStrokeTransparency = 0
896Credit.TextWrapped = true
897
898DetailTopFrame.Name = "DetailTopFrame"
899DetailTopFrame.Parent = MainFrame
900DetailTopFrame.BackgroundColor3 = Color3.new(0.541176, 0.678431, 1)
901DetailTopFrame.Position = UDim2.new(0, 0, 0, 37)
902DetailTopFrame.Size = UDim2.new(0, 376, 0, 11)
903
904ButtonFrame.Name = "ButtonFrame"
905ButtonFrame.Parent = MainFrame
906ButtonFrame.BackgroundColor3 = Color3.new(0.945098, 0.945098, 0.945098)
907ButtonFrame.Position = UDim2.new(0, 0, 0, 49)
908ButtonFrame.Size = UDim2.new(0, 376, 0, 236)
909
910UserBox.Name = "UserBox"
911UserBox.Parent = ButtonFrame
912UserBox.BackgroundColor3 = Color3.new(0.898039, 0.898039, 0.898039)
913UserBox.BorderColor3 = Color3.new(0.360784, 0.384314, 0.392157)
914UserBox.BorderSizePixel = 5
915UserBox.Position = UDim2.new(0, 33, 0, 15)
916UserBox.Size = UDim2.new(0, 310, 0, 31)
917UserBox.Font = Enum.Font.SourceSans
918UserBox.FontSize = Enum.FontSize.Size14
919UserBox.Text = ""
920UserBox.TextScaled = true
921UserBox.TextSize = 14
922UserBox.TextWrapped = true
923
924Flatten.Name = "Flatten"
925Flatten.Parent = ButtonFrame
926Flatten.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
927Flatten.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
928Flatten.BorderSizePixel = 2
929Flatten.Position = UDim2.new(0, 22, 0, 66)
930Flatten.Size = UDim2.new(0, 135, 0, 36)
931Flatten.Font = Enum.Font.Highway
932Flatten.FontSize = Enum.FontSize.Size32
933Flatten.Text = "Flatten"
934Flatten.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
935Flatten.TextScaled = true
936Flatten.TextSize = 30
937Flatten.TextWrapped = true
938
939Push.Name = "Push"
940Push.Parent = ButtonFrame
941Push.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
942Push.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
943Push.BorderSizePixel = 2
944Push.Position = UDim2.new(0, 22, 0, 126)
945Push.Size = UDim2.new(0, 135, 0, 36)
946Push.Font = Enum.Font.Highway
947Push.FontSize = Enum.FontSize.Size32
948Push.Text = "Push"
949Push.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
950Push.TextScaled = true
951Push.TextSize = 30
952Push.TextWrapped = true
953
954LockOn.Name = "LockOn"
955LockOn.Parent = ButtonFrame
956LockOn.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
957LockOn.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
958LockOn.BorderSizePixel = 2
959LockOn.Position = UDim2.new(0, 22, 0, 186)
960LockOn.Size = UDim2.new(0, 135, 0, 36)
961LockOn.Font = Enum.Font.Highway
962LockOn.FontSize = Enum.FontSize.Size32
963LockOn.Text = "LockOn"
964LockOn.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
965LockOn.TextSize = 30
966LockOn.TextWrapped = true
967
968Float.Name = "Float"
969Float.Parent = ButtonFrame
970Float.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
971Float.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
972Float.BorderSizePixel = 2
973Float.Position = UDim2.new(0, 218, 0, 66)
974Float.Size = UDim2.new(0, 135, 0, 36)
975Float.Font = Enum.Font.Highway
976Float.FontSize = Enum.FontSize.Size32
977Float.Text = "Float"
978Float.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
979Float.TextScaled = true
980Float.TextSize = 30
981Float.TextWrapped = true
982
983Stick.Name = "Stick"
984Stick.Parent = ButtonFrame
985Stick.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
986Stick.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
987Stick.BorderSizePixel = 2
988Stick.Position = UDim2.new(0, 218, 0, 126)
989Stick.Size = UDim2.new(0, 135, 0, 36)
990Stick.Font = Enum.Font.Highway
991Stick.FontSize = Enum.FontSize.Size32
992Stick.Text = "Stick"
993Stick.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
994Stick.TextSize = 30
995Stick.TextWrapped = true
996
997Experimental.Name = "Experimental"
998Experimental.Parent = ButtonFrame
999Experimental.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
1000Experimental.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
1001Experimental.BorderSizePixel = 2
1002Experimental.Position = UDim2.new(0, 218, 0, 186)
1003Experimental.Size = UDim2.new(0, 135, 0, 36)
1004Experimental.Font = Enum.Font.Highway
1005Experimental.FontSize = Enum.FontSize.Size28
1006Experimental.Text = "Experimental"
1007Experimental.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
1008Experimental.TextSize = 25
1009Experimental.TextWrapped = true
1010
1011SideFrame.Name = "SideFrame"
1012SideFrame.Parent = GlitchMax
1013SideFrame.Active = true
1014SideFrame.BackgroundColor3 = Color3.new(0.466667, 0.47451, 1)
1015SideFrame.Draggable = true
1016SideFrame.Position = UDim2.new(0, 570, 0, 61)
1017SideFrame.Size = UDim2.new(0, 376, 0, 36)
1018SideFrame.Visible = false
1019
1020OpenGUI.Name = "OpenGUI"
1021OpenGUI.Parent = SideFrame
1022OpenGUI.BackgroundColor3 = Color3.new(1, 1, 1)
1023OpenGUI.BackgroundTransparency = 1
1024OpenGUI.Position = UDim2.new(0, 327, 0, 0)
1025OpenGUI.Size = UDim2.new(0, 49, 0, 36)
1026OpenGUI.Font = Enum.Font.SourceSans
1027OpenGUI.FontSize = Enum.FontSize.Size60
1028OpenGUI.Text = "X"
1029OpenGUI.TextSize = 50
1030
1031SideCredit.Name = "SideCredit"
1032SideCredit.Parent = SideFrame
1033SideCredit.BackgroundColor3 = Color3.new(1, 1, 1)
1034SideCredit.BackgroundTransparency = 1
1035SideCredit.Position = UDim2.new(0, 16, 0, 0)
1036SideCredit.Size = UDim2.new(0, 96, 0, 36)
1037SideCredit.Font = Enum.Font.Highway
1038SideCredit.FontSize = Enum.FontSize.Size14
1039SideCredit.Text = "illremember"
1040SideCredit.TextColor3 = Color3.new(0.431373, 0.662745, 0.709804)
1041SideCredit.TextScaled = true
1042SideCredit.TextSize = 14
1043SideCredit.TextStrokeColor3 = Color3.new(1, 1, 1)
1044SideCredit.TextStrokeTransparency = 0
1045SideCredit.TextWrapped = true
1046
1047SideTitle.Name = "SideTitle"
1048SideTitle.Parent = SideFrame
1049SideTitle.BackgroundColor3 = Color3.new(1, 1, 1)
1050SideTitle.BackgroundTransparency = 1
1051SideTitle.Size = UDim2.new(0, 376, 0, 36)
1052SideTitle.Font = Enum.Font.Highway
1053SideTitle.FontSize = Enum.FontSize.Size14
1054SideTitle.Text = "GlitchMax"
1055SideTitle.TextColor3 = Color3.new(0.243137, 0.372549, 0.4)
1056SideTitle.TextScaled = true
1057SideTitle.TextSize = 14
1058SideTitle.TextStrokeColor3 = Color3.new(1, 1, 1)
1059SideTitle.TextStrokeTransparency = 0
1060SideTitle.TextWrapped = true
1061
1062-- Buttons
1063
1064col = Color3.new(0.254902, 0.254902, 0.254902)
1065loc = Color3.new(0.40, 0.40, 0.40)
1066
1067CloseGUI.MouseButton1Click:connect(function()
1068 MainFrame.Visible = false
1069 SideFrame.Visible = true
1070 SideFrame.Position = MainFrame.Position
1071end)
1072
1073OpenGUI.MouseButton1Click:connect(function()
1074 MainFrame.Visible = true
1075 SideFrame.Visible = false
1076 MainFrame.Position = SideFrame.Position
1077end)
1078
1079function shortnames(username)
1080 local nameshort = {}
1081 for i,v in pairs(game.Players:GetPlayers()) do
1082 if v.Name:lower():sub(1, #username) == username:lower() then
1083 table.insert(nameshort,v)
1084 end
1085 end
1086 return nameshort
1087end
1088
1089local Anim = Instance.new("Animation")
1090Anim.AnimationId = "rbxassetid://282574440"
1091local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
1092flattening = false
1093Flatten.MouseButton1Click:connect(function()
1094 flattening = not flattening
1095 if flattening then
1096 Flatten.BackgroundColor3 = loc
1097 local y = Instance.new("RocketPropulsion")
1098 y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
1099 y.CartoonFactor = 1
1100 y.MaxThrust = 50000
1101 y.MaxSpeed = 1000
1102 y.ThrustP = 50000
1103 y.Name = "Flatten"
1104 for i,v in pairs(shortnames(UserBox.Text))do
1105 y.Target = game.Players[v.name].Character["Left Leg"]
1106 y:Fire()
1107 track:Play(.1, 1, 1)
1108 game:GetService('RunService').Stepped:connect(function()
1109 if flattening then
1110 game.Players.LocalPlayer.Character.Head.CanCollide = false
1111 game.Players.LocalPlayer.Character.Torso.CanCollide = false
1112 game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
1113 game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
1114 end
1115 end)
1116 while wait(0.3) do
1117 if flattening then
1118 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame + Vector3.new(0,2,0)
1119 end
1120 end
1121 end
1122 else
1123 game.Players.LocalPlayer.Character.HumanoidRootPart.Flatten:Destroy()
1124 track:Stop()
1125 Flatten.BackgroundColor3 = col
1126 end
1127end)
1128
1129floating = false
1130Float.MouseButton1Click:connect(function()
1131 floating = not floating
1132 if floating then
1133 Float.BackgroundColor3 = loc
1134 local y = Instance.new("RocketPropulsion")
1135 y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
1136 y.CartoonFactor = 1
1137 y.MaxThrust = 50000
1138 y.MaxSpeed = 1000
1139 y.ThrustP = 50000
1140 y.Name = "Float"
1141 for i,v in pairs(shortnames(UserBox.Text))do
1142 y.Target = game.Players[v.Name].Character.Head
1143 y:Fire()
1144 game:GetService('RunService').Stepped:connect(function()
1145 if floating then
1146 game.Players.LocalPlayer.Character.Head.CanCollide = false
1147 game.Players.LocalPlayer.Character.Torso.CanCollide = false
1148 game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
1149 game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
1150 end
1151 end)
1152 while wait(0.3) do
1153 if floating then
1154 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character["Left Leg"].CFrame
1155 end
1156 end
1157 end
1158 else
1159 game.Players.LocalPlayer.Character.HumanoidRootPart.Float:Destroy()
1160 Float.BackgroundColor3 = col
1161 end
1162end)
1163
1164LockOnACTIVE = false
1165LockOn.MouseButton1Click:connect(function()
1166 LockOnACTIVE = not LockOnACTIVE
1167 for i,v in pairs(shortnames(UserBox.Text))do
1168 while wait() do
1169 if LockOnACTIVE then
1170 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame
1171 LockOn.BackgroundColor3 = loc
1172 else
1173 LockOn.BackgroundColor3 = col
1174 end
1175 end
1176 end
1177end)
1178
1179pushing = false
1180Push.MouseButton1Click:connect(function()
1181 pushing = not pushing
1182 if pushing then
1183 Push.BackgroundColor3 = loc
1184 local b = Instance.new("RocketPropulsion")
1185 b.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
1186 b.TurnP = 2500
1187 b.MaxThrust = 50000
1188 b.MaxSpeed = 1000
1189 b.ThrustP = 50000
1190 b.CartoonFactor = 1
1191 b.Name = "Push"
1192 for i,v in pairs(shortnames(UserBox.Text))do
1193 b.Target = game.Players[v.Name].Character.HumanoidRootPart
1194 b:Fire()
1195 game:GetService('RunService').Stepped:connect(function()
1196 if pushing then
1197 game.Players.LocalPlayer.Character.Head.CanCollide = false
1198 game.Players.LocalPlayer.Character.Torso.CanCollide = false
1199 game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
1200 game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
1201 end
1202 end)
1203 b:Fire()
1204 end
1205 else
1206 game.Players.LocalPlayer.Character.HumanoidRootPart.Push:Destroy()
1207 Push.BackgroundColor3 = col
1208 end
1209end)
1210
1211local Anim = Instance.new("Animation")
1212Anim.AnimationId = "rbxassetid://215384594"
1213local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
1214experi = false
1215Experimental.MouseButton1Click:connect(function()
1216 experi = not experi
1217 if experi then
1218 Experimental.BackgroundColor3 = loc
1219 local h = Instance.new("RocketPropulsion")
1220 h.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
1221 h.Name = "Experimental"
1222 for i,v in pairs(shortnames(UserBox.Text))do
1223 h.Target = game.Players[v.Name].Character.HumanoidRootPart
1224 h:Fire()
1225 track:Play(.1,1,1)
1226 game:GetService('RunService').Stepped:connect(function()
1227 if experi then
1228 game.Players.LocalPlayer.Character.Head.CanCollide = false
1229 game.Players.LocalPlayer.Character.Torso.CanCollide = false
1230 game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
1231 game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
1232 end
1233 end)
1234 end
1235 else
1236 game.Players.LocalPlayer.Character.HumanoidRootPart.Experimental:Destroy()
1237 track:Stop()
1238 Stick.BackgroundColor3 = col
1239 end
1240end)
1241
1242stuck = false
1243Stick.MouseButton1Click:connect(function()
1244 stuck = not stuck
1245 if stuck then
1246 Stick.BackgroundColor3 = loc
1247 local h = Instance.new("RocketPropulsion")
1248 h.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
1249 h.MaxSpeed = 1000
1250 h.MaxThrust = 10000
1251 h.Name = "Stick"
1252 for i,v in pairs(shortnames(UserBox.Text))do
1253 h.Target = game.Players[v.Name].Character.HumanoidRootPart
1254 h:Fire()
1255 game:GetService('RunService').Stepped:connect(function()
1256 if stuck then
1257 game.Players.LocalPlayer.Character.Head.CanCollide = false
1258 game.Players.LocalPlayer.Character.Torso.CanCollide = false
1259 game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
1260 game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
1261 end
1262 end)
1263 end
1264 else
1265 game.Players.LocalPlayer.Character.HumanoidRootPart.Stick:Destroy()
1266 Stick.BackgroundColor3 = col
1267 end
1268end)
1269end)
1270
1271
1272FEFloatinghead.Name = "FE Floating head"
1273FEFloatinghead.Parent = MainBody
1274FEFloatinghead.BackgroundColor3 = Color3.new(0, 0.615686, 1)
1275FEFloatinghead.Position = UDim2.new(0.347598583, 0, 0.653591216, 0)
1276FEFloatinghead.Size = UDim2.new(0, 106, 0, 27)
1277FEFloatinghead.Font = Enum.Font.SciFi
1278FEFloatinghead.Text = "FE FloatingHead"
1279FEFloatinghead.TextColor3 = Color3.new(1, 1, 1)
1280FEFloatinghead.TextSize = 14
1281
1282FEFloatinghead.MouseButton1Down:connect(function()
1283 local speed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running
1284local c
1285local h
1286local bv
1287local bav
1288local cam
1289local flying
1290local p = game:GetService'Players'.LocalPlayer
1291local buttons = {W = false, S = false, A = false, D = false, Moving = false}
1292local startFly = function () -- Call this function to begin flying
1293if not p.Character or not p.Character.Head or flying then return end
1294c = p.Character
1295h = c.Humanoid
1296h.PlatformStand = true
1297cam = workspace:WaitForChild('Camera')
1298bv = Instance.new("BodyVelocity")
1299bav = Instance.new("BodyAngularVelocity")
1300bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
1301bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
1302bv.Parent = c.Head
1303bav.Parent = c.Head
1304flying = true
1305h.Died:connect(function() flying = false end)
1306end
1307local endFly = function () -- Call this function to stop flying
1308if not p.Character or not flying then return end
1309h.PlatformStand = false
1310bv:Destroy()
1311bav:Destroy()
1312flying = false
1313end
1314game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
1315if GPE then return end
1316for i, e in pairs(buttons) do
1317if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
1318buttons[i] = true
1319buttons.Moving = true
1320end
1321end
1322end)
1323game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
1324if GPE then return end
1325local a = false
1326for i, e in pairs(buttons) do
1327if i ~= "Moving" then
1328if input.KeyCode == Enum.KeyCode[i] then
1329buttons[i] = false
1330end
1331if buttons[i] then a = true end
1332end
1333end
1334buttons.Moving = a
1335end)
1336local setVec = function (vec)
1337return vec * (speed / vec.Magnitude)
1338end
1339game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
1340if flying and c and c.PrimaryPart then
1341local p = c.PrimaryPart.Position
1342local cf = cam.CFrame
1343local ax, ay, az = cf:toEulerAnglesXYZ()
1344c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
1345if buttons.Moving then
1346local t = Vector3.new()
1347if buttons.W then t = t + (setVec(cf.lookVector)) end
1348if buttons.S then t = t - (setVec(cf.lookVector)) end
1349if buttons.A then t = t - (setVec(cf.rightVector)) end
1350if buttons.D then t = t + (setVec(cf.rightVector)) end
1351c:TranslateBy(t * step)
1352end
1353end
1354end)
1355FEFloatinghead.MouseButton1Down:connect(function()
1356local lol = game:GetService'Players'.LocalPlayer.Character
1357pcall(function()
1358for i,v in pairs(lol:GetChildren()) do
1359if v.Name ~= 'Head' and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then
1360v:Destroy()
1361end
1362end
1363local ok = lol:FindFirstChild'Torso'
1364if ok then ok = ok:FindFirstChild'roblox' if ok then ok:Destroy() end end
1365Instance.new('Humanoid', lol)
1366if lol.HumanoidRootPart:FindFirstChild'Rank' then lol.HumanoidRootPart:FindFirstChild'Rank':Destroy() end
1367local nouxd = lol:FindFirstChild'Torso'
1368wait'1'
1369lol.Head.Position = lol.Head.Position + Vector3.new(1,1,1)
1370if nouxd then nouxd.Transparency = 1 end
1371wait'.3'
1372startFly()
1373end)
1374end)
1375end)
1376
1377
1378
1379Inform.Name = "Inform"
1380Inform.Parent = MainBody
1381Inform.BackgroundColor3 = Color3.new(0, 0.615686, 1)
1382Inform.Position = UDim2.new(0.698873401, 0, 0.653591216, 0)
1383Inform.Size = UDim2.new(0, 106, 0, 27)
1384Inform.Font = Enum.Font.SciFi
1385Inform.Text = "ChatLogs"
1386Inform.TextColor3 = Color3.new(1, 1, 1)
1387Inform.TextSize = 14
1388
1389Inform.MouseButton1Down:connect(function()
1390 loadstring(game:GetObjects("rbxassetid://1295331911")[1].Source)()
1391end)
1392
1393TextLabel_2.Parent = MainBody
1394TextLabel_2.BackgroundColor3 = Color3.new(0, 0, 0)
1395TextLabel_2.BorderSizePixel = 0
1396TextLabel_2.Position = UDim2.new(0, 0, 0.940740705, 0)
1397TextLabel_2.Size = UDim2.new(0, 200, 0, 16)
1398TextLabel_2.Font = Enum.Font.ArialBold
1399TextLabel_2.Text = "Made by 1x7x9x0x3x1x9"
1400TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
1401TextLabel_2.TextSize = 14
1402
1403--MADE BY OneLegend (NOT THE SCRIPT) Thanks to CyberFromLU for letting me Publish! LOCAL SCRIPT: JUST RUN!
1404
1405local/--[[_(_bob371's_Shotgun_)_]]
1406--------------------------------------------------------------------------------------------------------------------------------------------
1407--------------------------------------------------------------------------------------------------------------------------------------------
1408----------------------------------------------------------------------------------------------------------------------------
1409
1410Player = game.Players.LocalPlayer
1411Character = Player.Character
1412script.Parent = Character
1413
1414--[[ * Fire Handle * ]]--
1415
1416pcall(function() Character.Gun:Remove() end)
1417
1418Gun = Instance.new("Model")
1419Gun.Name = "Gun"
1420Gun.Parent = Character
1421
1422--[[ * Arm Weld * ]]--
1423
1424ArmWeld = Instance.new("Weld")
1425ArmWeld.Parent = Character["Torso"]
1426ArmWeld.Part0 = ArmWeld.Parent
1427ArmWeld.Part1 = Character["Right Arm"]
1428ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
1429
1430--[[ * Arm Weld * ]]--
1431
1432ArmWeldR = Instance.new("Weld")
1433ArmWeldR.Parent = Character["Torso"]
1434ArmWeldR.Part0 = ArmWeldR.Parent
1435ArmWeldR.Part1 = Character["Left Arm"]
1436ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
1437
1438--[[ * Neck Weld * ]]--
1439
1440Neck = Instance.new("Weld")
1441Neck.Parent = Character["Torso"]
1442Neck.Part0 = Neck.Parent
1443Neck.Part1 = Character["Head"]
1444Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
1445
1446--[[ * Handle * ]]--
1447
1448Handle = Instance.new("Part")
1449Handle.formFactor = "Custom"
1450Handle.Locked = true
1451Handle.CanCollide = false
1452Handle.BrickColor = BrickColor.new("Medium stone grey")
1453Handle.Anchored = false
1454Handle.Size = Vector3.new(0.25,0.7,0.25)
1455Handle.TopSurface = 0
1456Handle.BottomSurface = 0
1457Handle.Parent = Gun
1458MeshA = Instance.new("BlockMesh",Handle)
1459MeshA.Bevel = 0.03
1460WeldA = Instance.new("Weld")
1461WeldA.Parent = Handle
1462WeldA.Part0 = Character["Right Arm"]
1463WeldA.Part1 = Handle
1464WeldA.C0 = CFrame.new(0,-1.1,-0.2) * CFrame.Angles(-math.pi/2-0.1,0,0)
1465
1466--[[ * Cartrage * ]]--
1467
1468Cartrage = Instance.new("Part")
1469Cartrage.formFactor = "Custom"
1470Cartrage.Locked = true
1471Cartrage.CanCollide = false
1472Cartrage.BrickColor = BrickColor.new("Really black")
1473Cartrage.Anchored = false
1474Cartrage.Size = Vector3.new(0.2,0.5,0.2)
1475Cartrage.TopSurface = 0
1476Cartrage.BottomSurface = 0
1477Cartrage.Parent = Gun
1478MeshB = Instance.new("BlockMesh",Cartrage)
1479MeshB.Bevel = 0.03
1480WeldB = Instance.new("Weld")
1481WeldB.Parent = Cartrage
1482WeldB.Part0 = Handle
1483WeldB.Part1 = Cartrage
1484WeldB.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
1485
1486--[[ * Trigger * ]]--
1487
1488Trigger = Instance.new("Part")
1489Trigger.formFactor = "Custom"
1490Trigger.Locked = true
1491Trigger.CanCollide = false
1492Trigger.BrickColor = BrickColor.new("Really black")
1493Trigger.Anchored = false
1494Trigger.Size = Vector3.new(0.2,0.4,0.4)
1495Trigger.TopSurface = 0
1496Trigger.BottomSurface = 0
1497Trigger.Parent = Gun
1498MeshB = Instance.new("BlockMesh",Trigger)
1499MeshB.Bevel = 0.03
1500WeldB = Instance.new("Weld")
1501WeldB.Parent = Trigger
1502WeldB.Part0 = Handle
1503WeldB.Part1 = Trigger
1504WeldB.C0 = CFrame.new(0,0.21,-0.09) * CFrame.Angles(0,0,0)
1505
1506--[[ * BWall * ]]--
1507
1508BWall = Instance.new("Part")
1509BWall.formFactor = "Custom"
1510BWall.Locked = true
1511BWall.CanCollide = false
1512BWall.BrickColor = BrickColor.new("Medium stone grey")
1513BWall.Anchored = false
1514BWall.Size = Vector3.new(0.25,0.6,0.25)
1515BWall.TopSurface = 0
1516BWall.BottomSurface = 0
1517BWall.Parent = Gun
1518MeshB = Instance.new("BlockMesh",BWall)
1519MeshB.Bevel = 0.03
1520WeldB = Instance.new("Weld")
1521WeldB.Parent = BWall
1522WeldB.Part0 = Handle
1523WeldB.Part1 = BWall
1524WeldB.C0 = CFrame.new(0,0.3,-0.3) * CFrame.Angles(math.pi/2+0.1,0,0)
1525
1526--[[ * CWall * ]]--
1527
1528CWall = Instance.new("Part")
1529CWall.formFactor = "Custom"
1530CWall.Locked = true
1531CWall.CanCollide = false
1532CWall.BrickColor = BrickColor.new("Really black")
1533CWall.Anchored = false
1534CWall.Size = Vector3.new(0.3,0.6,0.2)
1535CWall.TopSurface = 0
1536CWall.BottomSurface = 0
1537CWall.Parent = Gun
1538MeshB = Instance.new("BlockMesh",CWall)
1539MeshB.Bevel = 0.03
1540WeldB = Instance.new("Weld")
1541WeldB.Parent = CWall
1542WeldB.Part0 = Handle
1543WeldB.Part1 = CWall
1544WeldB.C0 = CFrame.new(0,0.4,-0.3) * CFrame.Angles(math.pi/2+0.1,0,0)
1545
1546--[[ * ButA * ]]--
1547
1548ButA = Instance.new("Part")
1549ButA.formFactor = "Custom"
1550ButA.Locked = true
1551ButA.CanCollide = false
1552ButA.BrickColor = BrickColor.new("Really black")
1553ButA.Anchored = false
1554ButA.Size = Vector3.new(0.3,0.6,0.3)
1555ButA.TopSurface = 0
1556ButA.BottomSurface = 0
1557ButA.Parent = Gun
1558MeshB = Instance.new("CylinderMesh",ButA)
1559MeshB.Bevel = 0.03
1560WeldB = Instance.new("Weld")
1561WeldB.Parent = ButA
1562WeldB.Part0 = Handle
1563WeldB.Part1 = ButA
1564WeldB.C0 = CFrame.new(0.1,0.4,-0.3) * CFrame.Angles(math.pi/2+0.1,0,0)
1565
1566--[[ * ButB * ]]--
1567
1568ButB = Instance.new("Part")
1569ButB.formFactor = "Custom"
1570ButB.Locked = true
1571ButB.CanCollide = false
1572ButB.BrickColor = BrickColor.new("Really black")
1573ButB.Anchored = false
1574ButB.Size = Vector3.new(0.3,0.6,0.3)
1575ButB.TopSurface = 0
1576ButB.BottomSurface = 0
1577ButB.Parent = Gun
1578MeshB = Instance.new("CylinderMesh",ButB)
1579MeshB.Bevel = 0.03
1580WeldB = Instance.new("Weld")
1581WeldB.Parent = ButB
1582WeldB.Part0 = Handle
1583WeldB.Part1 = ButB
1584WeldB.C0 = CFrame.new(-0.1,0.4,-0.3) * CFrame.Angles(math.pi/2+0.1,0,0)
1585
1586--[[ * Hinge * ]]--
1587
1588Hinge = Instance.new("Part")
1589Hinge.formFactor = "Custom"
1590Hinge.Locked = true
1591Hinge.CanCollide = false
1592Hinge.BrickColor = BrickColor.new("Medium stone grey")
1593Hinge.Anchored = false
1594Hinge.Size = Vector3.new(0.2,0.25,0.2)
1595Hinge.TopSurface = 0
1596Hinge.BottomSurface = 0
1597Hinge.Parent = Gun
1598MeshB = Instance.new("CylinderMesh",Hinge)
1599MeshB.Bevel = 0.03
1600WeldQ = Instance.new("Weld")
1601WeldQ.Parent = Hinge
1602WeldQ.Part0 = Handle
1603WeldQ.Part1 = Hinge
1604WeldQ.C0 = CFrame.new(0,0.3,-0.6) * CFrame.Angles(math.pi/2+0.1,0,math.pi/2)
1605
1606--[[ * HingeP * ]]--
1607
1608HingeP = Instance.new("Part")
1609HingeP.formFactor = "Custom"
1610HingeP.Locked = true
1611HingeP.CanCollide = false
1612HingeP.BrickColor = BrickColor.new("Medium stone grey")
1613HingeP.Anchored = false
1614HingeP.Size = Vector3.new(0.2,0.5,0.2)
1615HingeP.TopSurface = 0
1616HingeP.BottomSurface = 0
1617HingeP.Parent = Gun
1618MeshB = Instance.new("CylinderMesh",HingeP)
1619MeshB.Bevel = 0.1
1620WeldB = Instance.new("Weld")
1621WeldB.Parent = HingeP
1622WeldB.Part0 = Hinge
1623WeldB.Part1 = HingeP
1624WeldB.C0 = CFrame.new(-0.25,0,0) * CFrame.Angles(0,0,math.pi/2)
1625
1626--[[ * BarrelA * ]]--
1627
1628BarrelA = Instance.new("Part")
1629BarrelA.formFactor = "Custom"
1630BarrelA.Locked = true
1631BarrelA.CanCollide = false
1632BarrelA.BrickColor = BrickColor.new("Really black")
1633BarrelA.Anchored = false
1634BarrelA.Size = Vector3.new(0.3,1.5,0.3)
1635BarrelA.TopSurface = 0
1636BarrelA.BottomSurface = 0
1637BarrelA.Parent = Gun
1638MeshB = Instance.new("CylinderMesh",BarrelA)
1639MeshB.Bevel = 0.03
1640WeldB = Instance.new("Weld")
1641WeldB.Parent = BarrelA
1642WeldB.Part0 = Hinge
1643WeldB.Part1 = BarrelA
1644WeldB.C0 = CFrame.new(-0.75,0.1,-0.125) * CFrame.Angles(0,0,math.pi/2)
1645
1646--[[ * BarrelB * ]]--
1647
1648BarrelB = Instance.new("Part")
1649BarrelB.formFactor = "Custom"
1650BarrelB.Locked = true
1651BarrelB.CanCollide = false
1652BarrelB.BrickColor = BrickColor.new("Really black")
1653BarrelB.Anchored = false
1654BarrelB.Size = Vector3.new(0.3,1.5,0.3)
1655BarrelB.TopSurface = 0
1656BarrelB.BottomSurface = 0
1657BarrelB.Parent = Gun
1658MeshB = Instance.new("CylinderMesh",BarrelB)
1659MeshB.Bevel = 0.03
1660WeldB = Instance.new("Weld")
1661WeldB.Parent = BarrelB
1662WeldB.Part0 = Hinge
1663WeldB.Part1 = BarrelB
1664WeldB.C0 = CFrame.new(-0.75,-0.1,-0.125) * CFrame.Angles(0,0,math.pi/2)
1665
1666--[[ * Variables * ]]--
1667
1668Head = false
1669Ammo = 2
1670Arms = false
1671Hopper = Instance.new("HopperBin")
1672
1673function TName()
1674Hopper.Name = "Gun: "..Ammo
1675end
1676
1677--[[ * Animation * ]]--
1678
1679function ArmsOn()
1680for i = 1,10 do wait()
1681ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-math.pi/11/2/2,math.pi/10/2/2)
1682ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.1,0.05,-0.05)
1683ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,-math.pi/10/2/2/2)
1684ArmWeld.C0 = ArmWeld.C0 + Vector3.new(-0.05,0,0.09)
1685end
1686end
1687
1688function ArmsOff()
1689for i = 1,10 do wait()
1690ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.1,0.05,-0.05)
1691ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,math.pi/11/2/2,-math.pi/10/2/2)
1692ArmWeld.C0 = ArmWeld.C0 - Vector3.new(-0.05,0,0.09)
1693ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,math.pi/10/2/2/2)
1694end
1695for i = 1,3 do wait()
1696ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(0,0,0.05)
1697end
1698ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
1699end
1700
1701function SuicideYes()
1702for i = 1,10 do wait()
1703ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,math.pi/10/2/2)
1704WeldA.C0 = WeldA.C0 * CFrame.Angles(0,math.pi/11,0)
1705end
1706end
1707
1708function SuicideNo()
1709for i = 1,10 do wait()
1710ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,-math.pi/10/2/2)
1711WeldA.C0 = WeldA.C0 * CFrame.Angles(0,-math.pi/11,0)
1712end
1713end
1714
1715function Reload()
1716if Ammo == 0 then
1717if Head == true then SuicideNo() end
1718NewSoundI("http://www.roblox.com/Asset/?id=2761842",10,1,Handle,1.2)
1719if Arms == false then
1720for i = 1,10 do wait()
1721ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-math.pi/11/2/2,math.pi/10/2/2)
1722ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.1,0.05,-0.05)
1723ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,-math.pi/10/2/2/2)
1724ArmWeld.C0 = ArmWeld.C0 + Vector3.new(-0.05,0,0.09)
1725end
1726end
1727for i = 1,10 do wait()
1728WeldQ.C0 = WeldQ.C0 * CFrame.Angles(0,math.pi/10/2/2,0)
1729ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2/2/2,0,0)
1730end
1731for i = 1,10 do wait()
1732ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2/2/2,0,0)
1733end
1734for i = 1,9 do wait()
1735ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.1,0.05,-0.05)
1736ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,math.pi/11/2/2,-math.pi/10/2/2)
1737end
1738for i = 1,3 do wait()
1739ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(-0.1,0.05,-0.05)
1740ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,math.pi/11/2/2,math.pi/10/2/2)
1741end
1742for i = 1,3 do wait()
1743ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(-0.1,0.05,-0.05)
1744ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-math.pi/11/2/2,-math.pi/10/2/2)
1745end
1746for i = 1,9 do wait()
1747ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.1,0.05,-0.05)
1748ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-math.pi/11/2/2,math.pi/10/2/2)
1749end
1750for i = 1,5 do wait()
1751ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/4/2/2/2,0,0)
1752end
1753Ammo = 1
1754TName()
1755NewSound("http://www.roblox.com/Asset/?id=13510352",2,10,Handle)
1756for i = 1,5 do wait()
1757ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/4/2/2/2,0,0)
1758end
1759NewSound("http://www.roblox.com/Asset/?id=13510352",2,10,Handle)
1760for i = 1,9 do wait()
1761ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.1,0.05,-0.05)
1762ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,math.pi/11/2/2,-math.pi/10/2/2)
1763end
1764for i = 1,3 do wait()
1765ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(-0.1,0.05,-0.05)
1766ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,math.pi/11/2/2,math.pi/10/2/2)
1767end
1768for i = 1,3 do wait()
1769ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(-0.1,0.05,-0.05)
1770ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-math.pi/11/2/2,-math.pi/10/2/2)
1771end
1772for i = 1,9 do wait()
1773ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.1,0.05,-0.05)
1774ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-math.pi/11/2/2,math.pi/10/2/2)
1775end
1776for i = 1,5 do wait()
1777ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/4/2/2/2,0,0)
1778end
1779Ammo = 2
1780TName()
1781NewSound("http://www.roblox.com/Asset/?id=13510352",2,10,Handle)
1782for i = 1,5 do wait()
1783ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/4/2/2/2,0,0)
1784end
1785NewSound("http://www.roblox.com/Asset/?id=13510352",2,10,Handle)
1786for i = 1,10 do wait()
1787ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,math.pi/11/2/2,-math.pi/10/2/2)
1788ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.1,0.05,-0.05)
1789end
1790for i = 1,10 do wait()
1791ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(0,0,0.05)
1792ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,math.pi/10/2/2/2)
1793ArmWeld.C0 = ArmWeld.C0 - Vector3.new(-0.05,0,0.09)
1794end
1795ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
1796NewSound("http://www.roblox.com/Asset/?id=10209881",10,0.9,Handle)
1797for i = 1,5 do wait()
1798WeldQ.C0 = WeldQ.C0 * CFrame.Angles(0,-math.pi/5/2/2,0)
1799ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0,-0.1) * CFrame.Angles(math.pi/5/2/2,0,0)
1800end
1801for i = 1,10 do wait()
1802ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/2/2,0,0) * CFrame.new(0,0,0.05)
1803end
1804ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
1805Ammo = 2
1806TName()
1807if Head == true then SuicideYes() end
1808if Arms == true then ArmsOn() end
1809elseif Ammo ~= 0 then
1810if Arms == false then ArmsOn() end
1811wait(0.1)
1812NewSound("http://www.roblox.com/Asset/?id=10209881",10,1,Handle)
1813for i = 1,10 do wait()
1814ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0,0,0.1)
1815end
1816--Ammo = Ammo - 1
1817TName()
1818for i = 1,10 do wait()
1819ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0,0,0.1)
1820end
1821if Arms == false then ArmsOff() end
1822end
1823end
1824
1825function Shoot()
1826NewSound("http://www.roblox.com/Asset/?id=2691586",10,1,Handle)
1827if Arms == false then
1828for i = 1,5 do wait()
1829ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0,-0.1) * CFrame.Angles(math.pi/5/2/2,0,0)
1830WeldA.C0 = WeldA.C0 * CFrame.Angles(0.2,0,0)
1831end
1832for i = 1,10 do wait()
1833ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/2/2,0,0) * CFrame.new(0,0,0.05)
1834WeldA.C0 = WeldA.C0 * CFrame.Angles(-0.1,0,0)
1835end
1836if Arms == false then ArmsOn() end
1837wait(0.05)
1838NewSound("http://www.roblox.com/Asset/?id=10209881",10,1,Handle)
1839for i = 1,5 do wait()
1840ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0,0,0.2)
1841end
1842Ammo = Ammo - 1 TName()
1843wait(0.1)
1844for i = 1,5 do wait()
1845ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0,0,0.2)
1846end
1847if Arms == false then ArmsOff() end
1848elseif Arms == true then
1849for i = 1,5 do wait()
1850ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/4/2/2/2,0,0)
1851ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0,0.2,0)
1852ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0,-0.1) * CFrame.Angles(math.pi/5/2/2,0,0)
1853WeldA.C0 = WeldA.C0 * CFrame.Angles(0.2,0,0)
1854end
1855for i = 1,10 do wait()
1856ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/8/2/2/2,0,0)
1857ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0,0.1,0)
1858ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/2/2,0,0) * CFrame.new(0,0,0.05)
1859WeldA.C0 = WeldA.C0 * CFrame.Angles(-0.1,0,0)
1860end
1861NewSound("http://www.roblox.com/Asset/?id=10209881",10,1,Handle)
1862for i = 1,5 do wait()
1863ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0,0,0.2)
1864end
1865Ammo = Ammo - 1 TName()
1866wait(0.1)
1867for i = 1,5 do wait()
1868ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0,0,0.2)
1869end
1870end
1871end
1872
1873--[[ * Sound * ]]--
1874
1875function NewSound(ID,V,P,N)
1876coroutine.resume(coroutine.create(function()
1877local SoundD = Instance.new("Sound")
1878SoundD.SoundId = ID
1879SoundD.Volume = V
1880SoundD.Pitch = P
1881SoundD.Parent = N
1882SoundD:Play()
1883while SoundD.IsPlaying do wait() end
1884SoundD:Remove()
1885end))
1886end
1887
1888function NewSoundI(ID,V,P,N,I)
1889coroutine.resume(coroutine.create(function()
1890local SoundD = Instance.new("Sound")
1891SoundD.SoundId = ID
1892SoundD.Volume = V
1893SoundD.Pitch = P
1894SoundD.Parent = N
1895SoundD:Play()
1896wait(I)
1897SoundD:Stop()
1898wait()
1899SoundD:Remove()
1900end))
1901end
1902
1903--[[ * Tool * ]]--
1904
1905if script.Parent.Name == Player.Name then
1906Hopper = Instance.new("HopperBin")
1907Hopper.Name = "Gun"
1908Hopper.Parent = Player.Backpack
1909end
1910
1911Blah = true
1912ABC = BarrelA.CFrame
1913
1914function Clicked(Mouse)
1915if Blah == true then
1916Blah = false
1917if Ammo == 0 then
1918Reload()
1919else
1920if Head == true then Character.Head:BreakJoints() return end
1921coroutine.resume(coroutine.create(function()
1922Mouse.Target:BreakJoints()
1923end))
1924Shoot()
1925end
1926Blah = true
1927return
1928end
1929end
1930
1931function onKeyDown(key)
1932if Blah == true then
1933Blah = false
1934
1935if key == "p" then
1936NewSound("",10,0.5,Handle)
1937end
1938
1939if key == "0" or key == "/" then
1940if not Head then
1941if Arms == false then
1942ArmsOn()
1943Arms = true
1944elseif Arms == true then
1945ArmsOff()
1946Arms = false
1947end
1948end
1949end
1950
1951if key == "" then
1952if not Head then
1953if Arms then ArmsOff() Arms = false end
1954SuicideYes()
1955Head = true
1956elseif Head then
1957SuicideNo()
1958if Arms then ArmsOn() end
1959Head = false
1960end
1961end
1962
1963if key == "r" then
1964Reload()
1965end
1966
1967Blah = true
1968return
1969end
1970end
1971
1972function Selected(Mouse)
1973 Mouse.Icon = "rbxasset://textures\\GunCursor.png"
1974 Mouse.KeyDown:connect(onKeyDown)
1975 Mouse.Button1Down:connect(function()Clicked(Mouse)end)
1976 TName()
1977 if Blah then
1978 Blah = false
1979 if not Arms then
1980 ArmsOn()
1981 Arms = true
1982 end
1983 Blah = true
1984 end
1985end
1986
1987function Deselected(Mouse)
1988 if Blah then
1989 Blah = false
1990 if Arms then
1991 ArmsOff()
1992 Arms = false
1993 end
1994 Blah = true
1995 end
1996end
1997
1998function Dead()
1999for i,v in pairs(Character:GetChildren()) do
2000pcall(function() v.Anchored = true end)
2001if v.Name == "Head" then v.Anchored = false v.Velocity = Vector3.new(10,0,10) end
2002for i,a in pairs(v:GetChildren()) do pcall(function() a.Anchored = true end) end
2003end
2004end
2005
2006Character.Humanoid.Died:connect(Dead)
2007Hopper.Selected:connect(Selected)
2008Hopper.Deselected:connect(Deselected)