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,game,owner = owner,game
- local RealPlayer = Player
- do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
- --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")
- WedgePart1 = Instance.new("WedgePart")
- WedgePart2 = Instance.new("WedgePart")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- CFrameValue6 = Instance.new("CFrameValue")
- Decal7 = Instance.new("Decal")
- Part8 = Instance.new("Part")
- WedgePart9 = Instance.new("WedgePart")
- WedgePart10 = Instance.new("WedgePart")
- WedgePart11 = Instance.new("WedgePart")
- WedgePart12 = Instance.new("WedgePart")
- Part13 = Instance.new("Part")
- Part14 = Instance.new("Part")
- CylinderMesh15 = Instance.new("CylinderMesh")
- Part16 = Instance.new("Part")
- Part17 = Instance.new("Part")
- Part18 = Instance.new("Part")
- CylinderMesh19 = Instance.new("CylinderMesh")
- WedgePart20 = Instance.new("WedgePart")
- Part21 = Instance.new("Part")
- CylinderMesh22 = Instance.new("CylinderMesh")
- Part23 = Instance.new("Part")
- CylinderMesh24 = Instance.new("CylinderMesh")
- Part25 = Instance.new("Part")
- Part26 = Instance.new("Part")
- CylinderMesh27 = Instance.new("CylinderMesh")
- Part28 = Instance.new("Part")
- Part29 = Instance.new("Part")
- CylinderMesh30 = Instance.new("CylinderMesh")
- WedgePart31 = Instance.new("WedgePart")
- Part32 = Instance.new("Part")
- CylinderMesh33 = Instance.new("CylinderMesh")
- Part34 = Instance.new("Part")
- CylinderMesh35 = Instance.new("CylinderMesh")
- Part36 = Instance.new("Part")
- CylinderMesh37 = Instance.new("CylinderMesh")
- Tool38 = Instance.new("Tool")
- Part39 = Instance.new("Part")
- Fire40 = Instance.new("Fire")
- Script41 = Instance.new("Script")
- Sound42 = Instance.new("Sound")
- Script43 = Instance.new("Script")
- Script44 = Instance.new("Script")
- SpecialMesh45 = Instance.new("SpecialMesh")
- Script46 = Instance.new("Script")
- Script47 = Instance.new("Script")
- Script48 = Instance.new("Script")
- LocalScript49 = Instance.new("LocalScript")
- Part50 = Instance.new("Part")
- WedgePart51 = Instance.new("WedgePart")
- Part52 = Instance.new("Part")
- Part53 = Instance.new("Part")
- CylinderMesh54 = Instance.new("CylinderMesh")
- WedgePart55 = Instance.new("WedgePart")
- WedgePart56 = Instance.new("WedgePart")
- WedgePart57 = Instance.new("WedgePart")
- WedgePart58 = Instance.new("WedgePart")
- WedgePart59 = Instance.new("WedgePart")
- WedgePart60 = Instance.new("WedgePart")
- WedgePart61 = Instance.new("WedgePart")
- Part62 = Instance.new("Part")
- CFrameValue63 = Instance.new("CFrameValue")
- BodyPosition64 = Instance.new("BodyPosition")
- Script65 = Instance.new("Script")
- BillboardGui66 = Instance.new("BillboardGui")
- Frame67 = Instance.new("Frame")
- Frame68 = Instance.new("Frame")
- Frame69 = Instance.new("Frame")
- Part70 = Instance.new("Part")
- Part71 = Instance.new("Part")
- Part72 = Instance.new("Part")
- CylinderMesh73 = Instance.new("CylinderMesh")
- WedgePart74 = Instance.new("WedgePart")
- Part75 = Instance.new("Part")
- CylinderMesh76 = Instance.new("CylinderMesh")
- WedgePart77 = Instance.new("WedgePart")
- WedgePart78 = Instance.new("WedgePart")
- Part79 = Instance.new("Part")
- WedgePart80 = Instance.new("WedgePart")
- Part81 = Instance.new("Part")
- CylinderMesh82 = Instance.new("CylinderMesh")
- Part83 = Instance.new("Part")
- Tool84 = Instance.new("Tool")
- Part85 = Instance.new("Part")
- CFrameValue86 = Instance.new("CFrameValue")
- LocalScript87 = Instance.new("LocalScript")
- Script88 = Instance.new("Script")
- SpecialMesh89 = Instance.new("SpecialMesh")
- Script90 = Instance.new("Script")
- Script91 = Instance.new("Script")
- Script92 = Instance.new("Script")
- Script93 = Instance.new("Script")
- Part94 = Instance.new("Part")
- CylinderMesh95 = Instance.new("CylinderMesh")
- Part96 = Instance.new("Part")
- CylinderMesh97 = Instance.new("CylinderMesh")
- WedgePart98 = Instance.new("WedgePart")
- Part99 = Instance.new("Part")
- Part100 = Instance.new("Part")
- WedgePart101 = Instance.new("WedgePart")
- WedgePart102 = Instance.new("WedgePart")
- Part103 = Instance.new("Part")
- WedgePart104 = Instance.new("WedgePart")
- WedgePart105 = Instance.new("WedgePart")
- WedgePart106 = Instance.new("WedgePart")
- Part107 = Instance.new("Part")
- WedgePart108 = Instance.new("WedgePart")
- WedgePart109 = Instance.new("WedgePart")
- BoolValue110 = Instance.new("BoolValue")
- BoolValue111 = Instance.new("BoolValue")
- Script112 = Instance.new("Script")
- Script113 = Instance.new("Script")
- Script114 = Instance.new("Script")
- Script115 = Instance.new("Script")
- Script116 = Instance.new("Script")
- Script117 = Instance.new("Script")
- Script118 = Instance.new("Script")
- Humanoid119 = Instance.new("Humanoid")
- StringValue120 = Instance.new("StringValue")
- BoolValue121 = Instance.new("BoolValue")
- Script122 = Instance.new("Script")
- BoolValue123 = Instance.new("BoolValue")
- ObjectValue124 = Instance.new("ObjectValue")
- ObjectValue125 = Instance.new("ObjectValue")
- Script126 = Instance.new("Script")
- Model0.Name = "Mecha Tanker DX-5"
- Model0.Parent = mas
- WedgePart1.Parent = Model0
- WedgePart1.CFrame = CFrame.new(-129.142334, 13.3998775, 5.1893301, 0, 0, -0.999999881, 0, -1, 0, -0.999999881, 0, 0)
- WedgePart1.Orientation = Vector3.new(0, -90, 180)
- WedgePart1.Position = Vector3.new(-129.142334, 13.3998775, 5.1893301)
- WedgePart1.Rotation = Vector3.new(0, -89.9700012, 0)
- WedgePart1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart1.Size = Vector3.new(2, 2, 2)
- WedgePart1.Anchored = true
- WedgePart1.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart1.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart1.Material = Enum.Material.CorrodedMetal
- WedgePart1.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart1.FormFactor = Enum.FormFactor.Symmetric
- WedgePart1.formFactor = Enum.FormFactor.Symmetric
- WedgePart2.Parent = Model0
- WedgePart2.CFrame = CFrame.new(-139.128174, 13.3998775, 5.1893301, 0, 0, 1, 0, -1, 0, 1, 0, 0)
- WedgePart2.Orientation = Vector3.new(0, 90, 180)
- WedgePart2.Position = Vector3.new(-139.128174, 13.3998775, 5.1893301)
- WedgePart2.Rotation = Vector3.new(180, 90, 0)
- WedgePart2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart2.Size = Vector3.new(2, 2, 2)
- WedgePart2.Anchored = true
- WedgePart2.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart2.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart2.Material = Enum.Material.CorrodedMetal
- WedgePart2.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart2.FormFactor = Enum.FormFactor.Symmetric
- WedgePart2.formFactor = Enum.FormFactor.Symmetric
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-140.835205, 12.2785397, 5.1893301, 0.707106709, 0.707106769, 0, 0.707106769, -0.707106709, 0, 0, 0, -1)
- Part3.Orientation = Vector3.new(0, 180, 135)
- Part3.Position = Vector3.new(-140.835205, 12.2785397, 5.1893301)
- Part3.Rotation = Vector3.new(-180, 0, -45)
- Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part3.Size = Vector3.new(4, 2, 2)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Burnt Sienna")
- Part3.Material = Enum.Material.CorrodedMetal
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Burnt Sienna")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "Head"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(-134.128174, 12.3999577, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part4.Orientation = Vector3.new(0, 180, 0)
- Part4.Position = Vector3.new(-134.128174, 12.3999577, 5.1893301)
- Part4.Rotation = Vector3.new(-180, 0, -180)
- Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part4.Size = Vector3.new(8, 8, 8)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Weld
- Part4.BrickColor = BrickColor.new("Burnt Sienna")
- Part4.Material = Enum.Material.CorrodedMetal
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Burnt Sienna")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh5.Parent = Part4
- CFrameValue6.Name = "qRelativeCFrameWeldValue"
- CFrameValue6.Parent = Part4
- CFrameValue6.Value = CFrame.new(3.88675499, -3.96889496, 2.00182533, -0.707507908, -0.706699848, 9.00280611e-07, 0.706694365, -0.707513392, 1.22883444e-06, -2.68219736e-07, 1.45493391e-06, 0.999996245)
- Decal7.Parent = Part4
- Decal7.Texture = "http://www.roblox.com/asset/?id=49170133"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(-127.435181, 12.2785397, 5.1893301, -0.707106709, -0.707106709, 0, 0.707106769, -0.707106709, 0, 0, 0, 0.999999881)
- Part8.Orientation = Vector3.new(0, 0, 135)
- Part8.Position = Vector3.new(-127.435181, 12.2785397, 5.1893301)
- Part8.Rotation = Vector3.new(0, 0, 135)
- Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part8.Size = Vector3.new(4, 2, 2)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Burnt Sienna")
- Part8.Material = Enum.Material.CorrodedMetal
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Burnt Sienna")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- WedgePart9.Parent = Model0
- WedgePart9.CFrame = CFrame.new(-125.728149, 11.1571369, 5.1893301, 0, 1.49013744e-07, 0.999999881, -6.77626358e-21, 0.999999881, -1.49013744e-07, -0.999999881, 0, 0)
- WedgePart9.Orientation = Vector3.new(0, 90, 0)
- WedgePart9.Position = Vector3.new(-125.728149, 11.1571369, 5.1893301)
- WedgePart9.Rotation = Vector3.new(90, 89.9700012, -90)
- WedgePart9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart9.Size = Vector3.new(2, 2, 2)
- WedgePart9.Anchored = true
- WedgePart9.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart9.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart9.Material = Enum.Material.CorrodedMetal
- WedgePart9.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart9.FormFactor = Enum.FormFactor.Symmetric
- WedgePart9.formFactor = Enum.FormFactor.Symmetric
- WedgePart10.Parent = Model0
- WedgePart10.CFrame = CFrame.new(-142.542358, 11.1571369, 5.1893301, 4.44088736e-14, -1.49013744e-07, -0.999999881, -6.77626358e-21, 0.999999881, -1.49013744e-07, 0.99999994, 1.01643954e-20, 4.44088736e-14)
- WedgePart10.Orientation = Vector3.new(0, -90, 0)
- WedgePart10.Position = Vector3.new(-142.542358, 11.1571369, 5.1893301)
- WedgePart10.Rotation = Vector3.new(90, -89.9700012, 90)
- WedgePart10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart10.Size = Vector3.new(2, 2, 2)
- WedgePart10.Anchored = true
- WedgePart10.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart10.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart10.Material = Enum.Material.CorrodedMetal
- WedgePart10.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart10.FormFactor = Enum.FormFactor.Symmetric
- WedgePart10.formFactor = Enum.FormFactor.Symmetric
- WedgePart11.Parent = Model0
- WedgePart11.CFrame = CFrame.new(-125.90332, 11.2322178, 15.1893301, -0.999999404, 0, -1.49011612e-08, -1.49011612e-08, 0, 0.999999404, 0, 1, 0)
- WedgePart11.Orientation = Vector3.new(-89.9400024, -90, -90)
- WedgePart11.Position = Vector3.new(-125.90332, 11.2322178, 15.1893301)
- WedgePart11.Rotation = Vector3.new(-90, 0, -180)
- WedgePart11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart11.Size = Vector3.new(1, 2, 2.20000005)
- WedgePart11.Anchored = true
- WedgePart11.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart11.BrickColor = BrickColor.new("Really black")
- WedgePart11.Material = Enum.Material.CorrodedMetal
- WedgePart11.brickColor = BrickColor.new("Really black")
- WedgePart11.FormFactor = Enum.FormFactor.Symmetric
- WedgePart11.formFactor = Enum.FormFactor.Symmetric
- WedgePart12.Parent = Model0
- WedgePart12.CFrame = CFrame.new(-125.90332, 10.83214, 13.1893301, -0.999999404, 0, 1.49011612e-08, -1.49011612e-08, 0, -0.999999404, 0, -1, 0)
- WedgePart12.Orientation = Vector3.new(89.9400024, 90, -90)
- WedgePart12.Position = Vector3.new(-125.90332, 10.83214, 13.1893301)
- WedgePart12.Rotation = Vector3.new(90, 0, -180)
- WedgePart12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart12.Size = Vector3.new(1, 2, 3)
- WedgePart12.Anchored = true
- WedgePart12.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart12.BrickColor = BrickColor.new("Really black")
- WedgePart12.Material = Enum.Material.CorrodedMetal
- WedgePart12.brickColor = BrickColor.new("Really black")
- WedgePart12.FormFactor = Enum.FormFactor.Symmetric
- WedgePart12.formFactor = Enum.FormFactor.Symmetric
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(-142.507324, 8.11207771, 3.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part13.Orientation = Vector3.new(0, 180, 90)
- Part13.Position = Vector3.new(-142.507324, 8.11207771, 3.1893301)
- Part13.Rotation = Vector3.new(-180, 0, -90)
- Part13.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part13.Size = Vector3.new(2, 2, 2)
- Part13.Anchored = true
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Burnt Sienna")
- Part13.Material = Enum.Material.CorrodedMetal
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Burnt Sienna")
- Part13.FormFactor = Enum.FormFactor.Symmetric
- Part13.formFactor = Enum.FormFactor.Symmetric
- Part14.Parent = Model0
- Part14.CFrame = CFrame.new(-131.628174, 8.52118874, -2.2249155, 0, 0, 0.999999821, -0.707106769, 0.70710665, 0, -0.70710665, -0.707106769, 0)
- Part14.Orientation = Vector3.new(0, 90, -45)
- Part14.Position = Vector3.new(-131.628174, 8.52118874, -2.2249155)
- Part14.Rotation = Vector3.new(0, 89.9700012, 0)
- Part14.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part14.Size = Vector3.new(1, 5, 1)
- Part14.Anchored = true
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Black")
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Black")
- Part14.FormFactor = Enum.FormFactor.Symmetric
- Part14.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh15.Parent = Part14
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(-125.728149, 8.65707588, 5.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part16.Orientation = Vector3.new(0, 180, 90)
- Part16.Position = Vector3.new(-125.728149, 8.65707588, 5.1893301)
- Part16.Rotation = Vector3.new(-180, 0, -90)
- Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part16.Size = Vector3.new(3, 2, 2)
- Part16.Anchored = true
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Burnt Sienna")
- Part16.Material = Enum.Material.CorrodedMetal
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Burnt Sienna")
- Part16.FormFactor = Enum.FormFactor.Symmetric
- Part16.formFactor = Enum.FormFactor.Symmetric
- Part17.Parent = Model0
- Part17.CFrame = CFrame.new(-125.728149, 8.1570797, 8.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part17.Orientation = Vector3.new(0, 180, 90)
- Part17.Position = Vector3.new(-125.728149, 8.1570797, 8.1893301)
- Part17.Rotation = Vector3.new(-180, 0, -90)
- Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part17.Size = Vector3.new(2, 2, 4)
- Part17.Anchored = true
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("Burnt Sienna")
- Part17.Material = Enum.Material.CorrodedMetal
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("Burnt Sienna")
- Part17.FormFactor = Enum.FormFactor.Symmetric
- Part17.formFactor = Enum.FormFactor.Symmetric
- Part18.Parent = Model0
- Part18.CFrame = CFrame.new(-141.507324, 9.41219521, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part18.Orientation = Vector3.new(90, 180, 0)
- Part18.Position = Vector3.new(-141.507324, 9.41219521, 12.6893301)
- Part18.Rotation = Vector3.new(90, 0, -180)
- Part18.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part18.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
- Part18.Anchored = true
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Really black")
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Really black")
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- CylinderMesh19.Parent = Part18
- CylinderMesh19.Scale = Vector3.new(0.970000267, 1, 1)
- WedgePart20.Parent = Model0
- WedgePart20.CFrame = CFrame.new(-134.128174, 7.39995766, 0.189330101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- WedgePart20.Position = Vector3.new(-134.128174, 7.39995766, 0.189330101)
- WedgePart20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart20.Size = Vector3.new(10, 2, 2)
- WedgePart20.Anchored = true
- WedgePart20.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart20.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart20.Material = Enum.Material.CorrodedMetal
- WedgePart20.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart20.FormFactor = Enum.FormFactor.Symmetric
- WedgePart20.formFactor = Enum.FormFactor.Symmetric
- Part21.Parent = Model0
- Part21.CFrame = CFrame.new(-132.628052, 7.81414223, -1.51782322, 0, 0, 0.999999821, -0.707106769, 0.70710665, 0, -0.70710665, -0.707106769, 0)
- Part21.Orientation = Vector3.new(0, 90, -45)
- Part21.Position = Vector3.new(-132.628052, 7.81414223, -1.51782322)
- Part21.Rotation = Vector3.new(0, 89.9700012, 0)
- Part21.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part21.Size = Vector3.new(1, 3, 1)
- Part21.Anchored = true
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Black")
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Black")
- Part21.FormFactor = Enum.FormFactor.Symmetric
- Part21.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh22.Parent = Part21
- Part23.Parent = Model0
- Part23.CFrame = CFrame.new(-135.628174, 7.81408882, -1.51782322, 0, 0, -0.999999821, 0.70710665, 0.707106769, 0, 0.707106769, -0.70710665, 0)
- Part23.Orientation = Vector3.new(0, -90, 45)
- Part23.Position = Vector3.new(-135.628174, 7.81408882, -1.51782322)
- Part23.Rotation = Vector3.new(0, -89.9700012, 0)
- Part23.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part23.Size = Vector3.new(1, 3, 1)
- Part23.Anchored = true
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Black")
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Black")
- Part23.FormFactor = Enum.FormFactor.Symmetric
- Part23.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh24.Parent = Part23
- Part25.Parent = Model0
- Part25.CFrame = CFrame.new(-125.728149, 8.1570797, 3.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part25.Orientation = Vector3.new(0, 180, 90)
- Part25.Position = Vector3.new(-125.728149, 8.1570797, 3.1893301)
- Part25.Rotation = Vector3.new(-180, 0, -90)
- Part25.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part25.Size = Vector3.new(2, 2, 2)
- Part25.Anchored = true
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.BrickColor = BrickColor.new("Burnt Sienna")
- Part25.Material = Enum.Material.CorrodedMetal
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.brickColor = BrickColor.new("Burnt Sienna")
- Part25.FormFactor = Enum.FormFactor.Symmetric
- Part25.formFactor = Enum.FormFactor.Symmetric
- Part26.Parent = Model0
- Part26.CFrame = CFrame.new(-136.628052, 8.52118874, -2.2249155, 0, 0, -0.999999821, 0.70710665, 0.707106769, 0, 0.707106769, -0.70710665, 0)
- Part26.Orientation = Vector3.new(0, -90, 45)
- Part26.Position = Vector3.new(-136.628052, 8.52118874, -2.2249155)
- Part26.Rotation = Vector3.new(0, -89.9700012, 0)
- Part26.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part26.Size = Vector3.new(1, 5, 1)
- Part26.Anchored = true
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.BrickColor = BrickColor.new("Black")
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.brickColor = BrickColor.new("Black")
- Part26.FormFactor = Enum.FormFactor.Symmetric
- Part26.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh27.Parent = Part26
- Part28.Parent = Model0
- Part28.CFrame = CFrame.new(-142.507324, 8.61213493, 5.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part28.Orientation = Vector3.new(0, 180, 90)
- Part28.Position = Vector3.new(-142.507324, 8.61213493, 5.1893301)
- Part28.Rotation = Vector3.new(-180, 0, -90)
- Part28.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part28.Size = Vector3.new(3, 2, 2)
- Part28.Anchored = true
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.BrickColor = BrickColor.new("Burnt Sienna")
- Part28.Material = Enum.Material.CorrodedMetal
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.brickColor = BrickColor.new("Burnt Sienna")
- Part28.FormFactor = Enum.FormFactor.Symmetric
- Part28.formFactor = Enum.FormFactor.Symmetric
- Part29.Parent = Model0
- Part29.CFrame = CFrame.new(-143.507324, 9.41219521, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part29.Orientation = Vector3.new(90, 180, 0)
- Part29.Position = Vector3.new(-143.507324, 9.41219521, 12.6893301)
- Part29.Rotation = Vector3.new(90, 0, -180)
- Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part29.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
- Part29.Anchored = true
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.BrickColor = BrickColor.new("Really black")
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.brickColor = BrickColor.new("Really black")
- Part29.FormFactor = Enum.FormFactor.Custom
- Part29.formFactor = Enum.FormFactor.Custom
- CylinderMesh30.Parent = Part29
- CylinderMesh30.Scale = Vector3.new(0.970000267, 1, 1)
- WedgePart31.Parent = Model0
- WedgePart31.CFrame = CFrame.new(-125.90332, 10.555872, 17.142395, -1.00000751, -1.63912773e-07, 5.96046448e-08, 8.94069672e-08, 0.739944518, 0.67267555, -1.18032133e-07, 0.672674716, -0.739945889)
- WedgePart31.Orientation = Vector3.new(-42.2700005, 180, 0)
- WedgePart31.Position = Vector3.new(-125.90332, 10.555872, 17.142395)
- WedgePart31.Rotation = Vector3.new(-137.729996, 0, 180)
- WedgePart31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart31.Size = Vector3.new(1, 1.39999998, 3.79999995)
- WedgePart31.Anchored = true
- WedgePart31.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart31.BrickColor = BrickColor.new("Really black")
- WedgePart31.Material = Enum.Material.CorrodedMetal
- WedgePart31.brickColor = BrickColor.new("Really black")
- WedgePart31.FormFactor = Enum.FormFactor.Symmetric
- WedgePart31.formFactor = Enum.FormFactor.Symmetric
- Part32.Parent = Model0
- Part32.CFrame = CFrame.new(-141.507324, 9.41219521, 15.3893728, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part32.Orientation = Vector3.new(90, 180, 0)
- Part32.Position = Vector3.new(-141.507324, 9.41219521, 15.3893728)
- Part32.Rotation = Vector3.new(90, 0, -180)
- Part32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part32.Size = Vector3.new(0.780000031, 1.92999983, 0.830000043)
- Part32.Anchored = true
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.BrickColor = BrickColor.new("Really black")
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.brickColor = BrickColor.new("Really black")
- Part32.FormFactor = Enum.FormFactor.Custom
- Part32.formFactor = Enum.FormFactor.Custom
- CylinderMesh33.Parent = Part32
- CylinderMesh33.Scale = Vector3.new(0.970000267, 1, 1)
- Part34.Parent = Model0
- Part34.CFrame = CFrame.new(-143.507324, 9.41219521, 15.4893789, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part34.Orientation = Vector3.new(90, 180, 0)
- Part34.Position = Vector3.new(-143.507324, 9.41219521, 15.4893789)
- Part34.Rotation = Vector3.new(90, 0, -180)
- Part34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part34.Size = Vector3.new(0.780000031, 2.12999988, 0.830000043)
- Part34.Anchored = true
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.BrickColor = BrickColor.new("Really black")
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.brickColor = BrickColor.new("Really black")
- Part34.FormFactor = Enum.FormFactor.Custom
- Part34.formFactor = Enum.FormFactor.Custom
- CylinderMesh35.Parent = Part34
- CylinderMesh35.Scale = Vector3.new(0.970000267, 1, 1)
- Part36.Parent = Model0
- Part36.CFrame = CFrame.new(-143.507324, 6.91226768, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part36.Orientation = Vector3.new(90, 180, 0)
- Part36.Position = Vector3.new(-143.507324, 6.91226768, 12.6893301)
- Part36.Rotation = Vector3.new(90, 0, -180)
- Part36.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part36.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
- Part36.Anchored = true
- Part36.BottomSurface = Enum.SurfaceType.Smooth
- Part36.BrickColor = BrickColor.new("Really black")
- Part36.TopSurface = Enum.SurfaceType.Smooth
- Part36.brickColor = BrickColor.new("Really black")
- Part36.FormFactor = Enum.FormFactor.Custom
- Part36.formFactor = Enum.FormFactor.Custom
- CylinderMesh37.Parent = Part36
- CylinderMesh37.Scale = Vector3.new(0.970000267, 1, 1)
- Tool38.Name = "Turret"
- Tool38.Parent = Model0
- Tool38.TextureId = "http://www.roblox.com/asset/?id=72012902"
- Tool38.Grip = CFrame.new(0.0500000007, -0.5, -0.25, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Tool38.GripForward = Vector3.new(-0, 1, -0)
- Tool38.GripPos = Vector3.new(0.0500000007, -0.5, -0.25)
- Tool38.GripUp = Vector3.new(0, 0, 1)
- Tool38.ToolTip = "Pistol"
- Part39.Name = "Handle"
- Part39.Parent = Tool38
- Part39.CFrame = CFrame.new(-125.728149, 8.1570797, 14.6893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part39.Orientation = Vector3.new(0, 180, 0)
- Part39.Position = Vector3.new(-125.728149, 8.1570797, 14.6893301)
- Part39.Rotation = Vector3.new(-180, 0, -180)
- Part39.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part39.Size = Vector3.new(2, 2, 1)
- Part39.Anchored = true
- Part39.BottomSurface = Enum.SurfaceType.Weld
- Part39.BrickColor = BrickColor.new("Black")
- Part39.FrontSurface = Enum.SurfaceType.Weld
- Part39.Material = Enum.Material.CorrodedMetal
- Part39.RightSurface = Enum.SurfaceType.Weld
- Part39.brickColor = BrickColor.new("Black")
- Part39.FormFactor = Enum.FormFactor.Symmetric
- Part39.formFactor = Enum.FormFactor.Symmetric
- Fire40.Parent = Part39
- Fire40.Color = Color3.new(1, 0, 0)
- Fire40.Size = 7
- Fire40.Heat = 0
- Fire40.SecondaryColor = Color3.new(1, 0, 0)
- Fire40.size = 7
- Script41.Name = "Ghost Sound"
- Script41.Parent = Part39
- table.insert(cors,sandbox(Script41,function()
- local s = Instance.new("Sound")
- s.Name = "BGMusic"
- s.SoundId = "http://www.roblox.com/asset/?id=77170656"
- s.Volume = 1
- s.Pitch = 1
- s.Looped = false
- s.archivable = false
- s.Parent = script.Parent
- wait(50.0)
- s:play()
- end))
- Sound42.Name = "PewPew"
- Sound42.Parent = Part39
- Sound42.SoundId = "http://www.roblox.com/asset/?id=85848355"
- Sound42.Volume = 1
- Script43.Name = "LaserBlast"
- Script43.Parent = Tool38
- table.insert(cors,sandbox(Script43,function()
- -- 42672473 is sorry sound
- -- 42672581 is wind-knocked-out sound
- ball = script.Parent
- damage = 7.5
- HitSound = Instance.new("Sound")
- HitSound.Name = "HitSound"
- HitSound.SoundId = "http://www.roblox.com/asset/?id=85848355"
- HitSound.Parent = ball
- HitSound.Volume = 1
- PersonHitSound = Instance.new("Sound")
- PersonHitSound.Name = "PersonHitSound"
- --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=85848355"
- PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=85848355" -- grunt sound
- PersonHitSound.Volume = .5
- PersonHitSound.Pitch = 1
- PersonHitSound.Parent = ball
- db = false
- target = ball:findFirstChild("Target")
- if target ~= nil then
- if db == false then
- local humanoid = target.Value:findFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid:TakeDamage(damage)
- PersonHitSound:Play()
- end
- ball.Anchored = true
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- for i = 1,5 do
- ball.Transparency = ball.Transparency + 0.2
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
- wait(0.1)
- end
- --ball.SparkSound.Looped = false
- --ball.SparkSound:Stop()
- ball.Parent = nil
- end))
- Script43.Disabled = true
- Script44.Name = "LaserBlast2"
- Script44.Parent = Tool38
- table.insert(cors,sandbox(Script44,function()
- -- 42672473 is sorry sound
- -- 42672581 is wind-knocked-out sound
- ball = script.Parent
- damage = 7.5
- HitSound = Instance.new("Sound")
- HitSound.Name = "HitSound"
- HitSound.SoundId = "http://www.roblox.com/asset/?id=173692437"
- HitSound.Parent = ball
- HitSound.Volume = 1
- PersonHitSound = Instance.new("Sound")
- PersonHitSound.Name = "PersonHitSound"
- --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=173692437"
- PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=173692437" -- grunt sound
- PersonHitSound.Volume = .5
- PersonHitSound.Pitch = 1
- PersonHitSound.Parent = ball
- db = false
- function onTouched(hit)
- if db == false then
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- --tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- db = true
- --untagHumanoid(humanoid)
- --soundSelector = math.random()*100
- PersonHitSound:Play()
- end
- ball.Anchored = true
- --[[
- local spark = Instance.new("Fire")
- spark.Color = Color3.new(1,1,0)
- spark.SecondaryColor = Color3.new(1,1,0)
- spark.Size = 7.5
- spark.Heat = 0
- spark.Parent = ball
- HitSound:Play()
- wait(0.05)
- ball.Parent = nil
- ]]
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- for i = 1,5 do
- ball.Transparency = ball.Transparency + 0.2
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
- wait(0.1)
- end
- --ball.SparkSound.Looped = false
- --ball.SparkSound:Stop()
- ball.Parent = nil
- end))
- Script44.Disabled = true
- SpecialMesh45.Parent = Tool38
- SpecialMesh45.Scale = Vector3.new(0.25, 0.25, 0.25)
- SpecialMesh45.MeshType = Enum.MeshType.Sphere
- Script46.Name = "ProjectileTimeLife"
- Script46.Parent = Tool38
- table.insert(cors,sandbox(Script46,function()
- script.Parent.Transparency = 0.2
- wait(0.025)
- script.Parent.Transparency = 0.4
- wait(0.025)
- script.Parent.Transparency = 0.6
- wait(0.025)
- script.Parent.Transparency = 0.8
- wait(0.025)
- script.Parent:remove()
- end))
- Script46.Disabled = true
- Script47.Name = "RayGun"
- Script47.Parent = Tool38
- table.insert(cors,sandbox(Script47,function()
- local Tool = script.Parent;
- enabled = true
- --local spark = Instance.new("Sparkles")
- --spark.Color = Color3.new(0,1,0)
- function fire(v)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- --spark:Clone().Parent = missile
- local spawnPos = Tool.Parent.Target.Value.Position
- --spawnPos = spawnPos + (v * 10)
- missile.Position = spawnPos
- missile.Size = Vector3.new(7,7,7)
- --missile.Velocity = v * 100
- missile.BrickColor = BrickColor.new("Really red")
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Spark"
- missile.Reflectance = 0
- missile.Elasticity = 1
- missile.Anchored = true
- missile.CanCollide = false
- Tool.Mesh:clone().Parent = missile
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,99,0)
- force.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- local new_script = script.Parent.LaserBlast:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local target = Instance.new("ObjectValue")
- target.Name = "Target"
- target.Value = Tool.Parent.Target.Value.Parent
- target.Parent = missile
- Hit = missile.CFrame
- local Projectile = Instance.new("Part")
- Projectile.Name = "Trail"
- local Place0 = Tool["Handle"].CFrame
- Projectile.formFactor = 0
- Projectile.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- Projectile.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- Projectile.Parent = Workspace
- Projectile.BrickColor = missile.BrickColor
- Projectile.Anchored = true
- Projectile.CanCollide = false
- local new_script2 = script.Parent.ProjectileTimeLife:clone()
- new_script2.Disabled = false
- new_script2.Parent = Projectile
- me2 = Instance.new("BlockMesh")
- me2.Scale = Vector3.new(.5,.5,1.4)
- me2.Parent = Projectile
- --Tool.Handle.GruntSound:Clone().Parent = missile
- missile.Parent = Workspace
- -- wait(.15)
- --PewPew:Stop()
- end
- function gunUp()
- Tool.GripPos = Vector3.new(0,-0.5,0.5)
- end
- function gunOut()
- Tool.GripPos = Vector3.new(0,-0.5,0.75)
- end
- function isTurbo(character)
- return character:FindFirstChild("BoltHelm") ~= nil
- end
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- local character = Tool.Parent;
- local humanoid = character.Zombie
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local targetPos = Tool.Parent.Target.Value.Position
- local lookAt = (targetPos - character.Head.Position).unit
- local reload = .05
- --if (isTurbo(character)) then
- -- reload = .25
- -- print("turbo")
- --end
- local PewPew = Tool.Handle:FindFirstChild("PewPew")
- if (PewPew == nil) then
- PewPew = Instance.new("Sound")
- PewPew.Name = "PewPew"
- PewPew.SoundId = "http://www.roblox.com/asset/?id=173692437"
- PewPew.Parent = Tool.Handle
- PewPew.Volume = 1
- --PewPew.Pitch = 1.2
- end
- PewPew:Play()
- local spark = Instance.new("Fire")
- spark.Color = Color3.new(1,1,0)
- spark.SecondaryColor = Color3.new(1,1,0)
- spark.Size = 2.5
- spark.Heat = 0
- spark.Parent = Tool.Handle
- --gunUp()
- fire(lookAt,humanoid)
- wait(reload)
- --gunOut()
- wait(reload)
- spark:remove()
- wait(50.9)
- enabled = true
- end
- function onEquipped()
- --Tool.Handle.EquipSound:play()
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- while true do
- if Tool.Parent.Attack.Value == true then
- onActivated()
- end
- wait()
- end
- end))
- Script48.Name = "Welding"
- Script48.Parent = Tool38
- table.insert(cors,sandbox(Script48,function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- LocalScript49.Name = "Local Gui"
- LocalScript49.Parent = Tool38
- table.insert(cors,sandbox(LocalScript49,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(0.2)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Part50.Parent = Model0
- Part50.CFrame = CFrame.new(-141.128052, 4.00000191, 5.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part50.Orientation = Vector3.new(0, 90, 0)
- Part50.Position = Vector3.new(-141.128052, 4.00000191, 5.98931789)
- Part50.Rotation = Vector3.new(0, 90, 0)
- Part50.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part50.Size = Vector3.new(10, 2, 4)
- Part50.Anchored = true
- Part50.BottomSurface = Enum.SurfaceType.Smooth
- Part50.BrickColor = BrickColor.new("Burnt Sienna")
- Part50.Material = Enum.Material.CorrodedMetal
- Part50.TopSurface = Enum.SurfaceType.Smooth
- Part50.brickColor = BrickColor.new("Burnt Sienna")
- Part50.FormFactor = Enum.FormFactor.Symmetric
- Part50.formFactor = Enum.FormFactor.Symmetric
- WedgePart51.Parent = Model0
- WedgePart51.CFrame = CFrame.new(-125.90332, 5.55334663, 13.1893301, 0.999999583, 0, -4.47034836e-08, 4.47034836e-08, 0, 0.999999583, 0, -1, 0)
- WedgePart51.Orientation = Vector3.new(-89.9499969, -90, 90)
- WedgePart51.Position = Vector3.new(-125.90332, 5.55334663, 13.1893301)
- WedgePart51.Rotation = Vector3.new(-90, 0, 0)
- WedgePart51.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart51.Size = Vector3.new(1, 2, 3)
- WedgePart51.Anchored = true
- WedgePart51.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart51.BrickColor = BrickColor.new("Really black")
- WedgePart51.Material = Enum.Material.CorrodedMetal
- WedgePart51.brickColor = BrickColor.new("Really black")
- WedgePart51.FormFactor = Enum.FormFactor.Symmetric
- WedgePart51.formFactor = Enum.FormFactor.Symmetric
- Part52.Parent = Model0
- Part52.CFrame = CFrame.new(-142.507324, 8.11207771, 8.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part52.Orientation = Vector3.new(0, 180, 90)
- Part52.Position = Vector3.new(-142.507324, 8.11207771, 8.1893301)
- Part52.Rotation = Vector3.new(-180, 0, -90)
- Part52.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part52.Size = Vector3.new(2, 2, 4)
- Part52.Anchored = true
- Part52.BottomSurface = Enum.SurfaceType.Smooth
- Part52.BrickColor = BrickColor.new("Burnt Sienna")
- Part52.Material = Enum.Material.CorrodedMetal
- Part52.TopSurface = Enum.SurfaceType.Smooth
- Part52.brickColor = BrickColor.new("Burnt Sienna")
- Part52.FormFactor = Enum.FormFactor.Symmetric
- Part52.formFactor = Enum.FormFactor.Symmetric
- Part53.Parent = Model0
- Part53.CFrame = CFrame.new(-142.507324, 8.11207771, 10.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part53.Orientation = Vector3.new(90, 180, 0)
- Part53.Position = Vector3.new(-142.507324, 8.11207771, 10.6893301)
- Part53.Rotation = Vector3.new(90, 0, -180)
- Part53.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part53.Size = Vector3.new(4, 1, 4)
- Part53.Anchored = true
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.BrickColor = BrickColor.new("Black")
- Part53.TopSurface = Enum.SurfaceType.Smooth
- Part53.brickColor = BrickColor.new("Black")
- Part53.FormFactor = Enum.FormFactor.Symmetric
- Part53.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh54.Parent = Part53
- WedgePart55.Parent = Model0
- WedgePart55.CFrame = CFrame.new(-122.713867, 8.34274864, 15.1893301, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- WedgePart55.Orientation = Vector3.new(0, 90, 90)
- WedgePart55.Position = Vector3.new(-122.713867, 8.34274864, 15.1893301)
- WedgePart55.Rotation = Vector3.new(90, 90, 0)
- WedgePart55.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart55.Size = Vector3.new(1, 2, 2.20000005)
- WedgePart55.Anchored = true
- WedgePart55.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart55.BrickColor = BrickColor.new("Really black")
- WedgePart55.Material = Enum.Material.CorrodedMetal
- WedgePart55.brickColor = BrickColor.new("Really black")
- WedgePart55.FormFactor = Enum.FormFactor.Symmetric
- WedgePart55.formFactor = Enum.FormFactor.Symmetric
- WedgePart56.Parent = Model0
- WedgePart56.CFrame = CFrame.new(-123.390015, 8.34268379, 17.142395, -6.38003286e-08, 0.739944577, 0.672675848, 1.00000787, 1.14427294e-07, -5.54906734e-08, -1.76635069e-07, 0.672674775, -0.739945829)
- WedgePart56.Orientation = Vector3.new(0, 137.729996, 90)
- WedgePart56.Position = Vector3.new(-123.390015, 8.34268379, 17.142395)
- WedgePart56.Rotation = Vector3.new(180, 42.2700005, -90)
- WedgePart56.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart56.Size = Vector3.new(1, 1.39999998, 3.79999995)
- WedgePart56.Anchored = true
- WedgePart56.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart56.BrickColor = BrickColor.new("Really black")
- WedgePart56.Material = Enum.Material.CorrodedMetal
- WedgePart56.brickColor = BrickColor.new("Really black")
- WedgePart56.FormFactor = Enum.FormFactor.Symmetric
- WedgePart56.formFactor = Enum.FormFactor.Symmetric
- WedgePart57.Parent = Model0
- WedgePart57.CFrame = CFrame.new(-125.90332, 5.15330315, 15.1893301, 0.999999583, 0, 4.47034836e-08, 4.47034836e-08, 0, -0.999999583, 0, 1, 0)
- WedgePart57.Orientation = Vector3.new(89.9499969, 90, 90)
- WedgePart57.Position = Vector3.new(-125.90332, 5.15330315, 15.1893301)
- WedgePart57.Rotation = Vector3.new(90, 0, 0)
- WedgePart57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart57.Size = Vector3.new(1, 2, 2.20000005)
- WedgePart57.Anchored = true
- WedgePart57.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart57.BrickColor = BrickColor.new("Really black")
- WedgePart57.Material = Enum.Material.CorrodedMetal
- WedgePart57.brickColor = BrickColor.new("Really black")
- WedgePart57.FormFactor = Enum.FormFactor.Symmetric
- WedgePart57.formFactor = Enum.FormFactor.Symmetric
- WedgePart58.Parent = Model0
- WedgePart58.CFrame = CFrame.new(-125.90332, 5.82956123, 17.142395, 1.00000763, 1.1920929e-07, 1.49011612e-08, 5.96046448e-08, -0.739944577, -0.67267561, -1.18032133e-07, 0.672674716, -0.739945889)
- WedgePart58.Orientation = Vector3.new(42.2700005, 180, 180)
- WedgePart58.Position = Vector3.new(-125.90332, 5.82956123, 17.142395)
- WedgePart58.Rotation = Vector3.new(137.729996, 0, 0)
- WedgePart58.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart58.Size = Vector3.new(1, 1.39999998, 3.79999995)
- WedgePart58.Anchored = true
- WedgePart58.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart58.BrickColor = BrickColor.new("Really black")
- WedgePart58.Material = Enum.Material.CorrodedMetal
- WedgePart58.brickColor = BrickColor.new("Really black")
- WedgePart58.FormFactor = Enum.FormFactor.Symmetric
- WedgePart58.formFactor = Enum.FormFactor.Symmetric
- WedgePart59.Parent = Model0
- WedgePart59.CFrame = CFrame.new(-123.113892, 8.34274864, 13.1893301, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- WedgePart59.Orientation = Vector3.new(0, -90, 90)
- WedgePart59.Position = Vector3.new(-123.113892, 8.34274864, 13.1893301)
- WedgePart59.Rotation = Vector3.new(-90, -90, 0)
- WedgePart59.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart59.Size = Vector3.new(1, 2, 3)
- WedgePart59.Anchored = true
- WedgePart59.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart59.BrickColor = BrickColor.new("Really black")
- WedgePart59.Material = Enum.Material.CorrodedMetal
- WedgePart59.brickColor = BrickColor.new("Really black")
- WedgePart59.FormFactor = Enum.FormFactor.Symmetric
- WedgePart59.formFactor = Enum.FormFactor.Symmetric
- WedgePart60.Parent = Model0
- WedgePart60.CFrame = CFrame.new(-141.12793, 4.00000191, -1.01068211, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- WedgePart60.Position = Vector3.new(-141.12793, 4.00000191, -1.01068211)
- WedgePart60.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart60.Size = Vector3.new(4, 2, 4)
- WedgePart60.Anchored = true
- WedgePart60.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart60.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart60.Material = Enum.Material.CorrodedMetal
- WedgePart60.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart60.FormFactor = Enum.FormFactor.Symmetric
- WedgePart60.formFactor = Enum.FormFactor.Symmetric
- WedgePart61.Parent = Model0
- WedgePart61.CFrame = CFrame.new(-134.128174, 7.39995766, 10.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- WedgePart61.Orientation = Vector3.new(0, 180, 0)
- WedgePart61.Position = Vector3.new(-134.128174, 7.39995766, 10.1893301)
- WedgePart61.Rotation = Vector3.new(-180, 0, -180)
- WedgePart61.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart61.Size = Vector3.new(10, 2, 2)
- WedgePart61.Anchored = true
- WedgePart61.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart61.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart61.Material = Enum.Material.CorrodedMetal
- WedgePart61.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart61.FormFactor = Enum.FormFactor.Symmetric
- WedgePart61.formFactor = Enum.FormFactor.Symmetric
- Part62.Name = "Torso"
- Part62.Parent = Model0
- Part62.CFrame = CFrame.new(-134.128174, 7.39995766, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part62.Orientation = Vector3.new(0, 180, 0)
- Part62.Position = Vector3.new(-134.128174, 7.39995766, 5.1893301)
- Part62.Rotation = Vector3.new(-180, 0, -180)
- Part62.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part62.Size = Vector3.new(10, 2, 8)
- Part62.Anchored = true
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.BrickColor = BrickColor.new("Burnt Sienna")
- Part62.Material = Enum.Material.CorrodedMetal
- Part62.TopSurface = Enum.SurfaceType.Weld
- Part62.brickColor = BrickColor.new("Burnt Sienna")
- Part62.FormFactor = Enum.FormFactor.Symmetric
- Part62.formFactor = Enum.FormFactor.Symmetric
- CFrameValue63.Name = "qRelativeCFrameWeldValue"
- CFrameValue63.Parent = Part62
- CFrameValue63.Value = CFrame.new(3.88675499, -3.96889496, 2.00182533, -0.707507908, -0.706699848, 9.00280611e-07, 0.706694365, -0.707513392, 1.22883444e-06, -2.68219736e-07, 1.45493391e-06, 0.999996245)
- BodyPosition64.Parent = Part62
- BodyPosition64.Position = Vector3.new(0, 6, 0)
- BodyPosition64.P = 30000
- BodyPosition64.MaxForce = Vector3.new(0, 400000, 0)
- BodyPosition64.maxForce = Vector3.new(0, 400000, 0)
- BodyPosition64.position = Vector3.new(0, 6, 0)
- Script65.Parent = BodyPosition64
- table.insert(cors,sandbox(Script65,function()
- wait(0.5)
- script.Parent.position = script.Parent.Parent.Position
- script.Parent.Parent.Anchored = false
- end))
- Script65.Disabled = true
- BillboardGui66.Name = "Healthbar"
- BillboardGui66.Parent = Part62
- BillboardGui66.Size = UDim2.new(50, 0, 1, 0)
- BillboardGui66.AlwaysOnTop = true
- BillboardGui66.StudsOffset = Vector3.new(0, 20, 0)
- Frame67.Parent = BillboardGui66
- Frame67.Size = UDim2.new(1, 0, 1, 0)
- Frame67.BackgroundColor = BrickColor.new("Really black")
- Frame67.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame67.BorderColor = BrickColor.new("Really black")
- Frame67.BorderColor3 = Color3.new(0, 0, 0)
- Frame68.Name = "Full"
- Frame68.Parent = Frame67
- Frame68.Size = UDim2.new(1, 0, 1, 0)
- Frame68.BackgroundColor = BrickColor.new("Lime green")
- Frame68.BackgroundColor3 = Color3.new(0, 0.784314, 0)
- Frame68.BorderColor = BrickColor.new("Really black")
- Frame68.BorderColor3 = Color3.new(0, 0, 0)
- Frame68.BorderSizePixel = 0
- Frame69.Name = "Reflec"
- Frame69.Parent = Frame68
- Frame69.Size = UDim2.new(1, 0, 0.370000005, 0)
- Frame69.BackgroundColor = BrickColor.new("Institutional white")
- Frame69.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame69.BackgroundTransparency = 0.625
- Frame69.BorderSizePixel = 0
- Part70.Parent = Model0
- Part70.CFrame = CFrame.new(-134.128174, 3.40000343, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part70.Orientation = Vector3.new(0, 180, 0)
- Part70.Position = Vector3.new(-134.128174, 3.40000343, 5.1893301)
- Part70.Rotation = Vector3.new(-180, 0, -180)
- Part70.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part70.Size = Vector3.new(10, 2, 8)
- Part70.Anchored = true
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.BrickColor = BrickColor.new("Burnt Sienna")
- Part70.Material = Enum.Material.CorrodedMetal
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.brickColor = BrickColor.new("Burnt Sienna")
- Part70.FormFactor = Enum.FormFactor.Symmetric
- Part70.formFactor = Enum.FormFactor.Symmetric
- Part71.Parent = Model0
- Part71.CFrame = CFrame.new(-134.128174, 5.39997673, 5.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part71.Orientation = Vector3.new(0, 180, 0)
- Part71.Position = Vector3.new(-134.128174, 5.39997673, 5.1893301)
- Part71.Rotation = Vector3.new(-180, 0, -180)
- Part71.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part71.Size = Vector3.new(10, 2, 8)
- Part71.Anchored = true
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.BrickColor = BrickColor.new("Burnt Sienna")
- Part71.Material = Enum.Material.CorrodedMetal
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.brickColor = BrickColor.new("Burnt Sienna")
- Part71.FormFactor = Enum.FormFactor.Symmetric
- Part71.formFactor = Enum.FormFactor.Symmetric
- Part72.Parent = Model0
- Part72.CFrame = CFrame.new(-142.507324, 8.21107674, 14.3395987, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part72.Orientation = Vector3.new(90, 180, 0)
- Part72.Position = Vector3.new(-142.507324, 8.21107674, 14.3395987)
- Part72.Rotation = Vector3.new(90, 0, -180)
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Size = Vector3.new(3.99800038, 0.200000003, 4.59800053)
- Part72.Anchored = true
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.BrickColor = BrickColor.new("Black")
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.brickColor = BrickColor.new("Black")
- Part72.FormFactor = Enum.FormFactor.Custom
- Part72.formFactor = Enum.FormFactor.Custom
- CylinderMesh73.Parent = Part72
- WedgePart74.Parent = Model0
- WedgePart74.CFrame = CFrame.new(-128.266113, 8.14261818, 13.1893301, 0, 0, 1, -1, 0, 0, 0, -1, 0)
- WedgePart74.Orientation = Vector3.new(0, 90, -90)
- WedgePart74.Position = Vector3.new(-128.266113, 8.14261818, 13.1893301)
- WedgePart74.Rotation = Vector3.new(-90, 90, 0)
- WedgePart74.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart74.Size = Vector3.new(1, 2, 3)
- WedgePart74.Anchored = true
- WedgePart74.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart74.BrickColor = BrickColor.new("Really black")
- WedgePart74.Material = Enum.Material.CorrodedMetal
- WedgePart74.brickColor = BrickColor.new("Really black")
- WedgePart74.FormFactor = Enum.FormFactor.Symmetric
- WedgePart74.formFactor = Enum.FormFactor.Symmetric
- Part75.Parent = Model0
- Part75.CFrame = CFrame.new(-142.807373, 8.11207771, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part75.Orientation = Vector3.new(90, 180, 0)
- Part75.Position = Vector3.new(-142.807373, 8.11207771, 12.6893301)
- Part75.Rotation = Vector3.new(90, 0, -180)
- Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part75.Size = Vector3.new(1.38000011, 2.92999983, 1.43000007)
- Part75.Anchored = true
- Part75.BottomSurface = Enum.SurfaceType.Smooth
- Part75.BrickColor = BrickColor.new("Really black")
- Part75.TopSurface = Enum.SurfaceType.Smooth
- Part75.brickColor = BrickColor.new("Really black")
- Part75.FormFactor = Enum.FormFactor.Custom
- Part75.formFactor = Enum.FormFactor.Custom
- CylinderMesh76.Parent = Part75
- CylinderMesh76.Scale = Vector3.new(0.970000267, 1, 1)
- WedgePart77.Parent = Model0
- WedgePart77.CFrame = CFrame.new(-127.98999, 8.14269066, 17.1423645, 6.38003286e-08, -0.739944577, -0.672675848, -1.00000787, -1.14427294e-07, 5.54906734e-08, -1.76635069e-07, 0.672674775, -0.739945829)
- WedgePart77.Orientation = Vector3.new(0, -137.729996, -90)
- WedgePart77.Position = Vector3.new(-127.98999, 8.14269066, 17.1423645)
- WedgePart77.Rotation = Vector3.new(-180, -42.2700005, 90)
- WedgePart77.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart77.Size = Vector3.new(1, 1.39999998, 3.79999995)
- WedgePart77.Anchored = true
- WedgePart77.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart77.BrickColor = BrickColor.new("Really black")
- WedgePart77.Material = Enum.Material.CorrodedMetal
- WedgePart77.brickColor = BrickColor.new("Really black")
- WedgePart77.FormFactor = Enum.FormFactor.Symmetric
- WedgePart77.formFactor = Enum.FormFactor.Symmetric
- WedgePart78.Parent = Model0
- WedgePart78.CFrame = CFrame.new(-128.66626, 8.14261818, 15.1893301, 0, 0, -1, -1, 0, 0, 0, 1, 0)
- WedgePart78.Orientation = Vector3.new(0, -90, -90)
- WedgePart78.Position = Vector3.new(-128.66626, 8.14261818, 15.1893301)
- WedgePart78.Rotation = Vector3.new(90, -90, 0)
- WedgePart78.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- WedgePart78.Size = Vector3.new(1, 2, 2.20000005)
- WedgePart78.Anchored = true
- WedgePart78.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart78.BrickColor = BrickColor.new("Really black")
- WedgePart78.Material = Enum.Material.CorrodedMetal
- WedgePart78.brickColor = BrickColor.new("Really black")
- WedgePart78.FormFactor = Enum.FormFactor.Symmetric
- WedgePart78.formFactor = Enum.FormFactor.Symmetric
- Part79.Parent = Model0
- Part79.CFrame = CFrame.new(-125.728149, 8.1570797, 12.1893301, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- Part79.Orientation = Vector3.new(0, 180, 90)
- Part79.Position = Vector3.new(-125.728149, 8.1570797, 12.1893301)
- Part79.Rotation = Vector3.new(-180, 0, -90)
- Part79.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part79.Size = Vector3.new(2, 2, 4)
- Part79.Anchored = true
- Part79.BottomSurface = Enum.SurfaceType.Smooth
- Part79.BrickColor = BrickColor.new("Black")
- Part79.Material = Enum.Material.CorrodedMetal
- Part79.TopSurface = Enum.SurfaceType.Smooth
- Part79.brickColor = BrickColor.new("Black")
- Part79.FormFactor = Enum.FormFactor.Symmetric
- Part79.formFactor = Enum.FormFactor.Symmetric
- WedgePart80.Parent = Model0
- WedgePart80.CFrame = CFrame.new(-134.128174, 3.40000343, 0.189330101, 1, 0, 0, 0, 0, 1, 0, -1, 0)
- WedgePart80.Orientation = Vector3.new(-90, 0, 0)
- WedgePart80.Position = Vector3.new(-134.128174, 3.40000343, 0.189330101)
- WedgePart80.Rotation = Vector3.new(-90, 0, 0)
- WedgePart80.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart80.Size = Vector3.new(10, 2, 2)
- WedgePart80.Anchored = true
- WedgePart80.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart80.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart80.Material = Enum.Material.CorrodedMetal
- WedgePart80.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart80.FormFactor = Enum.FormFactor.Symmetric
- WedgePart80.formFactor = Enum.FormFactor.Symmetric
- Part81.Parent = Model0
- Part81.CFrame = CFrame.new(-141.507324, 6.91226768, 12.6893301, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part81.Orientation = Vector3.new(90, 180, 0)
- Part81.Position = Vector3.new(-141.507324, 6.91226768, 12.6893301)
- Part81.Rotation = Vector3.new(90, 0, -180)
- Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part81.Size = Vector3.new(0.780000031, 2.92999983, 0.830000043)
- Part81.Anchored = true
- Part81.BottomSurface = Enum.SurfaceType.Smooth
- Part81.BrickColor = BrickColor.new("Really black")
- Part81.TopSurface = Enum.SurfaceType.Smooth
- Part81.brickColor = BrickColor.new("Really black")
- Part81.FormFactor = Enum.FormFactor.Custom
- Part81.formFactor = Enum.FormFactor.Custom
- CylinderMesh82.Parent = Part81
- CylinderMesh82.Scale = Vector3.new(0.970000267, 1, 1)
- Part83.Parent = Model0
- Part83.CFrame = CFrame.new(-134.128174, 5.39997673, 0.189330101, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part83.Orientation = Vector3.new(0, 180, 0)
- Part83.Position = Vector3.new(-134.128174, 5.39997673, 0.189330101)
- Part83.Rotation = Vector3.new(-180, 0, -180)
- Part83.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part83.Size = Vector3.new(10, 2, 2)
- Part83.Anchored = true
- Part83.BottomSurface = Enum.SurfaceType.Smooth
- Part83.BrickColor = BrickColor.new("Burnt Sienna")
- Part83.Material = Enum.Material.CorrodedMetal
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.brickColor = BrickColor.new("Burnt Sienna")
- Part83.FormFactor = Enum.FormFactor.Symmetric
- Part83.formFactor = Enum.FormFactor.Symmetric
- Tool84.Name = "Pistol"
- Tool84.Parent = Model0
- Tool84.TextureId = "http://www.roblox.com/asset/?id=72012902"
- Tool84.Grip = CFrame.new(0.0500000007, -0.5, -0.25, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Tool84.GripForward = Vector3.new(-0, 1, -0)
- Tool84.GripPos = Vector3.new(0.0500000007, -0.5, -0.25)
- Tool84.GripUp = Vector3.new(0, 0, 1)
- Part85.Name = "Handle"
- Part85.Parent = Tool84
- Part85.CFrame = CFrame.new(-143.006348, 8.41217995, 14.9395742, -0.999994874, 5.24172401e-06, 8.33983904e-07, -4.84305929e-10, -3.75508898e-06, 0.999998569, 5.24201732e-06, 0.999999523, 3.75548211e-06)
- Part85.Orientation = Vector3.new(-89.9000015, 12.5200005, -179.990005)
- Part85.Position = Vector3.new(-143.006348, 8.41217995, 14.9395742)
- Part85.Rotation = Vector3.new(-90, 0, -180)
- Part85.Color = Color3.new(1, 1, 0.8)
- Part85.Transparency = 1
- Part85.Size = Vector3.new(1, 1, 1)
- Part85.Anchored = true
- Part85.BrickColor = BrickColor.new("Pastel yellow")
- Part85.CanCollide = false
- Part85.brickColor = BrickColor.new("Pastel yellow")
- Part85.FormFactor = Enum.FormFactor.Symmetric
- Part85.formFactor = Enum.FormFactor.Symmetric
- CFrameValue86.Name = "qRelativeCFrameWeldValue"
- CFrameValue86.Parent = Part85
- CFrameValue86.Value = CFrame.new(3.88675499, -3.96889496, 2.00182533, -0.707507908, -0.706699848, 9.00280611e-07, 0.706694365, -0.707513392, 1.22883444e-06, -2.68219736e-07, 1.45493391e-06, 0.999996245)
- LocalScript87.Name = "Local Gui"
- LocalScript87.Parent = Tool84
- table.insert(cors,sandbox(LocalScript87,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(0.2)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Script88.Name = "LaserBlast"
- Script88.Parent = Tool84
- table.insert(cors,sandbox(Script88,function()
- -- 42672473 is sorry sound
- -- 42672581 is wind-knocked-out sound
- ball = script.Parent
- damage = 150
- HitSound = Instance.new("Sound")
- HitSound.Name = "HitSound"
- HitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
- HitSound.Parent = ball
- HitSound.Volume = 1
- PersonHitSound = Instance.new("Sound")
- PersonHitSound.Name = "PersonHitSound"
- --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
- PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294" -- grunt sound
- PersonHitSound.Volume = 1.0
- PersonHitSound.Pitch = 0.8
- PersonHitSound.Parent = ball
- db = false
- target = ball:findFirstChild("Target")
- if target ~= nil then
- if db == false then
- local humanoid = target.Value:findFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid:TakeDamage(damage)
- PersonHitSound:Play()
- end
- ball.Anchored = true
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- --connection = ball.Touched:connect(onTouched)
- for i = 1,5 do
- ball.Transparency = ball.Transparency + 0.2
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
- wait(0.1)
- end
- --ball.SparkSound.Looped = false
- --ball.SparkSound:Stop()
- ball.Parent = nil
- end))
- Script88.Disabled = true
- SpecialMesh89.Parent = Tool84
- SpecialMesh89.Scale = Vector3.new(0.25, 0.25, 0.25)
- SpecialMesh89.MeshType = Enum.MeshType.Sphere
- Script90.Name = "ProjectileTimeLife"
- Script90.Parent = Tool84
- table.insert(cors,sandbox(Script90,function()
- script.Parent.Transparency = 0.2
- wait(0.025)
- script.Parent.Transparency = 0.4
- wait(0.025)
- script.Parent.Transparency = 0.6
- wait(0.025)
- script.Parent.Transparency = 0.8
- wait(0.025)
- script.Parent:remove()
- end))
- Script90.Disabled = true
- Script91.Name = "RayGun"
- Script91.Parent = Tool84
- table.insert(cors,sandbox(Script91,function()
- local Tool = script.Parent;
- function wait(TimeToWait)
- if TimeToWait ~= nil then
- local TotalTime = 0
- TotalTime = TotalTime + game:GetService("RunService").Heartbeat:wait()
- while TotalTime < TimeToWait do
- TotalTime = TotalTime + game:GetService("RunService").Heartbeat:wait()
- end
- else
- game:GetService("RunService").Heartbeat:wait()
- end
- end
- enabled = true
- --local spark = Instance.new("Sparkles")
- --spark.Color = Color3.new(0,1,0)
- function fire(v)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- --spark:Clone().Parent = missile
- local spawnPos = Tool.Parent.Target.Value.Position
- --spawnPos = spawnPos + (v * 10)
- missile.Position = spawnPos
- missile.Size = Vector3.new(.2,.2,.2)
- --missile.Velocity = v * 100
- missile.BrickColor = BrickColor.new("Bright yellow")
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Spark"
- missile.Reflectance = 0
- missile.Elasticity = 1
- missile.Anchored = true
- missile.CanCollide = false
- Tool.Mesh:clone().Parent = missile
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,99,0)
- force.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- local new_script = script.Parent.LaserBlast:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local target = Instance.new("ObjectValue")
- target.Name = "Target"
- target.Value = Tool.Parent.Target.Value.Parent
- target.Parent = missile
- Hit = missile.CFrame
- local Projectile = Instance.new("Part")
- Projectile.Name = "Trail"
- local Place0 = Tool["Handle"].CFrame
- Projectile.formFactor = 0
- Projectile.Size = Vector3.new(3,3,(Place0.p - Hit.p).magnitude)
- Projectile.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- Projectile.Parent = Workspace
- Projectile.BrickColor = missile.BrickColor
- Projectile.Anchored = true
- Projectile.CanCollide = false
- local new_script2 = script.Parent.ProjectileTimeLife:clone()
- new_script2.Disabled = false
- new_script2.Parent = Projectile
- me2 = Instance.new("BlockMesh")
- me2.Scale = Vector3.new(0.25,0.25,1)
- me2.Parent = Projectile
- --Tool.Handle.GruntSound:Clone().Parent = missile
- missile.Parent = Workspace
- -- wait(.15)
- --PewPew:Stop()
- end
- function gunUp()
- Tool.GripPos = Vector3.new(0,-0.5,0.5)
- end
- function gunOut()
- Tool.GripPos = Vector3.new(0,-0.5,0.75)
- end
- function isTurbo(character)
- return character:FindFirstChild("BoltHelm") ~= nil
- end
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- local character = Tool.Parent;
- local humanoid = character.Zombie
- if humanoid == nil then
- print("Zombie not found")
- return
- end
- local targetPos = Tool.Parent.Target.Value.Position
- local lookAt = (targetPos - character.Head.Position).unit
- local reload = .0
- --if (isTurbo(character)) then
- -- reload = .0
- -- print("turbo")
- --end
- local PewPew = Tool.Handle:FindFirstChild("PewPew")
- if (PewPew == nil) then
- PewPew = Instance.new("Sound")
- PewPew.Name = "PewPew"
- PewPew.SoundId = "http://www.roblox.com/asset/?id=2697294"
- PewPew.Parent = Tool.Handle
- PewPew.Volume = 1
- --PewPew.Pitch = 0.8
- end
- --PewPew:Play()
- for i =1,3 do
- local spark = Instance.new("Fire")
- spark.Color = Color3.new(0,0,1)
- spark.SecondaryColor = Color3.new(0,0,1)
- spark.Size = 7.9
- spark.Heat = 0
- spark.Parent = Tool.Handle
- --gunUp()
- fire(lookAt,humanoid)
- PewPew:Play()
- wait(0.0)
- spark:remove()
- end
- --wait(reload)
- --gunOut()
- --wait(reload)
- wait(0)
- enabled = true
- end
- function onEquipped()
- --Tool.Handle.EquipSound:play()
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- while true do
- if Tool.Parent.Attack.Value == true then
- onActivated()
- end
- wait()
- end
- end))
- Script92.Name = "Welding"
- Script92.Parent = Tool84
- table.insert(cors,sandbox(Script92,function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- Script93.Name = "LaserBlast2"
- Script93.Parent = Tool84
- table.insert(cors,sandbox(Script93,function()
- -- 42672473 is sorry sound
- -- 42672581 is wind-knocked-out sound
- ball = script.Parent
- damage = 150
- HitSound = Instance.new("Sound")
- HitSound.Name = "HitSound"
- HitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
- HitSound.Parent = ball
- HitSound.Volume = 1
- PersonHitSound = Instance.new("Sound")
- PersonHitSound.Name = "PersonHitSound"
- --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294"
- PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=2697294" -- grunt sound
- PersonHitSound.Volume = 1.0
- PersonHitSound.Pitch = 0.8
- PersonHitSound.Parent = ball
- db = false
- function onTouched(hit)
- if db == false then
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- --tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- db = true
- --untagHumanoid(humanoid)
- --soundSelector = math.random()*100
- PersonHitSound:Play()
- end
- ball.Anchored = true
- --[[
- local spark = Instance.new("Fire")
- spark.Color = Color3.new(1,1,0)
- spark.SecondaryColor = Color3.new(1,1,0)
- spark.Size = 7.5
- spark.Heat = 0
- spark.Parent = ball
- HitSound:Play()
- wait(0.05)
- ball.Parent = nil
- ]]
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- --connection = ball.Touched:connect(onTouched)
- for i = 1,5 do
- ball.Transparency = ball.Transparency + 0.2
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.5,0.5,0.5)
- wait(0.1)
- end
- --ball.SparkSound.Looped = false
- --ball.SparkSound:Stop()
- ball.Parent = nil
- end))
- Script93.Disabled = true
- Part94.Parent = Model0
- Part94.CFrame = CFrame.new(-141.507324, 6.91226768, 15.4893789, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part94.Orientation = Vector3.new(90, 180, 0)
- Part94.Position = Vector3.new(-141.507324, 6.91226768, 15.4893789)
- Part94.Rotation = Vector3.new(90, 0, -180)
- Part94.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part94.Size = Vector3.new(0.780000031, 2.12999988, 0.830000043)
- Part94.Anchored = true
- Part94.BottomSurface = Enum.SurfaceType.Smooth
- Part94.BrickColor = BrickColor.new("Really black")
- Part94.TopSurface = Enum.SurfaceType.Smooth
- Part94.brickColor = BrickColor.new("Really black")
- Part94.FormFactor = Enum.FormFactor.Custom
- Part94.formFactor = Enum.FormFactor.Custom
- CylinderMesh95.Parent = Part94
- CylinderMesh95.Scale = Vector3.new(0.970000267, 1, 1)
- Part96.Parent = Model0
- Part96.CFrame = CFrame.new(-143.507324, 6.91226768, 15.4893789, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part96.Orientation = Vector3.new(90, 180, 0)
- Part96.Position = Vector3.new(-143.507324, 6.91226768, 15.4893789)
- Part96.Rotation = Vector3.new(90, 0, -180)
- Part96.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part96.Size = Vector3.new(0.780000031, 2.12999988, 0.830000043)
- Part96.Anchored = true
- Part96.BottomSurface = Enum.SurfaceType.Smooth
- Part96.BrickColor = BrickColor.new("Really black")
- Part96.TopSurface = Enum.SurfaceType.Smooth
- Part96.brickColor = BrickColor.new("Really black")
- Part96.FormFactor = Enum.FormFactor.Custom
- Part96.formFactor = Enum.FormFactor.Custom
- CylinderMesh97.Parent = Part96
- CylinderMesh97.Scale = Vector3.new(0.970000267, 1, 1)
- WedgePart98.Parent = Model0
- WedgePart98.CFrame = CFrame.new(-127.12793, 1.50001335, -1.01068211, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- WedgePart98.Orientation = Vector3.new(0, 0, 180)
- WedgePart98.Position = Vector3.new(-127.12793, 1.50001335, -1.01068211)
- WedgePart98.Rotation = Vector3.new(0, 0, -180)
- WedgePart98.Color = Color3.new(0.105882, 0.164706, 0.207843)
- WedgePart98.Size = Vector3.new(4, 3, 4)
- WedgePart98.Anchored = true
- WedgePart98.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart98.BrickColor = BrickColor.new("Black")
- WedgePart98.brickColor = BrickColor.new("Black")
- WedgePart98.FormFactor = Enum.FormFactor.Symmetric
- WedgePart98.formFactor = Enum.FormFactor.Symmetric
- Part99.Parent = Model0
- Part99.CFrame = CFrame.new(-134.128174, 5.39997673, 10.1893301, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part99.Orientation = Vector3.new(0, 180, 0)
- Part99.Position = Vector3.new(-134.128174, 5.39997673, 10.1893301)
- Part99.Rotation = Vector3.new(-180, 0, -180)
- Part99.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part99.Size = Vector3.new(10, 2, 2)
- Part99.Anchored = true
- Part99.BottomSurface = Enum.SurfaceType.Smooth
- Part99.BrickColor = BrickColor.new("Burnt Sienna")
- Part99.Material = Enum.Material.CorrodedMetal
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.brickColor = BrickColor.new("Burnt Sienna")
- Part99.FormFactor = Enum.FormFactor.Symmetric
- Part99.formFactor = Enum.FormFactor.Symmetric
- Part100.Parent = Model0
- Part100.CFrame = CFrame.new(-127.128174, 4.00000191, 5.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part100.Orientation = Vector3.new(0, 90, 0)
- Part100.Position = Vector3.new(-127.128174, 4.00000191, 5.98931789)
- Part100.Rotation = Vector3.new(0, 90, 0)
- Part100.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part100.Size = Vector3.new(10, 2, 4)
- Part100.Anchored = true
- Part100.BottomSurface = Enum.SurfaceType.Smooth
- Part100.BrickColor = BrickColor.new("Burnt Sienna")
- Part100.Material = Enum.Material.CorrodedMetal
- Part100.TopSurface = Enum.SurfaceType.Smooth
- Part100.brickColor = BrickColor.new("Burnt Sienna")
- Part100.FormFactor = Enum.FormFactor.Symmetric
- Part100.formFactor = Enum.FormFactor.Symmetric
- WedgePart101.Parent = Model0
- WedgePart101.CFrame = CFrame.new(-127.12793, 4.00000191, -1.01068211, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- WedgePart101.Position = Vector3.new(-127.12793, 4.00000191, -1.01068211)
- WedgePart101.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart101.Size = Vector3.new(4, 2, 4)
- WedgePart101.Anchored = true
- WedgePart101.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart101.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart101.Material = Enum.Material.CorrodedMetal
- WedgePart101.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart101.FormFactor = Enum.FormFactor.Symmetric
- WedgePart101.formFactor = Enum.FormFactor.Symmetric
- WedgePart102.Parent = Model0
- WedgePart102.CFrame = CFrame.new(-141.12793, 1.50001335, -1.01068211, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- WedgePart102.Orientation = Vector3.new(0, 0, 180)
- WedgePart102.Position = Vector3.new(-141.12793, 1.50001335, -1.01068211)
- WedgePart102.Rotation = Vector3.new(0, 0, -180)
- WedgePart102.Color = Color3.new(0.105882, 0.164706, 0.207843)
- WedgePart102.Size = Vector3.new(4, 3, 4)
- WedgePart102.Anchored = true
- WedgePart102.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart102.BrickColor = BrickColor.new("Black")
- WedgePart102.brickColor = BrickColor.new("Black")
- WedgePart102.FormFactor = Enum.FormFactor.Symmetric
- WedgePart102.formFactor = Enum.FormFactor.Symmetric
- Part103.Parent = Model0
- Part103.CFrame = CFrame.new(-141.128052, 1.50001335, 6.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part103.Orientation = Vector3.new(0, 90, 0)
- Part103.Position = Vector3.new(-141.128052, 1.50001335, 6.98931789)
- Part103.Rotation = Vector3.new(0, 90, 0)
- Part103.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part103.Size = Vector3.new(12, 3, 4)
- Part103.Anchored = true
- Part103.BottomSurface = Enum.SurfaceType.Smooth
- Part103.BrickColor = BrickColor.new("Black")
- Part103.TopSurface = Enum.SurfaceType.Smooth
- Part103.brickColor = BrickColor.new("Black")
- Part103.FormFactor = Enum.FormFactor.Symmetric
- Part103.formFactor = Enum.FormFactor.Symmetric
- WedgePart104.Parent = Model0
- WedgePart104.CFrame = CFrame.new(-141.12793, 1.50001335, 14.9893179, 1, 0, 1.77635684e-15, 0, -1, 2.98023224e-08, 8.8817842e-16, -2.98023224e-08, -1)
- WedgePart104.Orientation = Vector3.new(0, 180, 180)
- WedgePart104.Position = Vector3.new(-141.12793, 1.50001335, 14.9893179)
- WedgePart104.Rotation = Vector3.new(-180, 0, 0)
- WedgePart104.Color = Color3.new(0.105882, 0.164706, 0.207843)
- WedgePart104.Size = Vector3.new(4, 3, 4)
- WedgePart104.Anchored = true
- WedgePart104.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart104.BrickColor = BrickColor.new("Black")
- WedgePart104.brickColor = BrickColor.new("Black")
- WedgePart104.FormFactor = Enum.FormFactor.Symmetric
- WedgePart104.formFactor = Enum.FormFactor.Symmetric
- WedgePart105.Parent = Model0
- WedgePart105.CFrame = CFrame.new(-134.128296, 3.40000343, 10.1893301, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- WedgePart105.Orientation = Vector3.new(-90, -180, 0)
- WedgePart105.Position = Vector3.new(-134.128296, 3.40000343, 10.1893301)
- WedgePart105.Rotation = Vector3.new(-90, 0, -180)
- WedgePart105.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart105.Size = Vector3.new(10, 2, 2)
- WedgePart105.Anchored = true
- WedgePart105.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart105.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart105.Material = Enum.Material.CorrodedMetal
- WedgePart105.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart105.FormFactor = Enum.FormFactor.Symmetric
- WedgePart105.formFactor = Enum.FormFactor.Symmetric
- WedgePart106.Parent = Model0
- WedgePart106.CFrame = CFrame.new(-141.12793, 4.00000191, 13.9893179, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- WedgePart106.Orientation = Vector3.new(0, 180, 0)
- WedgePart106.Position = Vector3.new(-141.12793, 4.00000191, 13.9893179)
- WedgePart106.Rotation = Vector3.new(-180, 0, -180)
- WedgePart106.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart106.Size = Vector3.new(4, 2, 6)
- WedgePart106.Anchored = true
- WedgePart106.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart106.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart106.Material = Enum.Material.CorrodedMetal
- WedgePart106.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart106.FormFactor = Enum.FormFactor.Symmetric
- WedgePart106.formFactor = Enum.FormFactor.Symmetric
- Part107.Parent = Model0
- Part107.CFrame = CFrame.new(-127.128174, 1.50001335, 6.98931789, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part107.Orientation = Vector3.new(0, 90, 0)
- Part107.Position = Vector3.new(-127.128174, 1.50001335, 6.98931789)
- Part107.Rotation = Vector3.new(0, 90, 0)
- Part107.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part107.Size = Vector3.new(12, 3, 4)
- Part107.Anchored = true
- Part107.BottomSurface = Enum.SurfaceType.Smooth
- Part107.BrickColor = BrickColor.new("Black")
- Part107.TopSurface = Enum.SurfaceType.Smooth
- Part107.brickColor = BrickColor.new("Black")
- Part107.FormFactor = Enum.FormFactor.Symmetric
- Part107.formFactor = Enum.FormFactor.Symmetric
- WedgePart108.Parent = Model0
- WedgePart108.CFrame = CFrame.new(-127.12793, 4.00000191, 13.9893179, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- WedgePart108.Orientation = Vector3.new(0, 180, 0)
- WedgePart108.Position = Vector3.new(-127.12793, 4.00000191, 13.9893179)
- WedgePart108.Rotation = Vector3.new(-180, 0, -180)
- WedgePart108.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- WedgePart108.Size = Vector3.new(4, 2, 6)
- WedgePart108.Anchored = true
- WedgePart108.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart108.BrickColor = BrickColor.new("Burnt Sienna")
- WedgePart108.Material = Enum.Material.CorrodedMetal
- WedgePart108.brickColor = BrickColor.new("Burnt Sienna")
- WedgePart108.FormFactor = Enum.FormFactor.Symmetric
- WedgePart108.formFactor = Enum.FormFactor.Symmetric
- WedgePart109.Parent = Model0
- WedgePart109.CFrame = CFrame.new(-127.12793, 1.50001335, 14.9893179, 1, 0, 1.77635684e-15, 0, -1, 2.98023224e-08, 8.8817842e-16, -2.98023224e-08, -1)
- WedgePart109.Orientation = Vector3.new(0, 180, 180)
- WedgePart109.Position = Vector3.new(-127.12793, 1.50001335, 14.9893179)
- WedgePart109.Rotation = Vector3.new(-180, 0, 0)
- WedgePart109.Color = Color3.new(0.105882, 0.164706, 0.207843)
- WedgePart109.Size = Vector3.new(4, 3, 4)
- WedgePart109.Anchored = true
- WedgePart109.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart109.BrickColor = BrickColor.new("Black")
- WedgePart109.brickColor = BrickColor.new("Black")
- WedgePart109.FormFactor = Enum.FormFactor.Symmetric
- WedgePart109.formFactor = Enum.FormFactor.Symmetric
- BoolValue110.Name = "Attack"
- BoolValue110.Parent = Model0
- BoolValue111.Name = "Attack"
- BoolValue111.Parent = Model0
- Script112.Name = "ChaseScript"
- Script112.Parent = Model0
- table.insert(cors,sandbox(Script112,function()
- wait(1)
- zombieParent = false
- while zombieParent == false do
- wait()
- if script.Parent.Name == "Mecha Tanker DX-5" then
- zombieParent = true
- end
- end
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- local waitTimer = 0
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 10000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Zombie")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- script.Parent.Target.Value = temp
- dist = (temp.Position - pos).magnitude
- if human.Health >= 1 then
- script.Parent.Range.Value = true
- else
- script.Parent.Range.Value = false
- end
- end
- end
- if dist < 75 then
- script.Parent.Attack.Value = true
- script.Parent.Zombie.WalkSpeed = 0.05
- else
- script.Parent.Attack.Value = false
- script.Parent.Zombie.WalkSpeed = 16
- end
- end
- end
- return torso
- end
- function Sit()
- if script.Parent.Zombie.Sit == true then
- script.Parent.Zombie.Jump = true
- print("Anti Seat Putter!!!")
- end
- end
- script.Parent.Zombie.Changed:connect(Sit)
- while true do
- wait()
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- rx = 0
- ry = 0
- rz = 0
- script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
- else
- script.Parent.Range.Value = false
- script.Parent.Attack.Value = false
- end
- end
- end))
- Script113.Name = "ChaseScript"
- Script113.Parent = Model0
- table.insert(cors,sandbox(Script113,function()
- wait(1)
- zombieParent = false
- while zombieParent == false do
- wait()
- if script.Parent.Name == "Mecha Tanker DX-5" or script.Parent.Name == "Giant Noob" then
- zombieParent = true
- end
- end
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- local waitTimer = 0
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) and (temp2.Name ~= "Noob") then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (human.Parent.Name ~= script.Parent.Owner.Value) and (human.Parent.Name ~= "Giant Noob") then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- script.Parent.Target.Value = temp
- dist = (temp.Position - pos).magnitude
- if human.Health >= 1 then
- script.Parent.Range.Value = true
- else
- script.Parent.Range.Value = false
- end
- end
- end
- if dist < 200 then
- script.Parent.Attack.Value = true
- script.Parent.Zombie.WalkSpeed = 10
- elseif dist > 200 then
- script.Parent.Attack.Value = false
- script.Parent.Zombie.WalkSpeed = 10
- elseif dist > 5 and dist < 50 then
- script.Parent.Attack.Value = false
- script.Parent.Zombie.WalkSpeed = 10
- end
- end
- end
- return torso
- end
- db = false
- function Hit(hit)
- if db == false then
- kk = script.Parent:FindFirstChild("ClassicPartiron")
- if script.Parent.Name == "Noob" then
- if hit.Parent == nil then return end
- local human = hit.Parent:FindFirstChild("Humanoid")
- if human ~= nil and human.Parent.Name ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "Noob" and human.Parent.Name ~= "Giant Noob" then
- human:TakeDamage(50)
- db = true
- wait(0.5)
- db = false
- end
- elseif script.Parent.Name == "Giant Noob" then
- if hit.Parent == nil then return end
- local human = hit.Parent:FindFirstChild("Humanoid")
- if human ~= nil and human.Parent.Name ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "Noob" and human.Parent.Name ~= "Giant Noob" then
- human:TakeDamage(100)
- db = true
- wait(0.25)
- db = false
- end
- elseif kk ~= nil and script.Parent.Name == "Noob" then
- if hit.Parent == nil then return end
- local human = hit.Parent:FindFirstChild("Humanoid")
- if human ~= nil and human.Parent.Name ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "Noob" and human.Parent.Name ~= "Giant Noob" then
- human:TakeDamage(300)
- db = true
- wait(1)
- db = false
- end
- end
- end
- end
- function Sit()
- if script.Parent.Zombie.Sit == true then
- wait(1)
- script.Parent.Zombie.Jump = true
- print("Anti Seat Putter!!!")
- end
- end
- script.Parent.Zombie.Changed:connect(Sit)
- for i,p in pairs(script.Parent:GetChildren()) do
- if p:IsA("Part") then
- p.Touched:connect(Hit)
- end
- end
- while true do
- wait()
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- rx = 0
- ry = 0
- rz = 0
- script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
- else
- script.Parent.Range.Value = false
- end
- if waitTimer > 0 then
- waitTimer = waitTimer - 1
- end
- jumper = math.random(1,2)
- if jumper == 2 and script.Parent.Torso.Position.Y <= 1 then
- script.Parent.Zombie.Jump = true
- end
- end
- end))
- Script114.Name = "Die"
- Script114.Parent = Model0
- table.insert(cors,sandbox(Script114,function()
- human = script.Parent.Zombie
- tool = script.Parent.Turret
- function Die()
- game.Workspace["Noob Core"].Defence.Turret1.Value = false
- if tool ~= nil then tool:remove() end
- wait(4.5)
- parts = script.Parent:children()
- for i = 1,5 do
- for i = 1,#parts do
- if parts[i].className == "Part" or parts[i].className == "WedgePart" or parts[i].className == "CornerWedgePart" then
- parts[i].Transparency = 1
- end
- end
- wait(0.05)
- for i = 1,#parts do
- if parts[i].className == "Part" or parts[i].className == "WedgePart" or parts[i].className == "CornerWedgePart" then
- parts[i].Transparency = 0
- end
- end
- wait(0.05)
- end
- script.Parent:remove()
- end
- human.Died:connect(Die)
- end))
- Script115.Name = "Die"
- Script115.Parent = Model0
- table.insert(cors,sandbox(Script115,function()
- human = script.Parent.Zombie
- tool = script.Parent.Pistol
- function Die()
- if tool ~= nil then tool:remove() end
- wait(4.5)
- parts = script.Parent:children()
- for i = 1,5 do
- for i = 1,#parts do
- if parts[i].className == "Part" and parts[i].Name ~= "Part" then
- parts[i].Transparency = 1
- end
- end
- wait(0.05)
- for i = 1,#parts do
- if parts[i].className == "Part" and parts[i].Name ~= "Part" then
- parts[i].Transparency = 0
- end
- end
- wait(0.05)
- end
- script.Parent:remove()
- end
- human.Died:connect(Die)
- end))
- Script116.Name = "FF"
- Script116.Parent = Model0
- table.insert(cors,sandbox(Script116,function()
- ff = Instance.new("ForceField")
- ff.Parent = script.Parent
- wait(5)
- ff:remove()
- end))
- Script116.Disabled = true
- Script117.Name = "FF"
- Script117.Parent = Model0
- table.insert(cors,sandbox(Script117,function()
- ff = Instance.new("ForceField")
- ff.Parent = script.Parent
- wait(5)
- ff:remove()
- end))
- Script117.Disabled = true
- Script118.Name = "Weld"
- Script118.Parent = Model0
- table.insert(cors,sandbox(Script118,function()
- function weld()
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(script.Parent)
- for _,v in pairs(parts) do
- v.Anchored = false
- end
- end
- weld()
- script:Remove()
- end))
- Humanoid119.Name = "Zombie"
- Humanoid119.Parent = Model0
- Humanoid119.Health = 1750
- Humanoid119.MaxHealth = 1750
- Humanoid119.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid119.Torso = Part62
- Humanoid119.WalkSpeed = 10
- Humanoid119.maxHealth = 1750
- StringValue120.Name = "Owner"
- StringValue120.Parent = Model0
- StringValue120.Value = "SuperEvilAzmil"
- BoolValue121.Name = "Range"
- BoolValue121.Parent = Model0
- Script122.Name = "Sound"
- Script122.Parent = Model0
- table.insert(cors,sandbox(Script122,function()
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("http://www.roblox.com/asset/?id=165772825")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("http://www.roblox.com/asset/?id=82229584")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Zombie")
- -- functions
- function onDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- end))
- BoolValue123.Name = "Range"
- BoolValue123.Parent = Model0
- ObjectValue124.Name = "Target"
- ObjectValue124.Parent = Model0
- ObjectValue125.Name = "Target"
- ObjectValue125.Parent = Model0
- Script126.Name = "HealthBarGUIScript"
- Script126.Parent = Model0
- table.insert(cors,sandbox(Script126,function()
- Humanoid = script.Parent.Zombie
- function GainCharge(Humanoid)
- Humanoid.Parent.Torso.Healthbar.Frame.Full.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
- if Humanoid.Health >= Humanoid.MaxHealth/2 then
- Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(0,200/255,0)
- elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then
- Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,200/255,0)
- elseif Humanoid.Health <= Humanoid.MaxHealth/4 then
- Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,0,0)
- end
- end
- Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement