Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- function Smooth(part)
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- part.RightSurface = "Smooth"
- part.LeftSurface = "Smooth"
- end
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- root = char.HumanoidRootPart
- hed = char.Head
- tors = char.Torso
- hum = char.Humanoid
- dancin = false
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- anim = "Idle"
- attack = false
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local anim = "Idle"
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- local playstealanim = false
- hum.Animator:Destroy()
- hold = false
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- --------------
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Weld17 = Instance.new("Weld")
- Weld18 = Instance.new("Weld")
- Weld19 = Instance.new("Weld")
- Weld20 = Instance.new("Weld")
- Weld21 = Instance.new("Weld")
- Weld22 = Instance.new("Weld")
- Weld23 = Instance.new("Weld")
- Weld24 = Instance.new("Weld")
- Weld25 = Instance.new("Weld")
- Weld26 = Instance.new("Weld")
- Weld27 = Instance.new("Weld")
- Weld28 = Instance.new("Weld")
- Weld29 = Instance.new("Weld")
- Weld30 = Instance.new("Weld")
- Weld31 = Instance.new("Weld")
- Weld32 = Instance.new("Weld")
- Weld33 = Instance.new("Weld")
- Weld34 = Instance.new("Weld")
- Weld35 = Instance.new("Weld")
- Weld36 = Instance.new("Weld")
- Weld37 = Instance.new("Weld")
- Weld38 = Instance.new("Weld")
- Weld39 = Instance.new("Weld")
- Weld40 = Instance.new("Weld")
- Weld41 = Instance.new("Weld")
- Part42 = Instance.new("Part")
- Part43 = Instance.new("Part")
- Part44 = Instance.new("Part")
- Part45 = Instance.new("Part")
- Part46 = Instance.new("Part")
- Part47 = Instance.new("Part")
- Part48 = Instance.new("Part")
- Part49 = Instance.new("Part")
- Part50 = Instance.new("Part")
- Part51 = Instance.new("Part")
- Part52 = Instance.new("Part")
- Part53 = Instance.new("Part")
- WedgePart54 = Instance.new("WedgePart")
- Part55 = Instance.new("Part")
- CylinderMesh56 = Instance.new("CylinderMesh")
- Part57 = Instance.new("Part")
- CylinderMesh58 = Instance.new("CylinderMesh")
- Part59 = Instance.new("Part")
- Part60 = Instance.new("Part")
- Part61 = Instance.new("Part")
- Part62 = Instance.new("Part")
- Model0.Name = "Gun"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(61.0860596, 0.205383316, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part1.Orientation = Vector3.new(0, -90, 90)
- Part1.Position = Vector3.new(61.0860596, 0.205383316, -142.953415)
- Part1.Rotation = Vector3.new(-90, -90, 0)
- Part1.Size = Vector3.new(0.377446294, 0.539208949, 1.61762691)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- Part1.Material = Enum.Material.Metal
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(60.1423912, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part2.Orientation = Vector3.new(0, -90, 90)
- Part2.Position = Vector3.new(60.1423912, 0.205391541, -143.222992)
- Part2.Rotation = Vector3.new(-90, -90, 0)
- Part2.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.CanCollide = false
- Part2.Material = Enum.Material.Metal
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(59.3335724, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part3.Orientation = Vector3.new(0, -90, 90)
- Part3.Position = Vector3.new(59.3335724, 0.205391541, -143.222992)
- Part3.Rotation = Vector3.new(-90, -90, 0)
- Part3.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.CanCollide = false
- Part3.Material = Enum.Material.Metal
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(61.5982704, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part4.Orientation = Vector3.new(0, -90, 90)
- Part4.Position = Vector3.new(61.5982704, 0.205391541, -143.222992)
- Part4.Rotation = Vector3.new(-90, -90, 0)
- Part4.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- Part4.Material = Enum.Material.Metal
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(61.4365082, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part5.Orientation = Vector3.new(0, -90, 90)
- Part5.Position = Vector3.new(61.4365082, 0.205391541, -143.222992)
- Part5.Rotation = Vector3.new(-90, -90, 0)
- Part5.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.CanCollide = false
- Part5.Material = Enum.Material.Metal
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(60.7894516, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part6.Orientation = Vector3.new(0, -90, 90)
- Part6.Position = Vector3.new(60.7894516, 0.205391541, -143.222992)
- Part6.Rotation = Vector3.new(-90, -90, 0)
- Part6.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.CanCollide = false
- Part6.Material = Enum.Material.Metal
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(61.2747421, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part7.Orientation = Vector3.new(0, -90, 90)
- Part7.Position = Vector3.new(61.2747421, 0.205391541, -143.222992)
- Part7.Rotation = Vector3.new(-90, -90, 0)
- Part7.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.CanCollide = false
- Part7.Material = Enum.Material.Metal
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(60.6276855, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part8.Orientation = Vector3.new(0, -90, 90)
- Part8.Position = Vector3.new(60.6276855, 0.205391541, -143.222992)
- Part8.Rotation = Vector3.new(-90, -90, 0)
- Part8.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.CanCollide = false
- Part8.Material = Enum.Material.Metal
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(60.9512138, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part9.Orientation = Vector3.new(0, -90, 90)
- Part9.Position = Vector3.new(60.9512138, 0.205391541, -143.222992)
- Part9.Rotation = Vector3.new(-90, -90, 0)
- Part9.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.CanCollide = false
- Part9.Material = Enum.Material.Metal
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(60.3041573, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part10.Orientation = Vector3.new(0, -90, 90)
- Part10.Position = Vector3.new(60.3041573, 0.205391541, -143.222992)
- Part10.Rotation = Vector3.new(-90, -90, 0)
- Part10.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.CanCollide = false
- Part10.Material = Enum.Material.Metal
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(61.7600365, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part11.Orientation = Vector3.new(0, -90, 90)
- Part11.Position = Vector3.new(61.7600365, 0.205391541, -143.222992)
- Part11.Rotation = Vector3.new(-90, -90, 0)
- Part11.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.CanCollide = false
- Part11.Material = Enum.Material.Metal
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Weld12.Name = "BTWeld"
- Weld12.Parent = Part11
- Weld12.C1 = CFrame.new(0, 0, -1.94117355, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld12.Part0 = Part11
- Weld12.Part1 = Part46
- Weld12.part1 = Part46
- Weld13.Name = "BTWeld"
- Weld13.Parent = Part11
- Weld13.C1 = CFrame.new(0, 0, -0.970584869, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld13.Part0 = Part11
- Weld13.Part1 = Part6
- Weld13.part1 = Part6
- Weld14.Name = "BTWeld"
- Weld14.Parent = Part11
- Weld14.C1 = CFrame.new(0, 0, -0.485294342, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld14.Part0 = Part11
- Weld14.Part1 = Part7
- Weld14.part1 = Part7
- Weld15.Name = "BTWeld"
- Weld15.Parent = Part11
- Weld15.C1 = CFrame.new(8.22544098e-06, 0.269577026, -0.673976898, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld15.Part0 = Part11
- Weld15.Part1 = Part1
- Weld15.part1 = Part1
- Weld16.Name = "BTWeld"
- Weld16.Parent = Part11
- Weld16.C1 = CFrame.new(0, 0, -1.13235092, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld16.Part0 = Part11
- Weld16.Part1 = Part8
- Weld16.part1 = Part8
- Weld17.Name = "BTWeld"
- Weld17.Parent = Part11
- Weld17.C1 = CFrame.new(-0.000156342983, -0.0267333984, -3.07450485, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld17.Part0 = Part11
- Weld17.Part1 = WedgePart63
- Weld17.part1 = WedgePart63
- Weld18.Name = "BTWeld"
- Weld18.Parent = Part11
- Weld18.C1 = CFrame.new(-0.000156342983, -1.73693085, -1.39897156, 1, 0, 0, 0, 0.342020005, 0.939692736, 0, -0.939692736, 0.342019796)
- Weld18.Part0 = Part11
- Weld18.Part1 = Part60
- Weld18.part1 = Part60
- Weld19.Name = "BTWeld"
- Weld19.Parent = Part11
- Weld19.C1 = CFrame.new(0, 0.269577026, -1.75240326, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld19.Part0 = Part11
- Weld19.Part1 = Part51
- Weld19.part1 = Part51
- Weld20.Name = "BTWeld"
- Weld20.Parent = Part11
- Weld20.C1 = CFrame.new(0, 0, -0.808822632, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld20.Part0 = Part11
- Weld20.Part1 = Part9
- Weld20.part1 = Part9
- Weld21.Name = "BTWeld"
- Weld21.Parent = Part11
- Weld21.C1 = CFrame.new(7.67409801e-06, 0.269577026, -2.21075439, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld21.Part0 = Part11
- Weld21.Part1 = Part61
- Weld21.part1 = Part61
- Weld22.Name = "BTWeld"
- Weld22.Parent = Part11
- Weld22.C1 = CFrame.new(0, 0, -1.7794075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld22.Part0 = Part11
- Weld22.Part1 = Part42
- Weld22.part1 = Part42
- Weld23.Name = "BTWeld"
- Weld23.Parent = Part11
- Weld23.C1 = CFrame.new(0.000164568424, -0.530273438, -2.37520218, -1, 0, 0, 0, -1, 0, 0, -0, 1)
- Weld23.Part0 = Part11
- Weld23.Part1 = WedgePart54
- Weld23.part1 = WedgePart54
- Weld24.Name = "BTWeld"
- Weld24.Parent = Part11
- Weld24.C1 = CFrame.new(-1.49011612e-08, 0.485275269, -1.50978088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld24.Part0 = Part11
- Weld24.Part1 = Part62
- Weld24.part1 = Part62
- Weld25.Name = "BTWeld"
- Weld25.Parent = Part11
- Weld25.C1 = CFrame.new(-8.22544098e-06, 0.269577026, -3.0896492, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld25.Part0 = Part11
- Weld25.Part1 = Part52
- Weld25.part1 = Part52
- Weld26.Name = "BTWeld"
- Weld26.Parent = Part11
- Weld26.C1 = CFrame.new(-0.000156342983, 0.955657959, -2.60570526, 1, 0, 0, 0, 1, 8.94069672e-08, 0, 8.94069672e-08, 1)
- Weld26.Part0 = Part11
- Weld26.Part1 = Part59
- Weld26.part1 = Part59
- Weld27.Name = "BTWeld"
- Weld27.Parent = Part11
- Weld27.C1 = CFrame.new(-0.000172764063, 0.107257843, 0.162002563, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Weld27.Part0 = Part11
- Weld27.Part1 = Part57
- Weld27.part1 = Part57
- Weld28.Name = "BTWeld"
- Weld28.Parent = Part11
- Weld28.C1 = CFrame.new(0, 0.269577026, -2.93868637, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld28.Part0 = Part11
- Weld28.Part1 = Part53
- Weld28.part1 = Part53
- Weld29.Name = "BTWeld"
- Weld29.Parent = Part11
- Weld29.C1 = CFrame.new(-0.000156328082, 0.107795715, 0.161987305, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Weld29.Part0 = Part11
- Weld29.Part1 = Part55
- Weld29.part1 = Part55
- Weld30.Name = "BTWeld"
- Weld30.Parent = Part11
- Weld30.C1 = CFrame.new(-0.0539074689, 1.51135254, -2.86398697, 1, 0, 0, 0, 0.984807789, -0.173648119, 0, 0.173648119, 0.984807789)
- Weld30.Part0 = Part11
- Weld30.Part1 = Part49
- Weld30.part1 = Part49
- Weld31.Name = "BTWeld"
- Weld31.Parent = Part11
- Weld31.C1 = CFrame.new(2.05338001e-05, 1.40350342, -2.83613586, 1, 0, 0, 0, 0.984807789, -0.173648119, 0, 0.173648119, 0.984807789)
- Weld31.Part0 = Part11
- Weld31.Part1 = Part50
- Weld31.part1 = Part50
- Weld32.Name = "BTWeld"
- Weld32.Parent = Part11
- Weld32.C1 = CFrame.new(0, 0, -0.32352829, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld32.Part0 = Part11
- Weld32.Part1 = Part5
- Weld32.part1 = Part5
- Weld33.Name = "BTWeld"
- Weld33.Parent = Part11
- Weld33.C1 = CFrame.new(0, 0, -1.45587921, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld33.Part0 = Part11
- Weld33.Part1 = Part10
- Weld33.part1 = Part10
- Weld34.Name = "BTWeld"
- Weld34.Parent = Part11
- Weld34.C1 = CFrame.new(0, 0, -1.61764526, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld34.Part0 = Part11
- Weld34.Part1 = Part2
- Weld34.part1 = Part2
- Weld35.Name = "BTWeld"
- Weld35.Parent = Part11
- Weld35.C1 = CFrame.new(0, 0, -2.26470184, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld35.Part0 = Part11
- Weld35.Part1 = Part45
- Weld35.part1 = Part45
- Weld36.Name = "BTWeld"
- Weld36.Parent = Part11
- Weld36.C1 = CFrame.new(0, 0, -2.10293579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld36.Part0 = Part11
- Weld36.Part1 = Part47
- Weld36.part1 = Part47
- Weld37.Name = "BTWeld"
- Weld37.Parent = Part11
- Weld37.C1 = CFrame.new(0, 0, -0.161766052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld37.Part0 = Part11
- Weld37.Part1 = Part4
- Weld37.part1 = Part4
- Weld38.Name = "BTWeld"
- Weld38.Parent = Part11
- Weld38.C1 = CFrame.new(0.0539405346, 1.75317383, -2.73087311, 1, 0, 0, 0, 0.965925872, -0.258818984, 0, 0.258818984, 0.965925872)
- Weld38.Part0 = Part11
- Weld38.Part1 = Part48
- Weld38.part1 = Part48
- Weld39.Name = "BTWeld"
- Weld39.Parent = Part11
- Weld39.C1 = CFrame.new(0, 0, -0.64705658, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld39.Part0 = Part11
- Weld39.Part1 = Part44
- Weld39.part1 = Part44
- Weld40.Name = "BTWeld"
- Weld40.Parent = Part11
- Weld40.C1 = CFrame.new(0, 0, -2.42646408, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld40.Part0 = Part11
- Weld40.Part1 = Part3
- Weld40.part1 = Part3
- Weld41.Name = "BTWeld"
- Weld41.Parent = Part11
- Weld41.C1 = CFrame.new(0, 0, -1.29411697, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld41.Part0 = Part11
- Weld41.Part1 = Part43
- Weld41.part1 = Part43
- Part42.Parent = Model0
- Part42.CFrame = CFrame.new(59.980629, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part42.Orientation = Vector3.new(0, -90, 90)
- Part42.Position = Vector3.new(59.980629, 0.205391541, -143.222992)
- Part42.Rotation = Vector3.new(-90, -90, 0)
- Part42.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.CanCollide = false
- Part42.Material = Enum.Material.Metal
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Part43.Parent = Model0
- Part43.CFrame = CFrame.new(60.4659195, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part43.Orientation = Vector3.new(0, -90, 90)
- Part43.Position = Vector3.new(60.4659195, 0.205391541, -143.222992)
- Part43.Rotation = Vector3.new(-90, -90, 0)
- Part43.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part43.BottomSurface = Enum.SurfaceType.Smooth
- Part43.CanCollide = false
- Part43.Material = Enum.Material.Metal
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part44.Parent = Model0
- Part44.CFrame = CFrame.new(61.1129799, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part44.Orientation = Vector3.new(0, -90, 90)
- Part44.Position = Vector3.new(61.1129799, 0.205391541, -143.222992)
- Part44.Rotation = Vector3.new(-90, -90, 0)
- Part44.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.CanCollide = false
- Part44.Material = Enum.Material.Metal
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part45.Parent = Model0
- Part45.CFrame = CFrame.new(59.4953346, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part45.Orientation = Vector3.new(0, -90, 90)
- Part45.Position = Vector3.new(59.4953346, 0.205391541, -143.222992)
- Part45.Rotation = Vector3.new(-90, -90, 0)
- Part45.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part45.BottomSurface = Enum.SurfaceType.Smooth
- Part45.CanCollide = false
- Part45.Material = Enum.Material.Metal
- Part45.TopSurface = Enum.SurfaceType.Smooth
- Part46.Parent = Model0
- Part46.CFrame = CFrame.new(59.8188629, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part46.Orientation = Vector3.new(0, -90, 90)
- Part46.Position = Vector3.new(59.8188629, 0.205391541, -143.222992)
- Part46.Rotation = Vector3.new(-90, -90, 0)
- Part46.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.CanCollide = false
- Part46.Material = Enum.Material.Metal
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part47.Parent = Model0
- Part47.CFrame = CFrame.new(59.6571007, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part47.Orientation = Vector3.new(0, -90, 90)
- Part47.Position = Vector3.new(59.6571007, 0.205391541, -143.222992)
- Part47.Rotation = Vector3.new(-90, -90, 0)
- Part47.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.CanCollide = false
- Part47.Material = Enum.Material.Metal
- Part47.TopSurface = Enum.SurfaceType.Smooth
- Part48.Parent = Model0
- Part48.CFrame = CFrame.new(58.6684608, 0.151451007, -142.236359, 0, 0.258818984, -0.965925872, 1, 0, 0, 0, -0.965925872, -0.258818984)
- Part48.Orientation = Vector3.new(0, -105, 90)
- Part48.Position = Vector3.new(58.6684608, 0.151451007, -142.236359)
- Part48.Rotation = Vector3.new(-180, -75, -90)
- Part48.Size = Vector3.new(0.302908868, 0.686593533, 0.444266349)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.CanCollide = false
- Part48.Material = Enum.Material.Metal
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part49.Parent = Model0
- Part49.CFrame = CFrame.new(58.6771164, 0.25929901, -142.231934, 0, 0.173648119, -0.984807789, 1, 0, 0, 0, -0.984807789, -0.173648119)
- Part49.Orientation = Vector3.new(0, -100, 90)
- Part49.Position = Vector3.new(58.6771164, 0.25929901, -142.231934)
- Part49.Rotation = Vector3.new(-180, -80, -90)
- Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part49.Size = Vector3.new(0.302908868, 0.686593533, 0.444266349)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.BrickColor = BrickColor.new("Really black")
- Part49.CanCollide = false
- Part49.Material = Enum.Material.Metal
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.brickColor = BrickColor.new("Really black")
- Part50.Name = "Handle"
- Part50.Parent = Model0
- Part50.CFrame = CFrame.new(58.7232704, 0.205371007, -142.333298, 0, 0.173648119, -0.984807789, 1, 0, 0, 0, -0.984807789, -0.173648119)
- Part50.Orientation = Vector3.new(0, -100, 90)
- Part50.Position = Vector3.new(58.7232704, 0.205371007, -142.333298)
- Part50.Rotation = Vector3.new(-180, -80, -90)
- Part50.Size = Vector3.new(0.404406726, 0.916655362, 0.593129873)
- Part50.BottomSurface = Enum.SurfaceType.Smooth
- Part50.CanCollide = false
- Part50.Material = Enum.Material.Metal
- Part50.TopSurface = Enum.SurfaceType.Smooth
- Part51.Parent = Model0
- Part51.CFrame = CFrame.new(60.0076332, 0.205391541, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part51.Orientation = Vector3.new(0, -90, 90)
- Part51.Position = Vector3.new(60.0076332, 0.205391541, -142.953415)
- Part51.Rotation = Vector3.new(-90, -90, 0)
- Part51.Size = Vector3.new(0.377446294, 0.539208949, 1.61762691)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.CanCollide = false
- Part51.Material = Enum.Material.Metal
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part52.Parent = Model0
- Part52.CFrame = CFrame.new(58.6703873, 0.205399767, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part52.Orientation = Vector3.new(0, -90, 90)
- Part52.Position = Vector3.new(58.6703873, 0.205399767, -142.953415)
- Part52.Rotation = Vector3.new(-90, -90, 0)
- Part52.Size = Vector3.new(0.377446294, 0.539208949, 0.431367129)
- Part52.BottomSurface = Enum.SurfaceType.Smooth
- Part52.CanCollide = false
- Part52.Material = Enum.Material.Metal
- Part52.TopSurface = Enum.SurfaceType.Smooth
- Part53.Parent = Model0
- Part53.CFrame = CFrame.new(58.8213501, 0.205391541, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part53.Orientation = Vector3.new(0, -90, 90)
- Part53.Position = Vector3.new(58.8213501, 0.205391541, -142.953415)
- Part53.Rotation = Vector3.new(-90, -90, 0)
- Part53.Size = Vector3.new(0.377446294, 0.539208949, 0.431367129)
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.CanCollide = false
- Part53.Material = Enum.Material.Metal
- Part53.TopSurface = Enum.SurfaceType.Smooth
- WedgePart54.Parent = Model0
- WedgePart54.CFrame = CFrame.new(59.3848343, 0.20555611, -142.692719, 0, 0, -1, -1, 0, 0, 0, 1, 0)
- WedgePart54.Orientation = Vector3.new(0, -90, -90)
- WedgePart54.Position = Vector3.new(59.3848343, 0.20555611, -142.692719)
- WedgePart54.Rotation = Vector3.new(90, -90, 0)
- WedgePart54.Size = Vector3.new(0.0911263153, 0.647050738, 0.145047203)
- WedgePart54.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart54.CanCollide = false
- WedgePart54.Material = Enum.Material.Metal
- Part55.Name = "FiringHole"
- Part55.Parent = Model0
- Part55.CFrame = CFrame.new(61.6522408, 0.205547869, -143.061005, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part55.Orientation = Vector3.new(0, 180, 90)
- Part55.Position = Vector3.new(61.6522408, 0.205547869, -143.061005)
- Part55.Rotation = Vector3.new(-180, 0, -90)
- Part55.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part55.Size = Vector3.new(0.242644027, 0.539208949, 0.242644027)
- Part55.BottomSurface = Enum.SurfaceType.Smooth
- Part55.BrickColor = BrickColor.new("Black")
- Part55.CanCollide = false
- Part55.Material = Enum.Material.Metal
- Part55.TopSurface = Enum.SurfaceType.Smooth
- Part55.brickColor = BrickColor.new("Black")
- CylinderMesh56.Parent = Part55
- Part57.Parent = Model0
- Part57.CFrame = CFrame.new(61.6527786, 0.205564305, -143.060989, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part57.Orientation = Vector3.new(0, 180, 90)
- Part57.Position = Vector3.new(61.6527786, 0.205564305, -143.060989)
- Part57.Rotation = Vector3.new(-180, 0, -90)
- Part57.Size = Vector3.new(0.242098242, 0.537996113, 0.242098242)
- Part57.BottomSurface = Enum.SurfaceType.Smooth
- Part57.CanCollide = false
- Part57.Material = Enum.Material.Metal
- Part57.TopSurface = Enum.SurfaceType.Smooth
- CylinderMesh58.Parent = Part57
- Part59.Parent = Model0
- Part59.CFrame = CFrame.new(59.1543312, 0.205547884, -142.267334, 0, -8.94069672e-08, -1, 1, 0, 0, 0, -1, -8.94069672e-08)
- Part59.Orientation = Vector3.new(0, -90, 90)
- Part59.Position = Vector3.new(59.1543312, 0.205547884, -142.267334)
- Part59.Rotation = Vector3.new(-90, -90, 0)
- Part59.Size = Vector3.new(0.0911263153, 0.0909884423, 0.909884751)
- Part59.BottomSurface = Enum.SurfaceType.Smooth
- Part59.CanCollide = false
- Part59.Material = Enum.Material.Metal
- Part59.TopSurface = Enum.SurfaceType.Smooth
- Part60.Parent = Model0
- Part60.CFrame = CFrame.new(59.6493797, 0.205547884, -142.502457, 0, -0.939692736, -0.342019796, 1, 0, 0, 0, -0.342020005, 0.939692736)
- Part60.Orientation = Vector3.new(0, -20, 90)
- Part60.Position = Vector3.new(59.6493797, 0.205547884, -142.502457)
- Part60.Rotation = Vector3.new(0, -20, 90)
- Part60.Size = Vector3.new(0.0911263153, 0.0909884423, 0.591425121)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.CanCollide = false
- Part60.Material = Enum.Material.Metal
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part61.Parent = Model0
- Part61.CFrame = CFrame.new(59.5492821, 0.205383867, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part61.Orientation = Vector3.new(0, -90, 90)
- Part61.Position = Vector3.new(59.5492821, 0.205383867, -142.953415)
- Part61.Rotation = Vector3.new(-90, -90, 0)
- Part61.Size = Vector3.new(0.364864796, 0.521235406, 1.56370616)
- Part61.BottomSurface = Enum.SurfaceType.Smooth
- Part61.CanCollide = false
- Part61.Material = Enum.Material.Metal
- Part61.TopSurface = Enum.SurfaceType.Smooth
- Part62.Parent = Model0
- Part62.CFrame = CFrame.new(60.2502556, 0.205391556, -142.737717, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- Part62.Orientation = Vector3.new(0, -90, 90)
- Part62.Position = Vector3.new(60.2502556, 0.205391556, -142.737717)
- Part62.Rotation = Vector3.new(-90, -90, 0)
- Part62.Size = Vector3.new(0.404406726, 0.10784179, 3.31613493)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.CanCollide = false
- Part62.Material = Enum.Material.Metal
- Part62.TopSurface = Enum.SurfaceType.Smooth
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Gun = Model0
- handle = Gun.Handle
- local weldo = ezweld(char, handle, ra, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0))
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- --------------
- function Oof(Ch)
- if Ch.ClassName == "Model" and Ch ~= char then
- local D = Ch:GetDescendants()
- for i = 1,#D do
- local ee = D[i]
- if ee:IsA("Humanoid") then
- ee.BreakJointsOnDeath = false
- elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
- local Old = ee.Parent
- ee.Parent = nil
- local R = Instance.new("Glue",Old)
- R.Name = ee.Name
- R.Part0 = ee.Part0
- R.Part1 = ee.Part1
- R.C0 = ee.C0
- R.C1 = ee.C1
- elseif ee:IsA("Part") or ee:IsA("MeshPart") then
- ee.Anchored = false
- end
- end
- end
- end
- function NewSound(TABLE)
- local ID = "rbxassetid://"..(TABLE.ID or 0)
- local PARENT = (TABLE.PARENT or root)
- local VOLUME = (TABLE.VOLUME or 0.5)
- local PITCH = (TABLE.PITCH or 1)
- local LOOP = (TABLE.LOOP or false)
- local MAXDISTANCE = (TABLE.MAXDISTANCE or 100)
- local EMITTERSIZE = (TABLE.EMITTERSIZE or 10)
- local PLAYING = (TABLE.PLAYING or true)
- local PLAYONREMOVE = (TABLE.PLAYONREMOVE or false)
- local DOESDEBRIS = (TABLE.DOESDEBRIS or true)
- if ID ~= "rbxassetid://0" then
- local SOUND = IT("Sound",PARENT)
- SOUND.SoundId = ID
- SOUND.Volume = VOLUME
- SOUND.Pitch = PITCH
- SOUND.Looped = LOOP
- SOUND.MaxDistance = MAXDISTANCE
- SOUND.EmitterSize = EMITTERSIZE
- SOUND.PlayOnRemove = PLAYONREMOVE
- if DOESDEBRIS == true and PLAYING == true and LOOP == false then
- Debris:AddItem(SOUND,SOUND.TimeLength+5)
- end
- if PLAYING == true then
- SOUND:Play()
- end
- return SOUND
- end
- end
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = IT("Sound")
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = root.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- function Dismember(MAN,DOWHAT)
- local HUM = MAN:FindFirstChildOfClass("Humanoid")
- if HUM then
- HUM.Health = 0
- HUM.PlatformStand = true
- end
- Oof(MAN)
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
- return Raycast(StartPos, DIRECTION, Distance, Ignore)
- end
- function Chatter(Text,Timer)
- local chat = coroutine.wrap(function()
- if char:FindFirstChild("SpeechBoard")~= nil then
- char:FindFirstChild("SpeechBoard"):destroy()
- end
- local naeeym2 = IT("BillboardGui",char)
- naeeym2.Size = UD2(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,2,0)
- naeeym2.Adornee = char.Head
- naeeym2.Name = "SpeechBoard"
- naeeym2.AlwaysOnTop = true
- local tecks2 = IT("TextBox",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Legacy"
- tecks2.TextSize = 15
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1, 1, 1)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- for i = 1,string.len(Text),1 do
- CreateSound(418252437, char.Head, 3, MRANDOM(8,12)/15, false)
- tecks2.Text = string.sub(Text,1,i)
- wait(Timer)
- end
- wait(1)
- naeeym2:Destroy()
- end)
- chat()
- end
- Effects = IT("Model",script)
- Effects.Name = "some effects"
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or root.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
- local BOOMERANG = (Table.Boomerang or 0)
- local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = NewSound({ID = SOUNDID,PARENT = EFFECT,VOLUME = SOUNDVOLUME,PITCH = SOUNDPITCH,LOOP = false,MAXDISTANCE = 200,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = SIZE
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local BOOMR1 = 1+BOOMERANG/50
- local BOOMR2 = 1+SIZEBOOMERANG/50
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- if USEBOOMERANGMATH == true then
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
- else
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
- end
- end
- local GROWTH = nil
- if USEBOOMERANGMATH == true then
- GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
- else
- GROWTH = (SIZE - ENDSIZE)
- end
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- if USEBOOMERANGMATH == true then
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
- EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
- end
- end
- else
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
- end
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- end
- yeeyeejuice = 0.5
- nuzzle = Instance.new("Attachment",Gun.FiringHole)
- UZI = Gun.FiringHole
- nuzzle.Name = "Nuzzle"
- function AttachmentCFrame(A)
- return A.Parent.CFrame*CF(A.Position)
- end
- for _,c in pairs (char:children()) do
- if c:IsA("Shirt") or c:IsA("Pants") then
- c:Destroy()
- end
- end
- local adds = IT("Model",char)
- adds.Name = "Addables"
- local fakehed = IT("Model",nil)
- fakehed.Name = "FakeNametag"
- local fakehedhum = IT("Humanoid",fakehed)
- local removed = IT("Model",nil)
- removed.Name = "Removed"
- local removed2 = IT("Model",nil)
- removed2.Name = "CharacterRemoved"
- local top = Instance.new("Shirt",char)
- top.ShirtTemplate = "http://www.roblox.com/asset/?id=761190889"
- local bottom = Instance.new("Pants",char)
- bottom.PantsTemplate = "http://www.roblox.com/asset/?id=826771090"
- local shades = Instance.new("Part",adds)
- shades.CanCollide = false
- shades.Size = Vector3.new(1, 1, 1)
- shades.Color = Color3.new(0, 0, 0)
- local meshs = Instance.new("SpecialMesh",shades)
- meshs.MeshId = "http://www.roblox.com/asset/?id=51177557"
- meshs.TextureId = "http://www.roblox.com/asset/?id=51177552"
- meshs.Offset = Vector3.new(0, 0.18, -0.15)
- meshs.Scale = Vector3.new(1, 1, 1)
- local welds = ezweld(char, shades, char.Head, CFrame.new(0, 0, 0))
- local hed2 = Instance.new("Part",fakehed)
- hed2.Size = hed.Size
- hed2.Color = hed.Color
- hed2.CanCollide = false
- hed2.Transparency = 0
- hed2.Name = "Head"
- local face2 = Instance.new("Decal",hed2)
- face2.Name = "face"
- face2.Transparency = 1
- face2.Texture = hed.face.Texture
- local hed2wld = ezweld(char, hed2, hed, CFrame.new())
- if hed:FindFirstChild("Mesh") then
- hed.Mesh:Clone().Parent = hed2
- hed2.Mesh.Scale = hed2.Mesh.Scale - Vector3.new(0.01, 0.01, 0.01)
- end
- local transformed = false
- local face = hed:FindFirstChild("face")
- local facedecal = face.Texture
- local hedcolor = char.Head.Color
- local torscolor = tors.Color
- local racolor = ra.Color
- local lacolor = la.Color
- local rlcolor = rl.Color
- local llcolor = ll.Color
- function grasseffect(amount, size, color, material)
- local sizething = 1
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- sizething = sizething + 1
- local Grass = Instance.new("Part",Effects)
- Grass.Size = Vector3.new(size, size, size)
- Grass.BrickColor = BrickColor.new("Bright green")
- if workspace:FindFirstChild("Base") then
- Grass.BrickColor = workspace.Base.BrickColor
- end
- if workspace:FindFirstChild("Baseplate") then
- Grass.BrickColor = workspace.Baseplate.BrickColor
- end
- Grass.Color = color
- Grass.Material = "Grass"
- Grass.CFrame = root.CFrame
- Grass.Material = material
- Grass.Velocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
- Debris:AddItem(Grass, 5)
- until sizething > amount - 0.1
- end))
- end
- function transform()
- local target = mouse.Target
- fakehed.Parent = script
- hed.Transparency = 1
- fakehed.Name = target.Parent.Name
- if target then
- transformed = true
- for _,v in pairs (char:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
- v.Parent = removed
- end
- end
- for _,v in pairs (target.Parent:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
- v:Clone().Parent = char
- for _,v in pairs (v:GetDescendants()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Anchored = false
- end
- end
- end
- if v:IsA("Part") then
- local matching = char:FindFirstChild(v.Name)
- if matching then
- matching.Color = v.Color
- matching.Transparency = v.Transparency
- end
- if v.Name == "Head" then
- local theirface = v:FindFirstChild("face")
- if theirface then
- if face and facedecal and theirface:IsA("Decal") then
- face.Texture = theirface.Texture
- hed2.face.Texture = theirface.Texture
- end
- end
- end
- end
- end
- for _,v in pairs (adds:children()) do
- if v:IsA("Part") then
- v.Parent = removed2
- end
- end
- hed2.Color = hed.Color
- hed2.Transparency = hed.Transparency
- Swait()
- hed.Transparency = 1
- end
- end
- function untransform()
- transformed = false
- fakehed.Parent = nil
- hed2.face.Texture = facedecal
- hed.Transparency = 0
- fakehed.Name = "FakeNametag"
- if face and facedecal then
- if face:IsA("Decal") then
- face.Texture = facedecal
- end
- end
- for _,v in pairs (removed2:children()) do
- if v:IsA("Part") then
- v.Parent = adds
- end
- end
- for _,v in pairs (char:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
- v.Parent = nil
- end
- end
- for _,v in pairs (removed:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
- v.Parent = char
- hed.Color = hedcolor
- tors.Color = torscolor
- ra.Color = racolor
- la.Color = lacolor
- rl.Color = rlcolor
- ll.Color = llcolor
- end
- end
- hed.Color = hedcolor
- tors.Color = torscolor
- ra.Color = racolor
- la.Color = lacolor
- rl.Color = rlcolor
- ll.Color = llcolor
- hed2.Color = hed.Color
- end
- function shoot()
- hold = true
- attack = true
- clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0), yeeyeejuice)
- local GYRO = Instance.new("BodyGyro")
- GYRO.D = 20
- GYRO.P = 5000
- GYRO.MaxTorque = VT(0,4000000,0)
- GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
- GYRO.Parent = root
- repeat
- for i = 1,4 do
- Swait()
- GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
- clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0), yeeyeejuice)
- clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), yeeyeejuice)
- clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), yeeyeejuice)
- clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), yeeyeejuice)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), yeeyeejuice)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeeyeejuice)
- end
- local HIT,POS = CastProperRay(AttachmentCFrame(UZI.Nuzzle).p,mouse.Hit.p,1000,char)
- local DISTANCE = (POS - AttachmentCFrame(UZI.Nuzzle).p).Magnitude
- if HIT then
- if HIT.Parent:FindFirstChildOfClass("Humanoid") then
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 35
- if HIT.Parent:FindFirstChildOfClass("Humanoid").Health < 1 then
- Dismember(HIT.Parent)
- Chatter("Get out of my sight, I've had enough of you!")
- end
- if HIT.Parent:FindFirstChildOfClass("Humanoid").Health == "inf" or HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 5000 then
- Dismember(HIT.Parent)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = 0
- HIT.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 0
- local HEAD = HIT.Parent:FindFirstChild("Head")
- if HEAD then
- HEAD.Velocity = Vector3.new(math.random(-10000, 10000),math.random(-10000, 10000),math.random(-10000, 10000))
- Debris:AddItem(HEAD, 6)
- local TORSO = HEAD.Parent:FindFirstChild("Torso")
- if TORSO then
- if TORSO:FindFirstChild("Neck") then
- TORSO.Neck:Destroy()
- Chatter("No, you 'godded' person.")
- end
- end
- end
- end
- end
- end
- WACKYEFFECT({Time = 12, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.8,0.8,0.8), Transparency = 0, Transparency2 = 1, CFrame = CF(AttachmentCFrame(UZI.Nuzzle).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 1583819337, SoundPitch = 2, SoundVolume = 0.2})
- WACKYEFFECT({Time = 8, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(AttachmentCFrame(UZI.Nuzzle).p,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- for i = 1,4 do
- Swait()
- GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
- clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0), yeeyeejuice)
- clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), yeeyeejuice)
- clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), yeeyeejuice)
- clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), yeeyeejuice)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90) + Rad(15)), yeeyeejuice)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeeyeejuice)
- end
- until hold == false
- GYRO:Remove()
- weldo.C0 = CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0)
- attack = false
- hold = false
- end
- grabbed = false
- current = "none"
- crouch = false
- local GRUNTS = {1146556975,1146556706,1278006076}
- remote = Instance.new("RemoteEvent",char)
- remote.Name = "CrouchEvent"
- yeett = 0.25
- function extras(key)
- if key == "ctrldown" then
- crouch = true
- attack = true
- repeat
- Swait()
- clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), Rad(180), 0), yeett)
- clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), yeett)
- clerp(rootj, rootjnor * CFrame.new(0, 0, -1) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), yeett)
- clerp(RH, RHnor * CFrame.new(0.5, 1, 0) * CFrame.Angles(0, Rad(-10), 0), yeett)
- clerp(LH, LHnor * CFrame.new(0, -0.5, 0) * CFrame.Angles(0, 0, Rad(90)), yeett)
- clerp(RS, RSnor * CFrame.new(-0.5, 0.5, 0.15) * CFrame.Angles(Rad(120), Rad(-20), Rad(0) + Rad(0)), yeett)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeett)
- until crouch == false
- attack = false
- crouch = false
- end
- if key == "ctrlup" then
- crouch = false
- attack = false
- end
- end
- function grabplr()
- grabbed = false
- current = "cangrab"
- attack = true
- local grabh = ra.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Torso") and hit.Parent ~= char and current == "cangrab" then
- root.Anchored = true
- grabbed = true
- current = "none"
- local weld = ezweld(char, hit.Parent.Torso, ra, CFrame.new(0, ra.Size, 0))
- weld.Name = "BACKSNAPWELD"
- local human = hit.Parent:FindFirstChildOfClass("Humanoid")
- if human then
- human.PlatformStand = true
- end
- for i = 1,4 do
- Swait()
- clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, Rad(18), Rad(0 + 1 * Cos(sine / 17))), yeeyeejuice)
- clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), yeeyeejuice)
- clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), yeeyeejuice)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-18), Rad(90)), yeeyeejuice)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeeyeejuice)
- end
- elseif hit.Parent:FindFirstChild("UpperTorso") and hit.Parent ~= char and current == "cangrab" then
- root.Anchored = true
- grabbed = true
- current = "none"
- local weld = ezweld(char, hit.Parent.UpperTorso, ra, CFrame.new(0, ra.Size / 2.25, 0))
- weld.Name = "BACKSNAPWELD"
- local human = hit.Parent:FindFirstChildOfClass("Humanoid")
- if human then
- human.PlatformStand = true
- end
- end
- end)
- end
- function backsnap()
- attack = true
- repeat Swait() until grabbed == true
- current = "none"
- Chatter("Hah!")
- NewSound({ID = GRUNTS[MRANDOM(1,#GRUNTS)],PARENT = hed,VOLUME = 2,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 225,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
- local spin = 0
- for i = 1,75 do
- Swait()
- spin = spin + 8
- if attack == true and char:FindFirstChild("BACKSNAPWELD") then
- root.CFrame = root.CFrame*CF(0,(37.5-i)/37.5,i/135)
- clerp2(rootj, rootjnor * CFrame.Angles(Rad(i*80), 0, 0), 0.15)
- end
- end
- local HITFLOOR,POS = Raycast(root.Position, (CF(root.Position, root.Position + VT(0, -1, 0))).lookVector, 5+hum.HipHeight, char)
- if HITFLOOR then
- root.CFrame = root.CFrame*CF(0,1.5,0)
- local BACKWELD = char:FindFirstChild("BACKSNAPWELD")
- if BACKWELD then
- BACKWELD:Destroy()
- local dude = BACKWELD.Part0.Parent
- if dude:IsA("Model") and dude then
- local human = dude:FindFirstChildOfClass("Humanoid")
- if human then
- human.Health = human.Health - 55
- human.PlatformStand = false
- end
- end
- end
- grasseffect(5, 4, HITFLOOR.Color, HITFLOOR.Material)
- WACKYEFFECT({EffectType = "Wave", Size = VT(10,1,10), Size2 = VT(8,25,8), Transparency = 0.7, Transparency2 = 1, CFrame = CF(POS)*ANGLES(0,RAD(MRANDOM(0,359)),0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 765590102, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 3, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
- grabbed = false
- root.Anchored = false
- attack = false
- end
- end
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "u" and attack == false then
- if transformed == true then
- untransform()
- elseif transformed == false then
- transform()
- end
- end
- if key == "b" and attack == false and grabbed == false and current == "none" then
- grabplr()
- end
- if key == "c" and attack == true and grabbed == true then
- backsnap()
- end
- end)
- mouse.Button1Down:connect(function()
- if attack == false then
- shoot()
- end
- end)
- mouse.Button1Up:connect(function()
- hold = false
- end)
- local ANIM_SPEED = 3
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local BGM = 1512630746
- local M = NewSound({ID = BGM,PARENT = root,VOLUME = 1.5,PITCH = 1,LOOP = true,MAXDISTANCE = 300,EMITTERSIZE = 300,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
- M.Name = "BGM_MUSIC"
- local ExtraKeys = NLS([[
- plr = owner
- char = plr.Character
- remote = char.CrouchEvent
- mouse = plr:GetMouse()
- isxray = false
- function coolxray(thing)
- isxray = true
- local D = thing:GetDescendants()
- for i = 1,#D do
- ee = D[i]
- if ee:IsA("Part") and ee.Shape ~= "Ball" or ee:IsA("MeshPart") then
- ee.Transparency = 1
- box = Instance.new("SelectionBox",ee)
- box.Adornee = ee
- box.Color3 = ee.Color
- box.Visible = true
- box.SurfaceTransparency = 1
- elseif ee:IsA("Decal") or ee:IsA("Texture") then
- ee.Transparency = 1
- end
- end
- end
- function unxray(thing)
- isxray = false
- local D = thing:GetDescendants()
- for i = 1,#D do
- ee = D[i]
- if ee:IsA("SelectionBox") then
- ee:Destroy()
- elseif ee:IsA("Part") and ee.Name ~= "HumanoidRootPart" or ee:IsA("MeshPart") and ee.Name ~= "HumanoidRootPart" then
- ee.Transparency = 0
- elseif ee:IsA("Decal") or ee:IsA("Texture") then
- ee.Transparency = 0
- end
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "x" then
- if isxray then
- unxray(workspace)
- else
- coolxray(workspace)
- end
- end
- if string.byte(key) == 50 then
- remote:FireServer("ctrldown")
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 50 then
- remote:FireServer("ctrlup")
- end
- end)
- ]],char)
- remote.OnServerEvent:Connect(function(PlayerSendit,Button) extras(Button) end)
- while true do
- Swait()
- sine = sine + 1
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
- if TORSOVELOCITY < 1 then
- anim = "Idle"
- if attack == false then
- clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), Rad(180), 0), 0.15)
- clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
- clerp(RS, RSnor * CFrame.new(-0.5, 0.5, 0.15) * CFrame.Angles(Rad(120), Rad(-20), Rad(0) + Rad(0)), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), 0.15)
- end
- clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- else
- anim = "Walk"
- if attack == false then
- clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), Rad(180), 0), 0.15)
- clerp(neck, necknor, 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 4)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0.25, 0 - 0.1 * Cos(sine / 4), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
- clerp(LH, LHnor * CFrame.new(-0.25, 0 - 0.1 * Cos(sine / 4), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
- --clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
- --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
- clerp(RS, RSnor * CFrame.new(-0.5, 0.5, 0.15) * CFrame.Angles(Rad(120), Rad(-20), Rad(0) + Rad(0)), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0.01, 0) * CFrame.Angles(0, 0, 0.925 * Cos(sine / 8)), 0.15)
- end
- clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.4 + 0.875 * Cos(sine / 8)), 0.15)
- clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.4 + 0.875 * Cos(sine / 8)), 0.15)
- --clerp3(LS, LSnor2 * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement