· 7 years ago · Jan 19, 2019, 10:16 PM
1if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2local Player,game,owner = owner,game
3local RealPlayer = Player
4do
5 print("FE Compatibility code V2 by Mokiros")
6 local RealPlayer = RealPlayer
7 script.Parent = RealPlayer.Character
8
9 --Fake event to make stuff like Mouse.KeyDown work
10 local Disconnect_Function = function(this)
11 this[1].Functions[this[2]] = nil
12 end
13 local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
14 local FakeEvent_Metatable = {__index={
15 Connect = function(this,f)
16 local i = tostring(math.random(0,10000))
17 while this.Functions[i] do
18 i = tostring(math.random(0,10000))
19 end
20 this.Functions[i] = f
21 return setmetatable({this,i},Disconnect_Metatable)
22 end
23 }}
24 FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
25 local function fakeEvent()
26 return setmetatable({Functions={}},FakeEvent_Metatable)
27 end
28
29 --Creating fake input objects with fake variables
30 local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
31 FakeMouse.keyUp = FakeMouse.KeyUp
32 FakeMouse.keyDown = FakeMouse.KeyDown
33 local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
34 local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
35 CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
36 end}
37 --Merged 2 functions into one by checking amount of arguments
38 CAS.UnbindAction = CAS.BindAction
39
40 --This function will trigger the events that have been :Connect()'ed
41 local function TriggerEvent(self,ev,...)
42 for _,f in pairs(self[ev].Functions) do
43 f(...)
44 end
45 end
46 FakeMouse.TriggerEvent = TriggerEvent
47 UIS.TriggerEvent = TriggerEvent
48
49 --Client communication
50 local Event = Instance.new("RemoteEvent")
51 Event.Name = "UserInput_Event"
52 Event.OnServerEvent:Connect(function(plr,io)
53 if plr~=RealPlayer then return end
54 FakeMouse.Target = io.Target
55 FakeMouse.Hit = io.Hit
56 if not io.isMouse then
57 local b = io.UserInputState == Enum.UserInputState.Begin
58 if io.UserInputType == Enum.UserInputType.MouseButton1 then
59 return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
60 end
61 if io.UserInputType == Enum.UserInputType.MouseButton2 then
62 return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
63 end
64 for _,t in pairs(CAS.Actions) do
65 for _,k in pairs(t.Keys) do
66 if k==io.KeyCode then
67 t.Function(t.Name,io.UserInputState,io)
68 end
69 end
70 end
71 FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
72 UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
73 end
74 end)
75 Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
76 local Mouse = owner:GetMouse()
77 local UIS = game:GetService("UserInputService")
78 local input = function(io,RobloxHandled)
79 if RobloxHandled then return end
80 --Since InputObject is a client-side instance, we create and pass table instead
81 Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
82 end
83 UIS.InputBegan:Connect(input)
84 UIS.InputEnded:Connect(input)
85
86 local h,t
87 --Give the server mouse data every second frame, but only if the values changed
88 --If player is not moving their mouse, client won't fire events
89 local HB = game:GetService("RunService").Heartbeat
90 while true do
91 if h~=Mouse.Hit or t~=Mouse.Target then
92 h,t=Mouse.Hit,Mouse.Target
93 Event:FireServer({isMouse=true,Target=t,Hit=h})
94 end
95 --Wait 2 frames
96 for i=1,2 do
97 HB:Wait()
98 end
99 end]==],script)
100
101 ----Sandboxed game object that allows the usage of client-side methods and services
102 --Real game object
103 local RealGame = game
104
105 --Metatable for fake service
106 local FakeService_Metatable = {
107 __index = function(self,k)
108 local s = rawget(self,"_RealService")
109 if s then
110 return typeof(s[k])=="function"
111 and function(_,...)return s[k](s,...)end or s[k]
112 end
113 end,
114 __newindex = function(self,k,v)
115 local s = rawget(self,"_RealService")
116 if s then s[k]=v end
117 end
118 }
119 local function FakeService(t,RealService)
120 t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
121 return setmetatable(t,FakeService_Metatable)
122 end
123
124 --Fake game object
125 local FakeGame = {
126 GetService = function(self,s)
127 return rawget(self,s) or RealGame:GetService(s)
128 end,
129 Players = FakeService({
130 LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
131 },"Players"),
132 UserInputService = FakeService(UIS,"UserInputService"),
133 ContextActionService = FakeService(CAS,"ContextActionService"),
134 RunService = FakeService({
135 _btrs = {},
136 RenderStepped = RealGame:GetService("RunService").Heartbeat,
137 BindToRenderStep = function(self,name,_,fun)
138 self._btrs[name] = self.Heartbeat:Connect(fun)
139 end,
140 UnbindFromRenderStep = function(self,name)
141 self._btrs[name]:Disconnect()
142 end,
143 },"RunService")
144 }
145 rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
146 FakeGame.service = FakeGame.GetService
147 FakeService(FakeGame,game)
148 --Changing owner to fake player object to support owner:GetMouse()
149 game,owner = FakeGame,FakeGame.Players.LocalPlayer
150end
151--Skybox and something extra for the script
152
153function sandbox(var,func)
154 local env = getfenv(func)
155 local newenv = setmetatable({},{
156 __index = function(self,k)
157 if k=="script" then
158 return var
159 else
160 return env[k]
161 end
162 end,
163 })
164 setfenv(func,newenv)
165 return func
166end
167cors = {}
168mas = Instance.new("Model",game:GetService("Lighting"))
169Sky0 = Instance.new("Sky")
170Sky0.Parent = mas
171Sky0.MoonAngularSize = 0
172Sky0.SkyboxBk = "rbxassetid://1412333516"
173Sky0.SkyboxDn = "rbxassetid://1412332465"
174Sky0.SkyboxFt = "rbxassetid://1412320465"
175Sky0.SkyboxLf = "rbxassetid://1412308642"
176Sky0.SkyboxRt = "rbxassetid://1412326821"
177Sky0.SkyboxUp = "rbxassetid://1412327265"
178Sky0.SunAngularSize = 0
179for i,v in pairs(mas:GetChildren()) do
180 v.Parent = game:GetService("Lighting")
181 pcall(function() v:MakeJoints() end)
182end
183mas:Destroy()
184for i,v in pairs(cors) do
185 spawn(function()
186 pcall(v)
187 end)
188end
189
190function sandbox(var,func)
191 local env = getfenv(func)
192 local newenv = setmetatable({},{
193 __index = function(self,k)
194 if k=="script" then
195 return var
196 else
197 return env[k]
198 end
199 end,
200 })
201 setfenv(func,newenv)
202 return func
203end
204cors = {}
205mas = Instance.new("Model",game:GetService("Lighting"))
206Model0 = Instance.new("Model")
207Part1 = Instance.new("Part")
208ClickDetector2 = Instance.new("ClickDetector")
209Script3 = Instance.new("Script")
210SurfaceGui4 = Instance.new("SurfaceGui")
211Frame5 = Instance.new("Frame")
212ImageLabel6 = Instance.new("ImageLabel")
213Model7 = Instance.new("Model")
214Part8 = Instance.new("Part")
215Part9 = Instance.new("Part")
216Decal10 = Instance.new("Decal")
217Part11 = Instance.new("Part")
218Part12 = Instance.new("Part")
219Part13 = Instance.new("Part")
220Pants14 = Instance.new("Pants")
221Shirt15 = Instance.new("Shirt")
222Humanoid16 = Instance.new("Humanoid")
223Model17 = Instance.new("Model")
224UnionOperation18 = Instance.new("UnionOperation")
225Part19 = Instance.new("Part")
226CylinderMesh20 = Instance.new("CylinderMesh")
227Part21 = Instance.new("Part")
228CylinderMesh22 = Instance.new("CylinderMesh")
229Part23 = Instance.new("Part")
230Model0.Name = "Uniform Giver"
231Model0.Parent = mas
232Part1.Name = "ClickPart"
233Part1.Parent = Model0
234Part1.CFrame = CFrame.new(-0.777097464, 0.508056879, -9.8828125, -2.54809856e-06, -1.05798244e-06, -0.999998689, -8.35396349e-07, 0.999997914, -8.49366188e-07, 0.999998212, 8.23754817e-07, -2.22027302e-06)
235Part1.Orientation = Vector3.new(0, -90, 0)
236Part1.Position = Vector3.new(-0.777097464, 0.508056879, -9.8828125)
237Part1.Rotation = Vector3.new(159.069992, -89.909996, 157.449997)
238Part1.Transparency = 0.10000002384186
239Part1.Size = Vector3.new(4, 1, 3)
240Part1.Anchored = true
241Part1.BottomSurface = Enum.SurfaceType.Smooth
242Part1.TopSurface = Enum.SurfaceType.Smooth
243Part1.FormFactor = Enum.FormFactor.Symmetric
244Part1.formFactor = Enum.FormFactor.Symmetric
245ClickDetector2.Parent = Part1
246ClickDetector2.MaxActivationDistance = 10
247Script3.Parent = Part1
248table.insert(cors,sandbox(Script3,function()
249-- Ashes42827
250-- Uniform Giver
251-- Upgrade Time/Date
252-- 7/13/16
253-- Time 12:10
254
255-- Tags --
256
257local pantsId = script.Parent.Parent.Coathanger.Pants.PantsTemplate
258local shirtId = script.Parent.Parent.Coathanger.Shirt.ShirtTemplate
259local cPart = script.Parent
260local cDetector = script.Parent.ClickDetector
261
262
263
264
265-- Functions --
266
267local function playSoundLocal(sId,sParent)
268 local sound = Instance.new("Sound",sParent)
269 sound.SoundId = "http://www.roblox.com/asset/?id="..sId
270 sound:Play()
271 sound:Destroy()
272end
273
274local function onClicked(player)
275 print(player.Name.." clicked on Uniform Giver")
276
277 playSoundLocal(152206246,player) -- Declaring the sound ID and Parent
278
279
280
281
282 local foundShirt = player.Character:FindFirstChild("Shirt") -- Tries to find Shirt
283 if not foundShirt then -- if there is no shirt
284 print("No shirt found, creating for "..player.Name)
285 local newShirt = Instance.new("Shirt",player.Character)
286 newShirt.Name = "Shirt"
287 else if foundShirt then -- if there is a shirt
288 print("Shirt found, reconstructing for "..player.Name)
289 player.Character.Shirt:remove()
290 local newShirt = Instance.new("Shirt",player.Character)
291 newShirt.Name = "Shirt"
292 end
293 end
294
295
296
297
298 local foundPants = player.Character:FindFirstChild("Pants") -- Tries to find Pants
299 if not foundPants then -- if there are no pants
300 print("No pants found, creating for "..player.Name)
301 local newPants = Instance.new("Pants",player.Character)
302 newPants.Name = "Pants"
303 else if foundPants then -- if there are pants
304 print("Pants found, reconstructing for "..player.Name)
305 player.Character.Pants:remove()
306 local newPants = Instance.new("Pants",player.Character)
307 newPants.Name = "Pants"
308 end
309 end
310
311 player.Character.Shirt.ShirtTemplate = shirtId
312 player.Character.Pants.PantsTemplate = pantsId
313 end
314
315
316
317
318local function onHoverEnter(player)
319 cPart.Transparency = .1
320 cPart.BrickColor = BrickColor.White()
321end
322
323
324
325local function onHoverLeave(player)
326 cPart.BrickColor = BrickColor.Gray()
327 cPart.Transparency = .2
328end
329
330
331-- Binds --
332
333cDetector.MouseHoverEnter:connect(onHoverEnter)
334cDetector.MouseHoverLeave:connect(onHoverLeave)
335cDetector.MouseClick:connect(onClicked)
336
337
338
339
340end))
341SurfaceGui4.Parent = Part1
342Frame5.Parent = SurfaceGui4
343Frame5.Size = UDim2.new(1, 0, 1, 0)
344Frame5.BackgroundColor = BrickColor.new("Institutional white")
345Frame5.BackgroundColor3 = Color3.new(1, 1, 1)
346Frame5.BackgroundTransparency = 1
347Frame5.BorderSizePixel = 0
348ImageLabel6.Parent = Frame5
349ImageLabel6.Position = UDim2.new(0.5, -75, 0, 65)
350ImageLabel6.Size = UDim2.new(0, 200, 0, 500)
351ImageLabel6.BackgroundColor = BrickColor.new("Institutional white")
352ImageLabel6.BackgroundColor3 = Color3.new(1, 1, 1)
353ImageLabel6.BackgroundTransparency = 1
354ImageLabel6.Image = "http://www.roblox.com/asset/?id=43556891"
355Model7.Name = "Coathanger"
356Model7.Parent = Model0
357Part8.Name = "Right Arm"
358Part8.Parent = Model7
359Part8.CFrame = CFrame.new(-0.77710402, 4.00804615, -8.3828125, -0.101965621, 0.00575653464, -0.994769871, 0.0353812426, 0.999369383, 0.00215672329, 0.994156539, -0.034976352, -0.102104805)
360Part8.Orientation = Vector3.new(-0.119999997, -95.8600006, 2.02999997)
361Part8.Position = Vector3.new(-0.77710402, 4.00804615, -8.3828125)
362Part8.Rotation = Vector3.new(-178.789993, -84.1399994, -176.769989)
363Part8.Color = Color3.new(0.803922, 0.803922, 0.803922)
364Part8.Size = Vector3.new(1, 2, 1)
365Part8.Anchored = true
366Part8.BottomSurface = Enum.SurfaceType.Smooth
367Part8.BrickColor = BrickColor.new("Mid gray")
368Part8.TopSurface = Enum.SurfaceType.Smooth
369Part8.brickColor = BrickColor.new("Mid gray")
370Part8.FormFactor = Enum.FormFactor.Symmetric
371Part8.formFactor = Enum.FormFactor.Symmetric
372Part9.Name = "Torso"
373Part9.Parent = Model7
374Part9.CFrame = CFrame.new(-0.777100384, 4.00804758, -9.88280964, -0.0781793669, -2.91615725e-05, -0.996937871, -3.34065408e-06, 0.999997973, -2.87741423e-05, 0.996937275, 1.07614323e-06, -0.078178972)
375Part9.Orientation = Vector3.new(0, -94.4799957, 0)
376Part9.Position = Vector3.new(-0.777100384, 4.00804758, -9.88280964)
377Part9.Rotation = Vector3.new(179.979996, -85.5199966, 179.979996)
378Part9.Color = Color3.new(0.803922, 0.803922, 0.803922)
379Part9.Size = Vector3.new(2, 2, 1)
380Part9.Anchored = true
381Part9.BottomSurface = Enum.SurfaceType.Smooth
382Part9.BrickColor = BrickColor.new("Mid gray")
383Part9.LeftParamA = 0
384Part9.LeftParamB = 0
385Part9.RightParamA = 0
386Part9.RightParamB = 0
387Part9.TopSurface = Enum.SurfaceType.Smooth
388Part9.brickColor = BrickColor.new("Mid gray")
389Part9.FormFactor = Enum.FormFactor.Symmetric
390Part9.formFactor = Enum.FormFactor.Symmetric
391Decal10.Name = "roblox"
392Decal10.Parent = Part9
393Part11.Name = "Left Arm"
394Part11.Parent = Model7
395Part11.CFrame = CFrame.new(-0.575436354, 4.02855873, -11.3320246, -0.050310567, -0.119424045, -0.991566241, -0.102479167, 0.988200128, -0.113818794, 0.993459702, 0.0958887413, -0.0619550198)
396Part11.Orientation = Vector3.new(6.53999996, -93.5799942, -5.92000008)
397Part11.Position = Vector3.new(-0.575436354, 4.02855873, -11.3320246)
398Part11.Rotation = Vector3.new(118.559998, -82.5499954, 112.839996)
399Part11.Color = Color3.new(0.803922, 0.803922, 0.803922)
400Part11.Size = Vector3.new(1, 2, 1)
401Part11.Anchored = true
402Part11.BottomSurface = Enum.SurfaceType.Smooth
403Part11.BrickColor = BrickColor.new("Mid gray")
404Part11.TopSurface = Enum.SurfaceType.Smooth
405Part11.brickColor = BrickColor.new("Mid gray")
406Part11.FormFactor = Enum.FormFactor.Symmetric
407Part11.formFactor = Enum.FormFactor.Symmetric
408Part12.Name = "Left Leg"
409Part12.Parent = Model7
410Part12.CFrame = CFrame.new(-0.777094543, 2.00903082, -10.3828049, -0.038446635, -0.0389980674, -0.998497963, -0.00150057673, 0.99923718, -0.0389689654, 0.999257743, 9.22009349e-08, -0.0384755582)
411Part12.Orientation = Vector3.new(2.23000002, -92.2099991, -0.0899999961)
412Part12.Position = Vector3.new(-0.777094543, 2.00903082, -10.3828049)
413Part12.Rotation = Vector3.new(134.62999, -86.8600006, 134.589996)
414Part12.Color = Color3.new(0.803922, 0.803922, 0.803922)
415Part12.Size = Vector3.new(1, 2, 1)
416Part12.Anchored = true
417Part12.BottomSurface = Enum.SurfaceType.Smooth
418Part12.BrickColor = BrickColor.new("Mid gray")
419Part12.TopSurface = Enum.SurfaceType.Smooth
420Part12.brickColor = BrickColor.new("Mid gray")
421Part12.FormFactor = Enum.FormFactor.Symmetric
422Part12.formFactor = Enum.FormFactor.Symmetric
423Part13.Name = "Right Leg"
424Part13.Parent = Model7
425Part13.CFrame = CFrame.new(-0.900146008, 2.02367902, -9.27343845, 0.109835453, 0.0563831106, -0.992347777, 0.0702560097, 0.995449662, 0.0643357188, 0.991461396, -0.0767849088, 0.105375007)
426Part13.Orientation = Vector3.new(-3.68999982, -83.9399948, 4.03999996)
427Part13.Position = Vector3.new(-0.900146008, 2.02367902, -9.27343845)
428Part13.Rotation = Vector3.new(-31.4099998, -82.909996, -27.1700001)
429Part13.Color = Color3.new(0.803922, 0.803922, 0.803922)
430Part13.Size = Vector3.new(1, 2, 1)
431Part13.Anchored = true
432Part13.BottomSurface = Enum.SurfaceType.Smooth
433Part13.BrickColor = BrickColor.new("Mid gray")
434Part13.TopSurface = Enum.SurfaceType.Smooth
435Part13.brickColor = BrickColor.new("Mid gray")
436Part13.FormFactor = Enum.FormFactor.Symmetric
437Part13.formFactor = Enum.FormFactor.Symmetric
438Pants14.Name = "Pants"
439Pants14.Parent = Model7
440Pants14.PantsTemplate = "rbxassetid://1060483173"
441Shirt15.Name = "Shirt"
442Shirt15.Parent = Model7
443Shirt15.ShirtTemplate = "rbxassetid://1077337646"
444Humanoid16.Parent = Model7
445Humanoid16.Health = 0
446Humanoid16.LeftLeg = Part12
447Humanoid16.MaxHealth = 0
448Humanoid16.RightLeg = Part13
449Humanoid16.Torso = Part9
450Humanoid16.WalkSpeed = 0
451Humanoid16.maxHealth = 0
452Model17.Name = "Stand"
453Model17.Parent = Model0
454UnionOperation18.Parent = Model17
455UnionOperation18.CFrame = CFrame.new(-2.77709532, 2.51000309, -9.88281536, -2.54809856e-06, -1.05798244e-06, -0.999998689, -8.35396349e-07, 0.999997914, -8.49366188e-07, 0.999998212, 8.23754817e-07, -2.22027302e-06)
456UnionOperation18.Orientation = Vector3.new(0, -90, 0)
457UnionOperation18.Position = Vector3.new(-2.77709532, 2.51000309, -9.88281536)
458UnionOperation18.Rotation = Vector3.new(159.069992, -89.909996, 157.449997)
459UnionOperation18.Color = Color3.new(0.639216, 0.635294, 0.647059)
460UnionOperation18.Size = Vector3.new(4.00000048, 5.00000095, 1)
461UnionOperation18.Anchored = true
462UnionOperation18.BrickColor = BrickColor.new("Medium stone grey")
463UnionOperation18.Material = Enum.Material.Metal
464UnionOperation18.brickColor = BrickColor.new("Medium stone grey")
465Part19.Parent = Model17
466Part19.CFrame = CFrame.new(-1.67699432, 4.50902176, -10.2812481, -2.54809856e-06, -0.999998689, 1.05798244e-06, -8.35396349e-07, -8.49366188e-07, -0.999997914, 0.999998212, -2.22027302e-06, -8.23754817e-07)
467Part19.Orientation = Vector3.new(89.8799973, 127.899994, -135.479996)
468Part19.Position = Vector3.new(-1.67699432, 4.50902176, -10.2812481)
469Part19.Rotation = Vector3.new(90, 0, 90)
470Part19.Size = Vector3.new(1.20000005, 2, 1)
471Part19.Anchored = true
472Part19.BottomSurface = Enum.SurfaceType.Smooth
473Part19.Material = Enum.Material.DiamondPlate
474Part19.TopSurface = Enum.SurfaceType.Smooth
475Part19.FormFactor = Enum.FormFactor.Symmetric
476Part19.formFactor = Enum.FormFactor.Symmetric
477CylinderMesh20.Parent = Part19
478CylinderMesh20.Scale = Vector3.new(1, 1, 0.200000003)
479Part21.Parent = Model17
480Part21.CFrame = CFrame.new(-1.67699707, 4.50902176, -9.48046875, -2.54809856e-06, -0.999998689, 1.05798244e-06, -8.35396349e-07, -8.49366188e-07, -0.999997914, 0.999998212, -2.22027302e-06, -8.23754817e-07)
481Part21.Orientation = Vector3.new(89.8799973, 127.899994, -135.479996)
482Part21.Position = Vector3.new(-1.67699707, 4.50902176, -9.48046875)
483Part21.Rotation = Vector3.new(90, 0, 90)
484Part21.Size = Vector3.new(1.20000005, 2, 1)
485Part21.Anchored = true
486Part21.BottomSurface = Enum.SurfaceType.Smooth
487Part21.Material = Enum.Material.DiamondPlate
488Part21.TopSurface = Enum.SurfaceType.Smooth
489Part21.FormFactor = Enum.FormFactor.Symmetric
490Part21.formFactor = Enum.FormFactor.Symmetric
491CylinderMesh22.Parent = Part21
492CylinderMesh22.Scale = Vector3.new(1, 1, 0.200000003)
493Part23.Parent = Model17
494Part23.CFrame = CFrame.new(-1.17699862, 4.50902224, -9.88281059, -2.54809856e-06, -1.05798244e-06, -0.999998689, -8.35396349e-07, 0.999997914, -8.49366188e-07, 0.999998212, 8.23754817e-07, -2.22027302e-06)
495Part23.Orientation = Vector3.new(0, -90, 0)
496Part23.Position = Vector3.new(-1.17699862, 4.50902224, -9.88281059)
497Part23.Rotation = Vector3.new(159.069992, -89.909996, 157.449997)
498Part23.Size = Vector3.new(1.20000005, 0.600000024, 0.600000024)
499Part23.Anchored = true
500Part23.BottomSurface = Enum.SurfaceType.Smooth
501Part23.TopSurface = Enum.SurfaceType.Smooth
502Part23.FormFactor = Enum.FormFactor.Custom
503Part23.formFactor = Enum.FormFactor.Custom
504for i,v in pairs(mas:GetChildren()) do
505 v.Parent = workspace
506 pcall(function() v:MakeJoints() end)
507end
508mas:Destroy()
509for i,v in pairs(cors) do
510 spawn(function()
511 pcall(v)
512 end)
513end
514
515--Weapons for the script
516
517function sandbox(var,func)
518 local env = getfenv(func)
519 local newenv = setmetatable({},{
520 __index = function(self,k)
521 if k=="script" then
522 return var
523 else
524 return env[k]
525 end
526 end,
527 })
528 setfenv(func,newenv)
529 return func
530end
531cors = {}
532mas = Instance.new("Model",game:GetService("Lighting"))
533Tool0 = Instance.new("Tool")
534LocalScript1 = Instance.new("LocalScript")
535SpecialMesh2 = Instance.new("SpecialMesh")
536LocalScript3 = Instance.new("LocalScript")
537NumberValue4 = Instance.new("NumberValue")
538Script5 = Instance.new("Script")
539NumberValue6 = Instance.new("NumberValue")
540Script7 = Instance.new("Script")
541NumberValue8 = Instance.new("NumberValue")
542LocalScript9 = Instance.new("LocalScript")
543NumberValue10 = Instance.new("NumberValue")
544Part11 = Instance.new("Part")
545CylinderMesh12 = Instance.new("CylinderMesh")
546Part13 = Instance.new("Part")
547CylinderMesh14 = Instance.new("CylinderMesh")
548Part15 = Instance.new("Part")
549CylinderMesh16 = Instance.new("CylinderMesh")
550Part17 = Instance.new("Part")
551CylinderMesh18 = Instance.new("CylinderMesh")
552Part19 = Instance.new("Part")
553CylinderMesh20 = Instance.new("CylinderMesh")
554Part21 = Instance.new("Part")
555BlockMesh22 = Instance.new("BlockMesh")
556Sound23 = Instance.new("Sound")
557Sound24 = Instance.new("Sound")
558Sound25 = Instance.new("Sound")
559Sound26 = Instance.new("Sound")
560Part27 = Instance.new("Part")
561BlockMesh28 = Instance.new("BlockMesh")
562Part29 = Instance.new("Part")
563BlockMesh30 = Instance.new("BlockMesh")
564Part31 = Instance.new("Part")
565SpecialMesh32 = Instance.new("SpecialMesh")
566Part33 = Instance.new("Part")
567SpecialMesh34 = Instance.new("SpecialMesh")
568Part35 = Instance.new("Part")
569BlockMesh36 = Instance.new("BlockMesh")
570Part37 = Instance.new("Part")
571BlockMesh38 = Instance.new("BlockMesh")
572Part39 = Instance.new("Part")
573SpecialMesh40 = Instance.new("SpecialMesh")
574Part41 = Instance.new("Part")
575SpecialMesh42 = Instance.new("SpecialMesh")
576Part43 = Instance.new("Part")
577SpecialMesh44 = Instance.new("SpecialMesh")
578Part45 = Instance.new("Part")
579SpecialMesh46 = Instance.new("SpecialMesh")
580Part47 = Instance.new("Part")
581BlockMesh48 = Instance.new("BlockMesh")
582Part49 = Instance.new("Part")
583CylinderMesh50 = Instance.new("CylinderMesh")
584Part51 = Instance.new("Part")
585CylinderMesh52 = Instance.new("CylinderMesh")
586Part53 = Instance.new("Part")
587BlockMesh54 = Instance.new("BlockMesh")
588Part55 = Instance.new("Part")
589CylinderMesh56 = Instance.new("CylinderMesh")
590Part57 = Instance.new("Part")
591BlockMesh58 = Instance.new("BlockMesh")
592Part59 = Instance.new("Part")
593BlockMesh60 = Instance.new("BlockMesh")
594Part61 = Instance.new("Part")
595BlockMesh62 = Instance.new("BlockMesh")
596Part63 = Instance.new("Part")
597CylinderMesh64 = Instance.new("CylinderMesh")
598Part65 = Instance.new("Part")
599CylinderMesh66 = Instance.new("CylinderMesh")
600Part67 = Instance.new("Part")
601SpecialMesh68 = Instance.new("SpecialMesh")
602Part69 = Instance.new("Part")
603BlockMesh70 = Instance.new("BlockMesh")
604Part71 = Instance.new("Part")
605SpecialMesh72 = Instance.new("SpecialMesh")
606Part73 = Instance.new("Part")
607BlockMesh74 = Instance.new("BlockMesh")
608Part75 = Instance.new("Part")
609BlockMesh76 = Instance.new("BlockMesh")
610Part77 = Instance.new("Part")
611BlockMesh78 = Instance.new("BlockMesh")
612Part79 = Instance.new("Part")
613BlockMesh80 = Instance.new("BlockMesh")
614Part81 = Instance.new("Part")
615CylinderMesh82 = Instance.new("CylinderMesh")
616Part83 = Instance.new("Part")
617BlockMesh84 = Instance.new("BlockMesh")
618Part85 = Instance.new("Part")
619BlockMesh86 = Instance.new("BlockMesh")
620Part87 = Instance.new("Part")
621CylinderMesh88 = Instance.new("CylinderMesh")
622Part89 = Instance.new("Part")
623CylinderMesh90 = Instance.new("CylinderMesh")
624Part91 = Instance.new("Part")
625BlockMesh92 = Instance.new("BlockMesh")
626Part93 = Instance.new("Part")
627BlockMesh94 = Instance.new("BlockMesh")
628Part95 = Instance.new("Part")
629BlockMesh96 = Instance.new("BlockMesh")
630Part97 = Instance.new("Part")
631CylinderMesh98 = Instance.new("CylinderMesh")
632Part99 = Instance.new("Part")
633SpecialMesh100 = Instance.new("SpecialMesh")
634Part101 = Instance.new("Part")
635CylinderMesh102 = Instance.new("CylinderMesh")
636Part103 = Instance.new("Part")
637SpecialMesh104 = Instance.new("SpecialMesh")
638Part105 = Instance.new("Part")
639CylinderMesh106 = Instance.new("CylinderMesh")
640Part107 = Instance.new("Part")
641BlockMesh108 = Instance.new("BlockMesh")
642Part109 = Instance.new("Part")
643BlockMesh110 = Instance.new("BlockMesh")
644Part111 = Instance.new("Part")
645CylinderMesh112 = Instance.new("CylinderMesh")
646Part113 = Instance.new("Part")
647BlockMesh114 = Instance.new("BlockMesh")
648Part115 = Instance.new("Part")
649BlockMesh116 = Instance.new("BlockMesh")
650Part117 = Instance.new("Part")
651BlockMesh118 = Instance.new("BlockMesh")
652Part119 = Instance.new("Part")
653BlockMesh120 = Instance.new("BlockMesh")
654Part121 = Instance.new("Part")
655BlockMesh122 = Instance.new("BlockMesh")
656Part123 = Instance.new("Part")
657BlockMesh124 = Instance.new("BlockMesh")
658Part125 = Instance.new("Part")
659BlockMesh126 = Instance.new("BlockMesh")
660Part127 = Instance.new("Part")
661BlockMesh128 = Instance.new("BlockMesh")
662Part129 = Instance.new("Part")
663BlockMesh130 = Instance.new("BlockMesh")
664Part131 = Instance.new("Part")
665BlockMesh132 = Instance.new("BlockMesh")
666Part133 = Instance.new("Part")
667BlockMesh134 = Instance.new("BlockMesh")
668Part135 = Instance.new("Part")
669BlockMesh136 = Instance.new("BlockMesh")
670Part137 = Instance.new("Part")
671BlockMesh138 = Instance.new("BlockMesh")
672Part139 = Instance.new("Part")
673BlockMesh140 = Instance.new("BlockMesh")
674Part141 = Instance.new("Part")
675BlockMesh142 = Instance.new("BlockMesh")
676Part143 = Instance.new("Part")
677CylinderMesh144 = Instance.new("CylinderMesh")
678Part145 = Instance.new("Part")
679BlockMesh146 = Instance.new("BlockMesh")
680Part147 = Instance.new("Part")
681CylinderMesh148 = Instance.new("CylinderMesh")
682Part149 = Instance.new("Part")
683BlockMesh150 = Instance.new("BlockMesh")
684Part151 = Instance.new("Part")
685BlockMesh152 = Instance.new("BlockMesh")
686Part153 = Instance.new("Part")
687BlockMesh154 = Instance.new("BlockMesh")
688Part155 = Instance.new("Part")
689BlockMesh156 = Instance.new("BlockMesh")
690Part157 = Instance.new("Part")
691SpecialMesh158 = Instance.new("SpecialMesh")
692Part159 = Instance.new("Part")
693CylinderMesh160 = Instance.new("CylinderMesh")
694Part161 = Instance.new("Part")
695BlockMesh162 = Instance.new("BlockMesh")
696Part163 = Instance.new("Part")
697BlockMesh164 = Instance.new("BlockMesh")
698Part165 = Instance.new("Part")
699BlockMesh166 = Instance.new("BlockMesh")
700Part167 = Instance.new("Part")
701SpecialMesh168 = Instance.new("SpecialMesh")
702Part169 = Instance.new("Part")
703SpecialMesh170 = Instance.new("SpecialMesh")
704Part171 = Instance.new("Part")
705SpecialMesh172 = Instance.new("SpecialMesh")
706Part173 = Instance.new("Part")
707BlockMesh174 = Instance.new("BlockMesh")
708Part175 = Instance.new("Part")
709BlockMesh176 = Instance.new("BlockMesh")
710Part177 = Instance.new("Part")
711BlockMesh178 = Instance.new("BlockMesh")
712Part179 = Instance.new("Part")
713BlockMesh180 = Instance.new("BlockMesh")
714Part181 = Instance.new("Part")
715BlockMesh182 = Instance.new("BlockMesh")
716Part183 = Instance.new("Part")
717BlockMesh184 = Instance.new("BlockMesh")
718Part185 = Instance.new("Part")
719BlockMesh186 = Instance.new("BlockMesh")
720Part187 = Instance.new("Part")
721BlockMesh188 = Instance.new("BlockMesh")
722Part189 = Instance.new("Part")
723BlockMesh190 = Instance.new("BlockMesh")
724Part191 = Instance.new("Part")
725BlockMesh192 = Instance.new("BlockMesh")
726Part193 = Instance.new("Part")
727BlockMesh194 = Instance.new("BlockMesh")
728Part195 = Instance.new("Part")
729BlockMesh196 = Instance.new("BlockMesh")
730Part197 = Instance.new("Part")
731BlockMesh198 = Instance.new("BlockMesh")
732Part199 = Instance.new("Part")
733BlockMesh200 = Instance.new("BlockMesh")
734Part201 = Instance.new("Part")
735BlockMesh202 = Instance.new("BlockMesh")
736Part203 = Instance.new("Part")
737SpecialMesh204 = Instance.new("SpecialMesh")
738Part205 = Instance.new("Part")
739SpecialMesh206 = Instance.new("SpecialMesh")
740Part207 = Instance.new("Part")
741BlockMesh208 = Instance.new("BlockMesh")
742Part209 = Instance.new("Part")
743SpecialMesh210 = Instance.new("SpecialMesh")
744Part211 = Instance.new("Part")
745SpecialMesh212 = Instance.new("SpecialMesh")
746Part213 = Instance.new("Part")
747CylinderMesh214 = Instance.new("CylinderMesh")
748Part215 = Instance.new("Part")
749SpecialMesh216 = Instance.new("SpecialMesh")
750LocalScript217 = Instance.new("LocalScript")
751Tool0.Name = "Crossbow"
752Tool0.Parent = mas
753Tool0.Grip = CFrame.new(0, -0.300000012, 0.100000001, 0.957936287, -0, 0.286980897, 0, 1, 0, -0.286980897, 0, 0.957936287)
754Tool0.GripForward = Vector3.new(-0.286980897, -0, -0.957936287)
755Tool0.GripPos = Vector3.new(0, -0.300000012, 0.100000001)
756Tool0.GripRight = Vector3.new(0.957936287, 0, -0.286980897)
757LocalScript1.Name = "Shooter"
758LocalScript1.Parent = Tool0
759table.insert(cors,sandbox(LocalScript1,function()
760Tool = script.Parent
761
762local arms = nil
763local torso = nil
764local weld33 = nil -- right arm
765local weld55 = nil -- left arm
766local welds = {}
767local reloading = false
768local firing = false
769
770function ReloadSequence()
771weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-88), math.rad(-15), 0)
772wait(.02)
773weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-86), math.rad(-15), 0)
774wait(.02)
775weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-84), math.rad(-15), 0)
776wait(.02)
777weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-82), math.rad(-15), 0)
778wait(.02)
779weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-80), math.rad(-15), 0)
780wait(.02)
781weld55.C1 = CFrame.new(-0.35, 1.7, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), -0.025, math.rad(-90))
782wait(.02)
783weld55.C1 = CFrame.new(-0.35, 2, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), -0.05, math.rad(-90))
784wait(.48)
785weld55.C1 = CFrame.new(-0.35, 0.8, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.07, math.rad(-90))
786Tool.A1.Transparency = 0
787Tool.A2.Transparency = 0
788Tool.B1.Transparency = 1
789Tool.B2.Transparency = 1
790Tool.B3.Transparency = 1
791Tool.Handle.S1:play()
792Tool.Handle.S2:play()
793wait(.32)
794weld55.C1 = CFrame.new(-0.35, 0.9, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.08, math.rad(-90))
795wait(.02)
796weld55.C1 = CFrame.new(-0.35, 1.1, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.09, math.rad(-90))
797wait(.02)
798weld55.C1 = CFrame.new(-0.35, 1.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.1, math.rad(-90))
799wait(.02)
800weld55.C1 = CFrame.new(-0.35, 1.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.11, math.rad(-90))
801wait(.32)
802weld55.C1 = CFrame.new(-0.35, 1.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.07, math.rad(-90))
803Tool.A3.Transparency = 0
804Tool.Handle.S3:play()
805wait(.02)
806weld55.C1 = CFrame.new(-0.35, 1.6, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.07, math.rad(-90))
807wait(.1)
808weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-80), math.rad(-15), 0)
809weld55.C1 = CFrame.new(-0.35, 1.6, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.07, math.rad(-90))
810wait(.04)
811weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(-15), 0)
812weld55.C1 = CFrame.new(-0.35, 1.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.035, math.rad(-90))
813wait(.04)
814weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
815weld55.C1 = CFrame.new(-0.35, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
816end
817
818function Reload()
819 if script.Parent.Ammo.Value < script.Parent.MaxAmmo.Value and reloading == false and script.Parent.StoredAmmo.Value >= 1 then
820 reloading = true
821 script.Parent.Ammo.Value = 0
822 ReloadSequence()
823 if script.Parent.StoredAmmo.Value >= script.Parent.MaxAmmo.Value then
824 script.Parent.Ammo.Value = script.Parent.MaxAmmo.Value
825 script.Parent.StoredAmmo.Value = script.Parent.StoredAmmo.Value - script.Parent.MaxAmmo.Value
826 script.Parent.Recoil.Value = 5
827 elseif script.Parent.StoredAmmo.Value < script.Parent.MaxAmmo.Value and script.Parent.StoredAmmo.Value >= 1 then
828 script.Parent.Ammo.Value = script.Parent.StoredAmmo.Value
829 script.Parent.StoredAmmo.Value = 0
830 script.Parent.Recoil.Value = 5
831 end
832 reloading = false
833 end
834end
835
836function Equip(mouse)
837wait(0.01)
838arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
839torso = Tool.Parent:FindFirstChild("Torso")
840if arms ~= nil and torso ~= nil then
841local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
842if sh ~= nil then
843local yes = true
844if yes then
845yes = false
846sh[1].Part1 = nil
847sh[2].Part1 = nil
848falsearm1 = arms[1]:clone()
849local mesh1 = Instance.new("BlockMesh")
850mesh1.Scale = Vector3.new(.9,.9,.9)
851mesh1.Parent = falsearm1
852local armweld1 = Instance.new("Weld")
853falsearm1.BrickColor = BrickColor.new(26)
854falsearm1.Parent = Tool
855armweld1.Parent = falsearm1
856armweld1.Part0 = falsearm1
857armweld1.Part1 = arms[1]
858falsearm2 = arms[2]:clone()
859local mesh2 = Instance.new("BlockMesh")
860mesh2.Scale = Vector3.new(.9,.9,.9)
861mesh2.Parent = falsearm2
862local armweld2 = Instance.new("Weld")
863falsearm2.BrickColor = BrickColor.new(26)
864falsearm2.Parent = Tool
865armweld2.Parent = falsearm2
866armweld2.Part0 = falsearm2
867armweld2.Part1 = arms[2]
868local weld1 = Instance.new("Weld") -- left arm
869weld55 = weld1
870weld1.Part0 = torso
871weld1.Parent = torso
872weld1.Part1 = arms[1]
873weld1.C1 = CFrame.new(-0.35, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
874welds[1] = weld1
875local weld2 = Instance.new("Weld") -- right arm
876weld33 = weld2
877weld2.Part0 = torso
878weld2.Parent = torso
879weld2.Part1 = arms[2]
880weld2.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
881welds[2] = weld2
882end
883else
884print("sh")
885end
886else
887print("arms")
888end
889end
890
891local legs = nil
892local torso2 = nil
893local welds2 = {}
894local bodyforce = nil
895
896function Unequip(mouse)
897if arms ~= nil and torso ~= nil then
898local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
899if sh ~= nil then
900local yes = true
901if yes then
902yes = false
903sh[1].Part1 = arms[1]
904sh[2].Part1 = arms[2]
905welds[1].Parent = nil
906welds[2].Parent = nil
907falsearm1:remove()
908falsearm2:remove()
909end
910else
911print("sh")
912end
913else
914print("arms")
915end
916end
917
918function fire(v)
919
920 Tool.Handle.Fire:play()
921
922
923 local vCharacter = Tool.Parent
924 local vPlayer = game.Players:playerFromCharacter(vCharacter)
925
926 local missile = Instance.new("Part")
927
928
929
930 local spawnPos = vCharacter.PrimaryPart.Position
931
932
933
934 spawnPos = spawnPos + (v * 8)
935
936 missile.Position = spawnPos
937 missile.Size = Vector3.new(1,1,1)
938 missile.Velocity = v * 500
939 missile.BrickColor = BrickColor.new(26)
940 missile.Shape = 0
941 missile.BottomSurface = 0
942 missile.TopSurface = 0
943 missile.Name = "Arrow"
944 missile.Elasticity = 0
945 missile.Reflectance = 0
946 missile.Friction = .9
947 missile.CanCollide = false
948
949 local force = Instance.new("BodyForce")
950 force.force = Vector3.new(0,missile:getMass() * 196,0)
951 force.Parent = missile
952
953 local new_script = script.Parent.Arrow:clone()
954 new_script.Disabled = false
955 new_script.Parent = missile
956
957 local new_Mesh = script.Parent.Mesh:clone()
958 new_Mesh.Parent = missile
959
960 local creator_tag = Instance.new("ObjectValue")
961 creator_tag.Value = vPlayer
962 creator_tag.Name = "creator"
963 creator_tag.Parent = missile
964
965
966
967 missile.Parent = game.Workspace
968 game:GetService("Debris"):addItem(shell,6)
969
970 weld33.C1 = CFrame.new(-0.75, -0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
971 weld55.C1 = CFrame.new(-0.35, 1.3, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
972 Tool.A1.Transparency = 1
973 Tool.A2.Transparency = 1
974 Tool.B1.Transparency = 0
975 Tool.B2.Transparency = 0
976 Tool.B3.Transparency = 0
977 Tool.A3.Transparency = 1
978 wait(0.015)
979 weld33.C1 = CFrame.new(-0.75, -0.45, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
980 weld55.C1 = CFrame.new(-0.35, 1.35, 0.575) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
981 wait(0.015)
982 weld33.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
983 weld55.C1 = CFrame.new(-0.35, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
984end
985
986function KeyDownFunctions(key)
987 if key == "r" then
988 Reload()
989 end
990end
991
992Tool.Enabled = true
993function onActivated()
994
995 if not Tool.Enabled then
996 return
997 end
998
999 Tool.Enabled = false
1000
1001 local character = Tool.Parent;
1002 local humanoid = character.Humanoid
1003 if humanoid == nil then
1004 print("Humanoid not found")
1005 return
1006 end
1007 local ammo = script.Parent.Ammo
1008 local maxammo = script.Parent.MaxAmmo
1009 firing = true
1010 while firing == true do
1011 wait()
1012 if reloading == false and humanoid.Health >= 1 then
1013 if ammo.Value >= 1 then
1014 ammo.Value = ammo.Value - 1
1015 local targetPos = humanoid.TargetPoint
1016 local lookAt = (targetPos - character.Head.Position).unit
1017 if script.Parent.Recoil.Value < 10 then
1018 script.Parent.Recoil.Value = script.Parent.Recoil.Value + 1
1019 end
1020 fire(lookAt)
1021 else
1022 Reload()
1023 break
1024 end
1025 elseif reloading == false and humanoid.Health < 1 then
1026 Tool:remove()
1027 end
1028 end
1029 Tool.Enabled = true
1030end
1031
1032function nofiar(mouse)
1033firing = false
1034end
1035
1036function onEquippedLocal(mouse)
1037
1038 if mouse == nil then
1039 print("Mouse not found")
1040 return
1041 end
1042
1043 mouse.Icon = "http://www.roblox.com/asset/?id=45867155"
1044 mouse.Button1Down:connect(function() onButton1Down(mouse) end)
1045 mouse.Button1Up:connect(function() nofiar(mouse) end)
1046 mouse.KeyDown:connect(KeyDownFunctions)
1047 while true do
1048 wait()
1049 end
1050end
1051
1052
1053Tool.Equipped:connect(onEquippedLocal)
1054
1055
1056script.Parent.Activated:connect(onActivated)
1057Tool.Equipped:connect(Equip)
1058Tool.Unequipped:connect(Unequip)
1059
1060end))
1061SpecialMesh2.Parent = Tool0
1062SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=15887356"
1063SpecialMesh2.Scale = Vector3.new(0.521739125, 0.521739125, 1.26086962)
1064SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=15886781"
1065SpecialMesh2.MeshType = Enum.MeshType.FileMesh
1066LocalScript3.Name = "BackupWeld"
1067LocalScript3.Parent = Tool0
1068table.insert(cors,sandbox(LocalScript3,function()
1069function Weld(x,y)
1070 local W = Instance.new("Weld")
1071 W.Part0 = x
1072 W.Part1 = y
1073 local CJ = CFrame.new(x.Position)
1074 local C0 = x.CFrame:inverse()*CJ
1075 local C1 = y.CFrame:inverse()*CJ
1076 W.C0 = C0
1077 W.C1 = C1
1078 W.Parent = x
1079end
1080
1081function Get(A)
1082 if A.className == "Part" then
1083 Weld(script.Parent.Handle, A)
1084 A.Anchored = false
1085 else
1086 local C = A:GetChildren()
1087 for i=1, #C do
1088 Get(C[i])
1089 end
1090 end
1091end
1092
1093function Finale()
1094 Get(script.Parent)
1095end
1096
1097script.Parent.Equipped:connect(Finale)
1098script.Parent.Unequipped:connect(Finale)
1099Finale()
1100end))
1101NumberValue4.Name = "Recoil"
1102NumberValue4.Parent = Tool0
1103NumberValue4.Value = 2
1104Script5.Parent = NumberValue4
1105table.insert(cors,sandbox(Script5,function()
1106while true do
1107wait(.2)
1108if script.Parent.Value > 3 then
1109script.Parent.Value = script.Parent.Value - 1
1110end
1111end
1112
1113end))
1114NumberValue6.Name = "MaxAmmo"
1115NumberValue6.Parent = Tool0
1116NumberValue6.Value = 1
1117Script7.Name = "Arrow"
1118Script7.Parent = Tool0
1119table.insert(cors,sandbox(Script7,function()
1120debris = game:GetService("Debris")
1121bolt = script.Parent
1122damage = 101
1123
1124debris:AddItem(bolt, 20)
1125
1126function stick(hit)
1127 -- joint myself to the thing i hit
1128
1129 local weld = Instance.new("Weld")
1130
1131 weld.Part0 = bolt
1132 weld.Part1 = hit
1133
1134
1135 local HitPos = bolt.Position + (bolt.Velocity.unit * 3) -- + (arrow.CFrame.lookVector * 1)
1136
1137 local CJ = CFrame.new(HitPos)
1138 local C0 = bolt.CFrame:inverse() *CJ
1139 local C1 = hit.CFrame:inverse() * CJ
1140
1141 weld.C0 = C0
1142 weld.C1 = C1
1143
1144 weld.Parent = bolt
1145
1146end
1147
1148function onTouched(hit)
1149
1150 bolt.BodyGyro:remove()
1151 bolt.BodyForce:remove()
1152
1153 stick(hit)
1154
1155 bolt.HitSound:Play()
1156
1157 local humanoid = hit.Parent:findFirstChild("Humanoid")
1158
1159
1160 if humanoid ~= nil then
1161 tagHumanoid(humanoid)
1162 humanoid.Health = humanoid.Health - damage
1163 end
1164 connection:disconnect()
1165end
1166
1167function tagHumanoid(humanoid)
1168 -- todo: make tag expire
1169 local tag = bolt:findFirstChild("creator")
1170 if tag ~= nil then
1171 local new_tag = tag:clone()
1172 new_tag.Parent = humanoid
1173 debris:AddItem(new_tag,1)
1174 end
1175end
1176
1177
1178
1179connection = bolt.Touched:connect(onTouched)
1180
1181for i=1,100 do
1182 wait(.1 * i)
1183 if (bolt:FindFirstChild("BodyGyro") ~= nil) then
1184 bolt.BodyGyro.cframe = CFrame.new(Vector3.new(0,0,0), -bolt.Velocity.unit)
1185 end
1186end
1187
1188
1189
1190end))
1191Script7.Disabled = true
1192NumberValue8.Name = "Ammo"
1193NumberValue8.Parent = Tool0
1194NumberValue8.Value = 1
1195LocalScript9.Name = "Crouch"
1196LocalScript9.Parent = Tool0
1197table.insert(cors,sandbox(LocalScript9,function()
1198on = 0
1199Tool = script.Parent
1200welds = {}
1201sh = {}
1202arms = nil
1203torso = nil
1204f = nil
1205function Crouch(ison)
1206if arms == nil and torso == nil then
1207arms = {Tool.Parent:FindFirstChild("Left Leg"), Tool.Parent:FindFirstChild("Right Leg")}
1208torso = Tool.Parent:FindFirstChild("Torso")
1209end
1210if arms ~= nil and torso ~= nil then
1211sh = {torso:FindFirstChild("Left Hip"), torso:FindFirstChild("Right Hip")}
1212if sh ~= nil then
1213local yes = true
1214if yes then
1215yes = false
1216if ison == 1 then
1217sh[1].Part1 = nil
1218sh[2].Part1 = nil
1219local weld1 = Instance.new("Weld")
1220weld1.Part0 = torso
1221weld1.Parent = torso
1222weld1.Part1 = arms[1]
1223weld1.C1 = CFrame.new(-0.5, 0.75, 1)
1224arms[1].Name = "LDave"
1225arms[1].CanCollide = true
1226welds[1] = weld1
1227-------------------------------------------
1228local weld2 = Instance.new("Weld")
1229weld2.Part0 = torso
1230weld2.Parent = torso
1231weld2.Part1 = arms[2]
1232weld2.C1 = CFrame.new(0.5,0.495,1.25) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
1233arms[2].Name = "RDave"
1234arms[2].CanCollide = true
1235welds[2] = weld2
1236---------------------------------
1237local force = Instance.new("BodyForce")
1238force.Parent = torso
1239f = force
1240wait(0.01)
1241elseif ison == 0 then
1242if arms then
1243sh[1].Part1 = arms[1]
1244sh[2].Part1 = arms[2]
1245f.Parent = nil
1246arms[2].Name = "Right Leg"
1247arms[1].Name = "Left Leg"
1248welds[1].Parent = nil
1249welds[2].Parent = nil
1250end
1251end
1252--
1253end
1254else
1255print("sh")
1256end
1257else
1258print("arms")
1259end
1260end
1261function Key(key)
1262if key then
1263key = string.lower(key)
1264if (key=="c") then
1265if on == 1 then
1266on = 0
1267elseif on == 0 then
1268on = 1
1269end
1270Crouch(on)
1271end
1272end
1273end
1274function Equip(mouse)
1275mouse.KeyDown:connect(Key)
1276end
1277script.Parent.Equipped:connect(Equip)
1278
1279
1280end))
1281NumberValue10.Name = "StoredAmmo"
1282NumberValue10.Parent = Tool0
1283NumberValue10.Value = inf
1284Part11.Name = "A1"
1285Part11.Parent = Tool0
1286Part11.CFrame = CFrame.new(4, 1.12241495, -60.5, 0, 1, -0, 1, 0, -0, 0, 0, -1)
1287Part11.Orientation = Vector3.new(0, -180, 90)
1288Part11.Position = Vector3.new(4, 1.12241495, -60.5)
1289Part11.Rotation = Vector3.new(180, 0, -90)
1290Part11.Color = Color3.new(0.470588, 0.564706, 0.509804)
1291Part11.Size = Vector3.new(1, 2, 1)
1292Part11.Anchored = true
1293Part11.BottomSurface = Enum.SurfaceType.Smooth
1294Part11.BrickColor = BrickColor.new("Sand green")
1295Part11.CanCollide = false
1296Part11.TopSurface = Enum.SurfaceType.Smooth
1297Part11.brickColor = BrickColor.new("Sand green")
1298Part11.FormFactor = Enum.FormFactor.Symmetric
1299Part11.formFactor = Enum.FormFactor.Symmetric
1300CylinderMesh12.Parent = Part11
1301CylinderMesh12.Scale = Vector3.new(0.0173913054, 1.15217388, 0.0173913054)
1302Part13.Name = "A2"
1303Part13.Parent = Tool0
1304Part13.CFrame = CFrame.new(3.52652001, 1.08595502, -59.5709229, -0.031668812, -0.588285923, -0.808032274, 0.997564197, 0.0316686854, -0.0621533617, 0.0621532947, -0.808032095, 0.58585)
1305Part13.Orientation = Vector3.new(3.55999994, -54.0599976, 88.1800003)
1306Part13.Position = Vector3.new(3.52652001, 1.08595502, -59.5709229)
1307Part13.Rotation = Vector3.new(6.05999994, -53.8999977, 93.0799942)
1308Part13.Color = Color3.new(0.470588, 0.564706, 0.509804)
1309Part13.Size = Vector3.new(1, 2, 1)
1310Part13.Anchored = true
1311Part13.BottomSurface = Enum.SurfaceType.Smooth
1312Part13.BrickColor = BrickColor.new("Sand green")
1313Part13.CanCollide = false
1314Part13.TopSurface = Enum.SurfaceType.Smooth
1315Part13.brickColor = BrickColor.new("Sand green")
1316Part13.FormFactor = Enum.FormFactor.Symmetric
1317Part13.formFactor = Enum.FormFactor.Symmetric
1318CylinderMesh14.Parent = Part13
1319CylinderMesh14.Scale = Vector3.new(0.0173913054, 1.15217388, 0.0173913054)
1320Part15.Name = "B1"
1321Part15.Parent = Tool0
1322Part15.CFrame = CFrame.new(4.89727783, 1.11783695, -60.0151367, -5.58793545e-08, 0.453991681, -0.891004562, 1.00000048, 8.94069672e-08, -4.39459207e-08, 2.30967999e-07, -0.891004264, -0.453991085)
1323Part15.Orientation = Vector3.new(0, -117, 90)
1324Part15.Position = Vector3.new(4.89727783, 1.11783695, -60.0151367)
1325Part15.Rotation = Vector3.new(180, -63, -90)
1326Part15.Color = Color3.new(0.470588, 0.564706, 0.509804)
1327Part15.Transparency = 1
1328Part15.Size = Vector3.new(1, 1, 1)
1329Part15.Anchored = true
1330Part15.BottomSurface = Enum.SurfaceType.Smooth
1331Part15.BrickColor = BrickColor.new("Sand green")
1332Part15.CanCollide = false
1333Part15.TopSurface = Enum.SurfaceType.Smooth
1334Part15.brickColor = BrickColor.new("Sand green")
1335Part15.FormFactor = Enum.FormFactor.Symmetric
1336Part15.formFactor = Enum.FormFactor.Symmetric
1337CylinderMesh16.Parent = Part15
1338CylinderMesh16.Scale = Vector3.new(0.0173913054, 0.913043499, 0.0173913054)
1339Part17.Name = "B2"
1340Part17.Parent = Tool0
1341Part17.CFrame = CFrame.new(4.44439697, 1.08300996, -59.1265259, -0.0316686742, 0.452885807, -0.891004562, 0.997564554, 0.0697561055, -4.40514896e-08, 0.0621530898, -0.88883388, -0.453991085)
1342Part17.Orientation = Vector3.new(0, -117, 86)
1343Part17.Position = Vector3.new(4.44439697, 1.08300996, -59.1265259)
1344Part17.Rotation = Vector3.new(180, -63, -94)
1345Part17.Color = Color3.new(0.470588, 0.564706, 0.509804)
1346Part17.Transparency = 1
1347Part17.Size = Vector3.new(1, 1, 1)
1348Part17.Anchored = true
1349Part17.BottomSurface = Enum.SurfaceType.Smooth
1350Part17.BrickColor = BrickColor.new("Sand green")
1351Part17.CanCollide = false
1352Part17.TopSurface = Enum.SurfaceType.Smooth
1353Part17.brickColor = BrickColor.new("Sand green")
1354Part17.FormFactor = Enum.FormFactor.Symmetric
1355Part17.formFactor = Enum.FormFactor.Symmetric
1356CylinderMesh18.Parent = Part17
1357CylinderMesh18.Scale = Vector3.new(0.0173913054, 0.913043499, 0.0173913054)
1358Part19.Name = "B3"
1359Part19.Parent = Tool0
1360Part19.CFrame = CFrame.new(4.67016602, 1.11690795, -59.569397, -0.0158441029, 0.453715056, -0.891004562, 0.999391377, 0.0348995291, -4.39723209e-08, 0.0310957693, -0.890461564, -0.453991085)
1361Part19.Orientation = Vector3.new(0, -117, 88)
1362Part19.Position = Vector3.new(4.67016602, 1.11690795, -59.569397)
1363Part19.Rotation = Vector3.new(180, -63, -92)
1364Part19.Color = Color3.new(0.470588, 0.564706, 0.509804)
1365Part19.Transparency = 1
1366Part19.Size = Vector3.new(1, 1, 1)
1367Part19.Anchored = true
1368Part19.BottomSurface = Enum.SurfaceType.Smooth
1369Part19.BrickColor = BrickColor.new("Sand green")
1370Part19.CanCollide = false
1371Part19.TopSurface = Enum.SurfaceType.Smooth
1372Part19.brickColor = BrickColor.new("Sand green")
1373Part19.FormFactor = Enum.FormFactor.Symmetric
1374Part19.formFactor = Enum.FormFactor.Symmetric
1375CylinderMesh20.Parent = Part19
1376CylinderMesh20.Scale = Vector3.new(0.0173913054, 0.0869565234, 0.0173913054)
1377Part21.Name = "Handle"
1378Part21.Parent = Tool0
1379Part21.CFrame = CFrame.new(2.6741941, 0.806084991, -60.5937538, -0.453715056, -0.0158442315, -0.891004562, -0.0348997228, 0.999391377, -8.8911861e-08, 0.890461504, 0.031095922, -0.453991085)
1380Part21.Orientation = Vector3.new(0, -117, -2)
1381Part21.Position = Vector3.new(2.6741941, 0.806084991, -60.5937538)
1382Part21.Rotation = Vector3.new(180, -63, 178)
1383Part21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1384Part21.Size = Vector3.new(1, 0.400000006, 1)
1385Part21.Anchored = true
1386Part21.BottomSurface = Enum.SurfaceType.Smooth
1387Part21.BrickColor = BrickColor.new("Really black")
1388Part21.CanCollide = false
1389Part21.Reflectance = 0.10000000149012
1390Part21.TopSurface = Enum.SurfaceType.Smooth
1391Part21.brickColor = BrickColor.new("Really black")
1392Part21.FormFactor = Enum.FormFactor.Plate
1393Part21.formFactor = Enum.FormFactor.Plate
1394BlockMesh22.Parent = Part21
1395BlockMesh22.Scale = Vector3.new(0.0434782617, 0.130434781, 0.0434782617)
1396Sound23.Name = "Fire"
1397Sound23.Parent = Part21
1398Sound23.Pitch = 0.89999997615814
1399Sound23.PlaybackSpeed = 0.89999997615814
1400Sound23.SoundId = "http://www.roblox.com/asset/?id=16211041"
1401Sound23.Volume = 1
1402Sound24.Name = "S1"
1403Sound24.Parent = Part21
1404Sound24.Pitch = 0.5
1405Sound24.PlayOnRemove = true
1406Sound24.PlaybackSpeed = 0.5
1407Sound24.SoundId = "http://www.roblox.com/asset/?id=2697295"
1408Sound24.Volume = 1
1409Sound25.Name = "S2"
1410Sound25.Parent = Part21
1411Sound25.Pitch = 0.40000000596046
1412Sound25.PlayOnRemove = true
1413Sound25.PlaybackSpeed = 0.40000000596046
1414Sound25.SoundId = "http://www.roblox.com/asset/?id=2697295"
1415Sound25.Volume = 1
1416Sound26.Name = "S3"
1417Sound26.Parent = Part21
1418Sound26.PlayOnRemove = true
1419Sound26.SoundId = "http://roblox.com/asset/?id=10209636"
1420Sound26.Volume = 1
1421Part27.Parent = Tool0
1422Part27.CFrame = CFrame.new(5.21438599, 1.000453, -59.2966919, -0.453715056, -0.0158441626, -0.891004562, -0.0348995738, 0.999391377, -8.89118539e-08, 0.890461504, 0.0310957916, -0.453991085)
1423Part27.Orientation = Vector3.new(0, -117, -2)
1424Part27.Position = Vector3.new(5.21438599, 1.000453, -59.2966919)
1425Part27.Rotation = Vector3.new(180, -63, 178)
1426Part27.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1427Part27.Size = Vector3.new(1, 0.400000006, 1)
1428Part27.Anchored = true
1429Part27.BottomSurface = Enum.SurfaceType.Smooth
1430Part27.BrickColor = BrickColor.new("Really black")
1431Part27.CanCollide = false
1432Part27.Reflectance = 0.10000000149012
1433Part27.TopSurface = Enum.SurfaceType.Smooth
1434Part27.brickColor = BrickColor.new("Really black")
1435Part27.FormFactor = Enum.FormFactor.Plate
1436Part27.formFactor = Enum.FormFactor.Plate
1437BlockMesh28.Parent = Part27
1438BlockMesh28.Scale = Vector3.new(0.173913047, 0.304347813, 0.391304344)
1439Part29.Parent = Tool0
1440Part29.CFrame = CFrame.new(4.07360792, 0.870104015, -59.8830566, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1441Part29.Orientation = Vector3.new(-2, 153, 0)
1442Part29.Position = Vector3.new(4.07360792, 0.870104015, -59.8830566)
1443Part29.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1444Part29.Color = Color3.new(0.843137, 0.772549, 0.603922)
1445Part29.Size = Vector3.new(1, 1, 1)
1446Part29.Anchored = true
1447Part29.BottomSurface = Enum.SurfaceType.Smooth
1448Part29.BrickColor = BrickColor.new("Brick yellow")
1449Part29.CanCollide = false
1450Part29.TopSurface = Enum.SurfaceType.Smooth
1451Part29.brickColor = BrickColor.new("Brick yellow")
1452Part29.FormFactor = Enum.FormFactor.Symmetric
1453Part29.formFactor = Enum.FormFactor.Symmetric
1454BlockMesh30.Parent = Part29
1455BlockMesh30.Scale = Vector3.new(0.782608688, 0.130434781, 0.260869563)
1456Part31.Parent = Tool0
1457Part31.CFrame = CFrame.new(5.24050903, 1.07618904, -59.0606689, 0.0158440769, -0.453714907, -0.891004443, -0.999391317, -0.0348995663, 3.07101011e-09, -0.0310958214, 0.890461206, -0.453991085)
1458Part31.Orientation = Vector3.new(0, -117, -92)
1459Part31.Position = Vector3.new(5.24050903, 1.07618904, -59.0606689)
1460Part31.Rotation = Vector3.new(-180, -63, 88)
1461Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1462Part31.Size = Vector3.new(1, 1, 1)
1463Part31.Anchored = true
1464Part31.BottomSurface = Enum.SurfaceType.Smooth
1465Part31.BrickColor = BrickColor.new("Really black")
1466Part31.CanCollide = false
1467Part31.Reflectance = 0.10000000149012
1468Part31.TopSurface = Enum.SurfaceType.Smooth
1469Part31.brickColor = BrickColor.new("Really black")
1470Part31.FormFactor = Enum.FormFactor.Symmetric
1471Part31.formFactor = Enum.FormFactor.Symmetric
1472SpecialMesh32.Parent = Part31
1473SpecialMesh32.Scale = Vector3.new(0.0434782617, 0.217391297, 0.130434781)
1474SpecialMesh32.MeshType = Enum.MeshType.Wedge
1475Part33.Parent = Tool0
1476Part33.CFrame = CFrame.new(5.41805983, 1.08984494, -59.4091187, -0.0158443004, 0.453714073, -0.891003609, 0.999390304, 0.034899503, -2.63204811e-07, 0.0310956798, -0.890459359, -0.453990608)
1477Part33.Orientation = Vector3.new(0, -117, 88)
1478Part33.Position = Vector3.new(5.41805983, 1.08984494, -59.4091187)
1479Part33.Rotation = Vector3.new(180, -63, -92)
1480Part33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1481Part33.Size = Vector3.new(1, 1, 1)
1482Part33.Anchored = true
1483Part33.BottomSurface = Enum.SurfaceType.Smooth
1484Part33.BrickColor = BrickColor.new("Really black")
1485Part33.CanCollide = false
1486Part33.Reflectance = 0.10000000149012
1487Part33.TopSurface = Enum.SurfaceType.Smooth
1488Part33.brickColor = BrickColor.new("Really black")
1489Part33.FormFactor = Enum.FormFactor.Symmetric
1490Part33.formFactor = Enum.FormFactor.Symmetric
1491SpecialMesh34.Parent = Part33
1492SpecialMesh34.Scale = Vector3.new(0.0434782617, 0.217391297, 0.130434781)
1493SpecialMesh34.MeshType = Enum.MeshType.Wedge
1494Part35.Parent = Tool0
1495Part35.CFrame = CFrame.new(4.324615, 0.922244012, -59.7531128, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1496Part35.Orientation = Vector3.new(-2, 153, 0)
1497Part35.Position = Vector3.new(4.324615, 0.922244012, -59.7531128)
1498Part35.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1499Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1500Part35.Size = Vector3.new(2, 1, 1)
1501Part35.Anchored = true
1502Part35.BottomSurface = Enum.SurfaceType.Smooth
1503Part35.BrickColor = BrickColor.new("Really black")
1504Part35.CanCollide = false
1505Part35.Reflectance = 0.10000000149012
1506Part35.TopSurface = Enum.SurfaceType.Smooth
1507Part35.brickColor = BrickColor.new("Really black")
1508Part35.FormFactor = Enum.FormFactor.Symmetric
1509Part35.formFactor = Enum.FormFactor.Symmetric
1510BlockMesh36.Parent = Part35
1511BlockMesh36.Scale = Vector3.new(1.19565213, 0.0434782617, 0.172173917)
1512Part37.Parent = Tool0
1513Part37.CFrame = CFrame.new(4.5431819, 1.00792205, -58.6203003, 0.978074431, -0.207646117, 0.0158441253, 0.00903273653, -0.0337103345, -0.999391377, 0.208053246, 0.977621436, -0.0310957581)
1514Part37.Orientation = Vector3.new(88, 153, 165)
1515Part37.Position = Vector3.new(4.5431819, 1.00792205, -58.6203003)
1516Part37.Rotation = Vector3.new(91.7799988, 0.909999967, 11.9899998)
1517Part37.Color = Color3.new(0.843137, 0.772549, 0.603922)
1518Part37.Size = Vector3.new(1, 0.400000006, 1)
1519Part37.Anchored = true
1520Part37.BottomSurface = Enum.SurfaceType.Smooth
1521Part37.BrickColor = BrickColor.new("Brick yellow")
1522Part37.CanCollide = false
1523Part37.TopSurface = Enum.SurfaceType.Smooth
1524Part37.brickColor = BrickColor.new("Brick yellow")
1525Part37.FormFactor = Enum.FormFactor.Plate
1526Part37.formFactor = Enum.FormFactor.Plate
1527BlockMesh38.Parent = Part37
1528BlockMesh38.Scale = Vector3.new(0.739130437, 0.0869565234, 0.0434782617)
1529Part39.Parent = Tool0
1530Part39.CFrame = CFrame.new(5.06622314, 1.07618904, -59.1495361, -0.0158441626, -0.453715086, 0.891004562, 0.999391377, -0.0348995663, 8.72858266e-08, 0.0310957916, 0.890461445, 0.453991085)
1531Part39.Orientation = Vector3.new(0, 63, 92)
1532Part39.Position = Vector3.new(5.06622314, 1.07618904, -59.1495361)
1533Part39.Rotation = Vector3.new(0, 63, 92)
1534Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1535Part39.Size = Vector3.new(1, 1, 1)
1536Part39.Anchored = true
1537Part39.BottomSurface = Enum.SurfaceType.Smooth
1538Part39.BrickColor = BrickColor.new("Really black")
1539Part39.CanCollide = false
1540Part39.Reflectance = 0.10000000149012
1541Part39.TopSurface = Enum.SurfaceType.Smooth
1542Part39.brickColor = BrickColor.new("Really black")
1543Part39.FormFactor = Enum.FormFactor.Symmetric
1544Part39.formFactor = Enum.FormFactor.Symmetric
1545SpecialMesh40.Parent = Part39
1546SpecialMesh40.Scale = Vector3.new(0.0434782617, 0.217391297, 0.260869563)
1547SpecialMesh40.MeshType = Enum.MeshType.Wedge
1548Part41.Parent = Tool0
1549Part41.CFrame = CFrame.new(5.2437129, 1.08984494, -59.4979248, 0.0158442147, 0.453714818, 0.891003847, -0.999391079, 0.0348996893, 8.44940402e-08, -0.0310958996, -0.890461266, 0.453990787)
1550Part41.Orientation = Vector3.new(0, 63, -88)
1551Part41.Position = Vector3.new(5.2437129, 1.08984494, -59.4979248)
1552Part41.Rotation = Vector3.new(0, 63, -88)
1553Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1554Part41.Size = Vector3.new(1, 1, 1)
1555Part41.Anchored = true
1556Part41.BottomSurface = Enum.SurfaceType.Smooth
1557Part41.BrickColor = BrickColor.new("Really black")
1558Part41.CanCollide = false
1559Part41.Reflectance = 0.10000000149012
1560Part41.TopSurface = Enum.SurfaceType.Smooth
1561Part41.brickColor = BrickColor.new("Really black")
1562Part41.FormFactor = Enum.FormFactor.Symmetric
1563Part41.formFactor = Enum.FormFactor.Symmetric
1564SpecialMesh42.Parent = Part41
1565SpecialMesh42.Scale = Vector3.new(0.0434782617, 0.217391297, 0.260869563)
1566SpecialMesh42.MeshType = Enum.MeshType.Wedge
1567Part43.Parent = Tool0
1568Part43.CFrame = CFrame.new(4.14196777, 0.918864012, -60.0172119, -0.891004324, 0.0158441961, -0.453714997, -8.72948718e-08, -0.999391317, -0.0348996446, -0.453990877, -0.0310958605, 0.890461385)
1569Part43.Orientation = Vector3.new(2, -27, -180)
1570Part43.Position = Vector3.new(4.14196777, 0.918864012, -60.0172119)
1571Part43.Rotation = Vector3.new(2.24000001, -26.9799995, -178.979996)
1572Part43.Color = Color3.new(0.843137, 0.772549, 0.603922)
1573Part43.Size = Vector3.new(1, 1, 1)
1574Part43.Anchored = true
1575Part43.BottomSurface = Enum.SurfaceType.Smooth
1576Part43.BrickColor = BrickColor.new("Brick yellow")
1577Part43.CanCollide = false
1578Part43.TopSurface = Enum.SurfaceType.Smooth
1579Part43.brickColor = BrickColor.new("Brick yellow")
1580Part43.FormFactor = Enum.FormFactor.Symmetric
1581Part43.formFactor = Enum.FormFactor.Symmetric
1582SpecialMesh44.Parent = Part43
1583SpecialMesh44.Scale = Vector3.new(0.782608688, 0.0434782617, 0.0434782617)
1584SpecialMesh44.MeshType = Enum.MeshType.Wedge
1585Part45.Parent = Tool0
1586Part45.CFrame = CFrame.new(4.14337111, 0.831956983, -60.0198975, 0.891004562, -0.0158440117, -0.453715056, 6.58824106e-10, 0.999391317, -0.034899421, 0.453991085, 0.031095691, 0.890461564)
1587Part45.Orientation = Vector3.new(2, -27, 0)
1588Part45.Position = Vector3.new(4.14337111, 0.831956983, -60.0198975)
1589Part45.Rotation = Vector3.new(2.24000001, -26.9799995, 1.01999998)
1590Part45.Color = Color3.new(0.843137, 0.772549, 0.603922)
1591Part45.Size = Vector3.new(1, 1, 1)
1592Part45.Anchored = true
1593Part45.BottomSurface = Enum.SurfaceType.Smooth
1594Part45.BrickColor = BrickColor.new("Brick yellow")
1595Part45.CanCollide = false
1596Part45.TopSurface = Enum.SurfaceType.Smooth
1597Part45.brickColor = BrickColor.new("Brick yellow")
1598Part45.FormFactor = Enum.FormFactor.Symmetric
1599Part45.formFactor = Enum.FormFactor.Symmetric
1600SpecialMesh46.Parent = Part45
1601SpecialMesh46.Scale = Vector3.new(0.782608688, 0.0434782617, 0.0434782617)
1602SpecialMesh46.MeshType = Enum.MeshType.Wedge
1603Part47.Parent = Tool0
1604Part47.CFrame = CFrame.new(2.42364502, 1.09605503, -60.7149048, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1605Part47.Orientation = Vector3.new(-2, 153, 0)
1606Part47.Position = Vector3.new(2.42364502, 1.09605503, -60.7149048)
1607Part47.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1608Part47.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1609Part47.Size = Vector3.new(1, 0.400000006, 1)
1610Part47.Anchored = true
1611Part47.BottomSurface = Enum.SurfaceType.Smooth
1612Part47.BrickColor = BrickColor.new("Really black")
1613Part47.CanCollide = false
1614Part47.Reflectance = 0.10000000149012
1615Part47.TopSurface = Enum.SurfaceType.Smooth
1616Part47.brickColor = BrickColor.new("Really black")
1617Part47.FormFactor = Enum.FormFactor.Plate
1618Part47.formFactor = Enum.FormFactor.Plate
1619BlockMesh48.Parent = Part47
1620BlockMesh48.Scale = Vector3.new(0.130434781, 0.0869565234, 0.0869565234)
1621Part49.Parent = Tool0
1622Part49.CFrame = CFrame.new(2.76696801, 1.43063605, -60.5268555, 0.891004622, 0.0158427507, 0.453715086, -1.49379355e-06, -0.999391377, 0.0348995663, 0.453991026, -0.0310965106, -0.890461445)
1623Part49.Orientation = Vector3.new(-2, 153, -180)
1624Part49.Position = Vector3.new(2.76696801, 1.43063605, -60.5268555)
1625Part49.Rotation = Vector3.new(-177.759995, 26.9799995, -1.01999998)
1626Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1627Part49.Size = Vector3.new(1, 1, 1)
1628Part49.Anchored = true
1629Part49.BottomSurface = Enum.SurfaceType.Smooth
1630Part49.BrickColor = BrickColor.new("Really black")
1631Part49.CanCollide = false
1632Part49.Reflectance = 0.10000000149012
1633Part49.TopSurface = Enum.SurfaceType.Smooth
1634Part49.brickColor = BrickColor.new("Really black")
1635Part49.FormFactor = Enum.FormFactor.Symmetric
1636Part49.formFactor = Enum.FormFactor.Symmetric
1637CylinderMesh50.Parent = Part49
1638CylinderMesh50.Scale = Vector3.new(0.117391296, 0.173913047, 0.117391296)
1639Part51.Parent = Tool0
1640Part51.CFrame = CFrame.new(2.76803589, 1.36545801, -60.5288696, 0.891004682, -0.453714997, 0.0158441402, 9.26546875e-08, -0.0348995142, -0.999391377, 0.453990936, 0.890461683, -0.0310957506)
1641Part51.Orientation = Vector3.new(88, 153, 180)
1642Part51.Position = Vector3.new(2.76803589, 1.36545801, -60.5288696)
1643Part51.Rotation = Vector3.new(91.7799988, 0.909999967, 26.9899998)
1644Part51.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1645Part51.Size = Vector3.new(1, 1, 1)
1646Part51.Anchored = true
1647Part51.BottomSurface = Enum.SurfaceType.Smooth
1648Part51.BrickColor = BrickColor.new("Really black")
1649Part51.CanCollide = false
1650Part51.Reflectance = 0.10000000149012
1651Part51.TopSurface = Enum.SurfaceType.Smooth
1652Part51.brickColor = BrickColor.new("Really black")
1653Part51.FormFactor = Enum.FormFactor.Symmetric
1654Part51.formFactor = Enum.FormFactor.Symmetric
1655CylinderMesh52.Parent = Part51
1656CylinderMesh52.Scale = Vector3.new(0.117391296, 0.304347813, 0.117391296)
1657Part53.Parent = Tool0
1658Part53.CFrame = CFrame.new(5.05773878, 1.01520002, -58.592041, -0.950860262, -0.30921039, 0.0158441588, -0.0246777646, 0.0246776231, -0.999391377, 0.308631241, -0.950671613, -0.0310957395)
1659Part53.Orientation = Vector3.new(88, 153, -45)
1660Part53.Position = Vector3.new(5.05773878, 1.01520002, -58.592041)
1661Part53.Rotation = Vector3.new(91.7799988, 0.909999967, 161.98999)
1662Part53.Color = Color3.new(0.843137, 0.772549, 0.603922)
1663Part53.Size = Vector3.new(1, 0.400000006, 1)
1664Part53.Anchored = true
1665Part53.BottomSurface = Enum.SurfaceType.Smooth
1666Part53.BrickColor = BrickColor.new("Brick yellow")
1667Part53.CanCollide = false
1668Part53.TopSurface = Enum.SurfaceType.Smooth
1669Part53.brickColor = BrickColor.new("Brick yellow")
1670Part53.FormFactor = Enum.FormFactor.Plate
1671Part53.formFactor = Enum.FormFactor.Plate
1672BlockMesh54.Parent = Part53
1673BlockMesh54.Scale = Vector3.new(0.347826093, 0.0869565234, 0.0434782617)
1674Part55.Parent = Tool0
1675Part55.CFrame = CFrame.new(2.55496192, 1.36546504, -60.6374512, -0.453715026, -0.891004562, 0.0158441402, -0.0348995216, -8.89118539e-08, -0.999391377, 0.890461564, -0.453991085, -0.0310957506)
1676Part55.Orientation = Vector3.new(88, 153, -90)
1677Part55.Position = Vector3.new(2.55496192, 1.36546504, -60.6374512)
1678Part55.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
1679Part55.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1680Part55.Size = Vector3.new(1, 1, 1)
1681Part55.Anchored = true
1682Part55.BottomSurface = Enum.SurfaceType.Smooth
1683Part55.BrickColor = BrickColor.new("Really black")
1684Part55.CanCollide = false
1685Part55.Reflectance = 0.10000000149012
1686Part55.TopSurface = Enum.SurfaceType.Smooth
1687Part55.brickColor = BrickColor.new("Really black")
1688Part55.FormFactor = Enum.FormFactor.Symmetric
1689Part55.formFactor = Enum.FormFactor.Symmetric
1690CylinderMesh56.Parent = Part55
1691CylinderMesh56.Scale = Vector3.new(0.217391297, 0.0869565234, 0.217391297)
1692Part57.Parent = Tool0
1693Part57.CFrame = CFrame.new(2.77456689, 0.952661991, -60.541748, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1694Part57.Orientation = Vector3.new(-2, 153, 0)
1695Part57.Position = Vector3.new(2.77456689, 0.952661991, -60.541748)
1696Part57.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1697Part57.Color = Color3.new(0.843137, 0.772549, 0.603922)
1698Part57.Size = Vector3.new(1, 1, 1)
1699Part57.Anchored = true
1700Part57.BottomSurface = Enum.SurfaceType.Smooth
1701Part57.BrickColor = BrickColor.new("Brick yellow")
1702Part57.CanCollide = false
1703Part57.TopSurface = Enum.SurfaceType.Smooth
1704Part57.brickColor = BrickColor.new("Brick yellow")
1705Part57.FormFactor = Enum.FormFactor.Symmetric
1706Part57.formFactor = Enum.FormFactor.Symmetric
1707BlockMesh58.Parent = Part57
1708BlockMesh58.Scale = Vector3.new(1.0869565, 0.217391297, 0.173913047)
1709Part59.Parent = Tool0
1710Part59.CFrame = CFrame.new(3.90612793, 1.08529902, -60.0332031, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1711Part59.Orientation = Vector3.new(-2, 153, 0)
1712Part59.Position = Vector3.new(3.90612793, 1.08529902, -60.0332031)
1713Part59.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1714Part59.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1715Part59.Size = Vector3.new(3, 1, 1)
1716Part59.Anchored = true
1717Part59.BottomSurface = Enum.SurfaceType.Smooth
1718Part59.BrickColor = BrickColor.new("Really black")
1719Part59.CanCollide = false
1720Part59.Reflectance = 0.10000000149012
1721Part59.TopSurface = Enum.SurfaceType.Smooth
1722Part59.brickColor = BrickColor.new("Really black")
1723Part59.FormFactor = Enum.FormFactor.Symmetric
1724Part59.formFactor = Enum.FormFactor.Symmetric
1725BlockMesh60.Parent = Part59
1726BlockMesh60.Scale = Vector3.new(1.13043475, 0.0434782617, 0.0434782617)
1727Part61.Parent = Tool0
1728Part61.CFrame = CFrame.new(3.8469851, 1.08074296, -59.9170532, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1729Part61.Orientation = Vector3.new(-2, 153, 0)
1730Part61.Position = Vector3.new(3.8469851, 1.08074296, -59.9170532)
1731Part61.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1732Part61.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1733Part61.Size = Vector3.new(3, 1, 1)
1734Part61.Anchored = true
1735Part61.BottomSurface = Enum.SurfaceType.Smooth
1736Part61.BrickColor = BrickColor.new("Really black")
1737Part61.CanCollide = false
1738Part61.Reflectance = 0.10000000149012
1739Part61.TopSurface = Enum.SurfaceType.Smooth
1740Part61.brickColor = BrickColor.new("Really black")
1741Part61.FormFactor = Enum.FormFactor.Symmetric
1742Part61.formFactor = Enum.FormFactor.Symmetric
1743BlockMesh62.Parent = Part61
1744BlockMesh62.Scale = Vector3.new(1.13043475, 0.0434782617, 0.0434782617)
1745Part63.Parent = Tool0
1746Part63.CFrame = CFrame.new(4.28735304, 1.04902804, -58.6732178, -0.891004682, -0.0158440992, 0.453714907, -4.42188011e-08, 0.999391377, 0.0348995328, -0.453990936, 0.0310957767, -0.890461683)
1747Part63.Orientation = Vector3.new(-2, 153, 0)
1748Part63.Position = Vector3.new(4.28735304, 1.04902804, -58.6732178)
1749Part63.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1750Part63.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1751Part63.Size = Vector3.new(1, 1, 1)
1752Part63.Anchored = true
1753Part63.BottomSurface = Enum.SurfaceType.Smooth
1754Part63.BrickColor = BrickColor.new("Really black")
1755Part63.CanCollide = false
1756Part63.Reflectance = 0.10000000149012
1757Part63.TopSurface = Enum.SurfaceType.Smooth
1758Part63.brickColor = BrickColor.new("Really black")
1759Part63.FormFactor = Enum.FormFactor.Symmetric
1760Part63.formFactor = Enum.FormFactor.Symmetric
1761CylinderMesh64.Parent = Part63
1762CylinderMesh64.Scale = Vector3.new(0.217391297, 0.0304347817, 0.217391297)
1763Part65.Parent = Tool0
1764Part65.CFrame = CFrame.new(2.13616896, 1.36545801, -60.8508339, -0.453715026, -0.891004562, 0.0158441402, -0.0348995216, -8.89118539e-08, -0.999391377, 0.890461564, -0.453991085, -0.0310957506)
1765Part65.Orientation = Vector3.new(88, 153, -90)
1766Part65.Position = Vector3.new(2.13616896, 1.36545801, -60.8508339)
1767Part65.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
1768Part65.Color = Color3.new(0.388235, 0.372549, 0.384314)
1769Part65.Size = Vector3.new(1, 0.400000006, 1)
1770Part65.Anchored = true
1771Part65.BottomSurface = Enum.SurfaceType.Smooth
1772Part65.BrickColor = BrickColor.new("Dark stone grey")
1773Part65.CanCollide = false
1774Part65.Reflectance = 0.30000001192093
1775Part65.TopSurface = Enum.SurfaceType.Smooth
1776Part65.brickColor = BrickColor.new("Dark stone grey")
1777Part65.FormFactor = Enum.FormFactor.Plate
1778Part65.formFactor = Enum.FormFactor.Plate
1779CylinderMesh66.Parent = Part65
1780CylinderMesh66.Scale = Vector3.new(0.195652172, 0.0434782617, 0.195652172)
1781Part67.Parent = Tool0
1782Part67.CFrame = CFrame.new(3.31549096, 1.03955996, -60.2626343, -0.453715086, -0.0158441626, -0.891004562, -0.0348995663, 0.999391377, -8.72858266e-08, 0.890461445, 0.0310957916, -0.453991085)
1783Part67.Orientation = Vector3.new(0, -117, -2)
1784Part67.Position = Vector3.new(3.31549096, 1.03955996, -60.2626343)
1785Part67.Rotation = Vector3.new(180, -63, 178)
1786Part67.Color = Color3.new(0.843137, 0.772549, 0.603922)
1787Part67.Size = Vector3.new(1, 1, 1)
1788Part67.Anchored = true
1789Part67.BottomSurface = Enum.SurfaceType.Smooth
1790Part67.BrickColor = BrickColor.new("Brick yellow")
1791Part67.CanCollide = false
1792Part67.TopSurface = Enum.SurfaceType.Smooth
1793Part67.brickColor = BrickColor.new("Brick yellow")
1794Part67.FormFactor = Enum.FormFactor.Symmetric
1795Part67.formFactor = Enum.FormFactor.Symmetric
1796SpecialMesh68.Parent = Part67
1797SpecialMesh68.Scale = Vector3.new(0.173913047, 0.0434782617, 0.130434781)
1798SpecialMesh68.MeshType = Enum.MeshType.Wedge
1799Part69.Parent = Tool0
1800Part69.CFrame = CFrame.new(1.68524206, 0.823158979, -60.989563, 0.801084101, -0.453715235, -0.390390486, -0.453714103, -0.0348994546, -0.890464246, 0.390391886, 0.890461564, -0.23381418)
1801Part69.Orientation = Vector3.new(62.9300003, -120.919998, -94.4000015)
1802Part69.Position = Vector3.new(1.68524206, 0.823158979, -60.989563)
1803Part69.Rotation = Vector3.new(104.709999, -22.9799995, 29.5299988)
1804Part69.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1805Part69.Size = Vector3.new(1, 0.400000006, 1)
1806Part69.Anchored = true
1807Part69.BottomSurface = Enum.SurfaceType.Smooth
1808Part69.BrickColor = BrickColor.new("Really black")
1809Part69.CanCollide = false
1810Part69.Reflectance = 0.10000000149012
1811Part69.TopSurface = Enum.SurfaceType.Smooth
1812Part69.brickColor = BrickColor.new("Really black")
1813Part69.FormFactor = Enum.FormFactor.Plate
1814Part69.formFactor = Enum.FormFactor.Plate
1815BlockMesh70.Parent = Part69
1816BlockMesh70.Scale = Vector3.new(0.130434781, 0.173913047, 0.0434782617)
1817Part71.Parent = Tool0
1818Part71.CFrame = CFrame.new(4.00390577, 0.908236027, -59.7462158, 0.891002476, 0.0158440173, 0.45371455, 8.99508308e-08, -0.999390244, 0.034899272, 0.453989983, -0.0310955197, -0.89046067)
1819Part71.Orientation = Vector3.new(-2, 153, 180)
1820Part71.Position = Vector3.new(4.00390577, 0.908236027, -59.7462158)
1821Part71.Rotation = Vector3.new(-177.759995, 26.9799995, -1.01999998)
1822Part71.Color = Color3.new(0.843137, 0.772549, 0.603922)
1823Part71.Size = Vector3.new(1, 1, 1)
1824Part71.Anchored = true
1825Part71.BottomSurface = Enum.SurfaceType.Smooth
1826Part71.BrickColor = BrickColor.new("Brick yellow")
1827Part71.CanCollide = false
1828Part71.TopSurface = Enum.SurfaceType.Smooth
1829Part71.brickColor = BrickColor.new("Brick yellow")
1830Part71.FormFactor = Enum.FormFactor.Symmetric
1831Part71.formFactor = Enum.FormFactor.Symmetric
1832SpecialMesh72.Parent = Part71
1833SpecialMesh72.Scale = Vector3.new(0.782608688, 0.0434782617, 0.0434782617)
1834SpecialMesh72.MeshType = Enum.MeshType.Wedge
1835Part73.Parent = Tool0
1836Part73.CFrame = CFrame.new(2.20846605, 0.629450023, -60.8428345, -0.86474508, 0.215304703, 0.453715086, 0.258661479, 0.965338051, 0.0348995663, -0.430473536, 0.147537768, -0.890461445)
1837Part73.Orientation = Vector3.new(-2, 153, 15)
1838Part73.Position = Vector3.new(2.20846605, 0.629450023, -60.8428345)
1839Part73.Rotation = Vector3.new(-177.759995, 26.9799995, -166.019989)
1840Part73.Color = Color3.new(0.843137, 0.772549, 0.603922)
1841Part73.Size = Vector3.new(1, 1, 1)
1842Part73.Anchored = true
1843Part73.BottomSurface = Enum.SurfaceType.Smooth
1844Part73.BrickColor = BrickColor.new("Brick yellow")
1845Part73.CanCollide = false
1846Part73.TopSurface = Enum.SurfaceType.Smooth
1847Part73.brickColor = BrickColor.new("Brick yellow")
1848Part73.FormFactor = Enum.FormFactor.Symmetric
1849Part73.formFactor = Enum.FormFactor.Symmetric
1850BlockMesh74.Parent = Part73
1851BlockMesh74.Scale = Vector3.new(0.217391297, 0.173913047, 0.173913047)
1852Part75.Parent = Tool0
1853Part75.CFrame = CFrame.new(2.34381104, 0.885156989, -60.7637901, -0.641238868, 0.618831933, 0.453715086, 0.706676364, 0.706676602, 0.0348995663, -0.299032032, 0.34300819, -0.890461445)
1854Part75.Orientation = Vector3.new(-2, 153, 45)
1855Part75.Position = Vector3.new(2.34381104, 0.885156989, -60.7637901)
1856Part75.Rotation = Vector3.new(-177.759995, 26.9799995, -136.020004)
1857Part75.Color = Color3.new(0.843137, 0.772549, 0.603922)
1858Part75.Size = Vector3.new(1, 1, 1)
1859Part75.Anchored = true
1860Part75.BottomSurface = Enum.SurfaceType.Smooth
1861Part75.BrickColor = BrickColor.new("Brick yellow")
1862Part75.CanCollide = false
1863Part75.TopSurface = Enum.SurfaceType.Smooth
1864Part75.brickColor = BrickColor.new("Brick yellow")
1865Part75.FormFactor = Enum.FormFactor.Symmetric
1866Part75.formFactor = Enum.FormFactor.Symmetric
1867BlockMesh76.Parent = Part75
1868BlockMesh76.Scale = Vector3.new(0.217391297, 0.217391297, 0.173913047)
1869Part77.Parent = Tool0
1870Part77.CFrame = CFrame.new(2.55661011, 1.26117301, -60.6406898, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1871Part77.Orientation = Vector3.new(-2, 153, 0)
1872Part77.Position = Vector3.new(2.55661011, 1.26117301, -60.6406898)
1873Part77.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1874Part77.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1875Part77.Size = Vector3.new(1, 0.400000006, 1)
1876Part77.Anchored = true
1877Part77.BottomSurface = Enum.SurfaceType.Smooth
1878Part77.BrickColor = BrickColor.new("Really black")
1879Part77.CanCollide = false
1880Part77.Reflectance = 0.10000000149012
1881Part77.TopSurface = Enum.SurfaceType.Smooth
1882Part77.brickColor = BrickColor.new("Really black")
1883Part77.FormFactor = Enum.FormFactor.Plate
1884Part77.formFactor = Enum.FormFactor.Plate
1885BlockMesh78.Parent = Part77
1886BlockMesh78.Scale = Vector3.new(0.0869565234, 0.130434781, 0.130434781)
1887Part79.Parent = Tool0
1888Part79.CFrame = CFrame.new(5.62670898, 1.07800496, -58.9219971, -0.74321419, -0.0158441626, 0.668864071, 0.00903258752, 0.999391377, 0.0337104164, -0.668989956, 0.0310957916, -0.742618144)
1889Part79.Orientation = Vector3.new(-1.92999995, 137.98999, 0.519999981)
1890Part79.Position = Vector3.new(5.62670898, 1.07800496, -58.9219971)
1891Part79.Rotation = Vector3.new(-177.399994, 41.9799995, 178.779999)
1892Part79.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1893Part79.Size = Vector3.new(1, 1, 1)
1894Part79.Anchored = true
1895Part79.BottomSurface = Enum.SurfaceType.Smooth
1896Part79.BrickColor = BrickColor.new("Really black")
1897Part79.CanCollide = false
1898Part79.Reflectance = 0.10000000149012
1899Part79.TopSurface = Enum.SurfaceType.Smooth
1900Part79.brickColor = BrickColor.new("Really black")
1901Part79.FormFactor = Enum.FormFactor.Symmetric
1902Part79.formFactor = Enum.FormFactor.Symmetric
1903BlockMesh80.Parent = Part79
1904BlockMesh80.Scale = Vector3.new(0.130434781, 0.0434782617, 0.0434782617)
1905Part81.Parent = Tool0
1906Part81.CFrame = CFrame.new(2.3031621, 1.36546504, -60.7657471, -0.453715086, -0.891004562, 0.0158441179, -0.0348995663, -4.3840231e-08, -0.999391377, 0.890461445, -0.453991085, -0.0310958102)
1907Part81.Orientation = Vector3.new(88, 153, -90)
1908Part81.Position = Vector3.new(2.3031621, 1.36546504, -60.7657471)
1909Part81.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
1910Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1911Part81.Size = Vector3.new(1, 1, 1)
1912Part81.Anchored = true
1913Part81.BottomSurface = Enum.SurfaceType.Smooth
1914Part81.BrickColor = BrickColor.new("Really black")
1915Part81.CanCollide = false
1916Part81.Reflectance = 0.10000000149012
1917Part81.TopSurface = Enum.SurfaceType.Smooth
1918Part81.brickColor = BrickColor.new("Really black")
1919Part81.FormFactor = Enum.FormFactor.Symmetric
1920Part81.formFactor = Enum.FormFactor.Symmetric
1921CylinderMesh82.Parent = Part81
1922CylinderMesh82.Scale = Vector3.new(0.217391297, 0.391304344, 0.217391297)
1923Part83.Parent = Tool0
1924Part83.CFrame = CFrame.new(5.87307692, 1.08861005, -59.1375732, -0.891004562, -0.0158441551, 0.453715056, -9.04494968e-08, 0.999391377, 0.0348995589, -0.453991085, 0.0310957767, -0.890461504)
1925Part83.Orientation = Vector3.new(-2, 153, 0)
1926Part83.Position = Vector3.new(5.87307692, 1.08861005, -59.1375732)
1927Part83.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1928Part83.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1929Part83.Size = Vector3.new(1, 1, 1)
1930Part83.Anchored = true
1931Part83.BottomSurface = Enum.SurfaceType.Smooth
1932Part83.BrickColor = BrickColor.new("Really black")
1933Part83.CanCollide = false
1934Part83.Reflectance = 0.10000000149012
1935Part83.TopSurface = Enum.SurfaceType.Smooth
1936Part83.brickColor = BrickColor.new("Really black")
1937Part83.FormFactor = Enum.FormFactor.Symmetric
1938Part83.formFactor = Enum.FormFactor.Symmetric
1939BlockMesh84.Parent = Part83
1940BlockMesh84.Scale = Vector3.new(0.130434781, 0.0434782617, 0.0434782617)
1941Part85.Parent = Tool0
1942Part85.CFrame = CFrame.new(4.13958693, 0.950388014, -59.7730713, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1943Part85.Orientation = Vector3.new(-2, 153, 0)
1944Part85.Position = Vector3.new(4.13958693, 0.950388014, -59.7730713)
1945Part85.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
1946Part85.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1947Part85.Size = Vector3.new(2, 1, 1)
1948Part85.Anchored = true
1949Part85.BottomSurface = Enum.SurfaceType.Smooth
1950Part85.BrickColor = BrickColor.new("Really black")
1951Part85.CanCollide = false
1952Part85.Reflectance = 0.10000000149012
1953Part85.TopSurface = Enum.SurfaceType.Smooth
1954Part85.brickColor = BrickColor.new("Really black")
1955Part85.FormFactor = Enum.FormFactor.Symmetric
1956Part85.formFactor = Enum.FormFactor.Symmetric
1957BlockMesh86.Parent = Part85
1958BlockMesh86.Scale = Vector3.new(0.978260875, 0.0434782617, 0.0430434793)
1959Part87.Parent = Tool0
1960Part87.CFrame = CFrame.new(3.23290992, 1.36546504, -60.2919922, -0.453715086, -0.891004562, 0.0158441626, -0.0348995663, -8.72858266e-08, -0.999391377, 0.890461445, -0.453991085, -0.0310957916)
1961Part87.Orientation = Vector3.new(88, 153, -90)
1962Part87.Position = Vector3.new(3.23290992, 1.36546504, -60.2919922)
1963Part87.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
1964Part87.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1965Part87.Size = Vector3.new(1, 1, 1)
1966Part87.Anchored = true
1967Part87.BottomSurface = Enum.SurfaceType.Smooth
1968Part87.BrickColor = BrickColor.new("Really black")
1969Part87.CanCollide = false
1970Part87.Reflectance = 0.10000000149012
1971Part87.TopSurface = Enum.SurfaceType.Smooth
1972Part87.brickColor = BrickColor.new("Really black")
1973Part87.FormFactor = Enum.FormFactor.Symmetric
1974Part87.formFactor = Enum.FormFactor.Symmetric
1975CylinderMesh88.Parent = Part87
1976CylinderMesh88.Scale = Vector3.new(0.217391297, 0.304347813, 0.217391297)
1977Part89.Parent = Tool0
1978Part89.CFrame = CFrame.new(2.78741503, 1.36546504, -60.519043, -0.453715026, -0.891004562, 0.0158441402, -0.0348995216, -8.89118539e-08, -0.999391377, 0.890461564, -0.453991085, -0.0310957506)
1979Part89.Orientation = Vector3.new(88, 153, -90)
1980Part89.Position = Vector3.new(2.78741503, 1.36546504, -60.519043)
1981Part89.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
1982Part89.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1983Part89.Size = Vector3.new(1, 1, 1)
1984Part89.Anchored = true
1985Part89.BottomSurface = Enum.SurfaceType.Smooth
1986Part89.BrickColor = BrickColor.new("Really black")
1987Part89.CanCollide = false
1988Part89.Reflectance = 0.10000000149012
1989Part89.TopSurface = Enum.SurfaceType.Smooth
1990Part89.brickColor = BrickColor.new("Really black")
1991Part89.FormFactor = Enum.FormFactor.Symmetric
1992Part89.formFactor = Enum.FormFactor.Symmetric
1993CylinderMesh90.Parent = Part89
1994CylinderMesh90.Scale = Vector3.new(0.195652172, 0.695652187, 0.195652172)
1995Part91.Parent = Tool0
1996Part91.CFrame = CFrame.new(4.19876099, 0.954927981, -59.8892212, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
1997Part91.Orientation = Vector3.new(-2, 153, 0)
1998Part91.Position = Vector3.new(4.19876099, 0.954927981, -59.8892212)
1999Part91.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2000Part91.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2001Part91.Size = Vector3.new(2, 1, 1)
2002Part91.Anchored = true
2003Part91.BottomSurface = Enum.SurfaceType.Smooth
2004Part91.BrickColor = BrickColor.new("Really black")
2005Part91.CanCollide = false
2006Part91.Reflectance = 0.10000000149012
2007Part91.TopSurface = Enum.SurfaceType.Smooth
2008Part91.brickColor = BrickColor.new("Really black")
2009Part91.FormFactor = Enum.FormFactor.Symmetric
2010Part91.formFactor = Enum.FormFactor.Symmetric
2011BlockMesh92.Parent = Part91
2012BlockMesh92.Scale = Vector3.new(0.978260875, 0.0434782617, 0.0430434793)
2013Part93.Parent = Tool0
2014Part93.CFrame = CFrame.new(2.32663012, 1.10474503, -60.7639771, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2015Part93.Orientation = Vector3.new(-2, 153, 0)
2016Part93.Position = Vector3.new(2.32663012, 1.10474503, -60.7639771)
2017Part93.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2018Part93.Color = Color3.new(0.843137, 0.772549, 0.603922)
2019Part93.Size = Vector3.new(1, 1, 1)
2020Part93.Anchored = true
2021Part93.BottomSurface = Enum.SurfaceType.Smooth
2022Part93.BrickColor = BrickColor.new("Brick yellow")
2023Part93.CanCollide = false
2024Part93.TopSurface = Enum.SurfaceType.Smooth
2025Part93.brickColor = BrickColor.new("Brick yellow")
2026Part93.FormFactor = Enum.FormFactor.Symmetric
2027Part93.formFactor = Enum.FormFactor.Symmetric
2028BlockMesh94.Parent = Part93
2029BlockMesh94.Scale = Vector3.new(0.0869565234, 0.0869565234, 0.173913047)
2030Part95.Parent = Tool0
2031Part95.CFrame = CFrame.new(3.87677002, 1.06997895, -59.9754639, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2032Part95.Orientation = Vector3.new(-2, 153, 0)
2033Part95.Position = Vector3.new(3.87677002, 1.06997895, -59.9754639)
2034Part95.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2035Part95.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2036Part95.Size = Vector3.new(3, 0.400000006, 1)
2037Part95.Anchored = true
2038Part95.BottomSurface = Enum.SurfaceType.Smooth
2039Part95.BrickColor = BrickColor.new("Really black")
2040Part95.CanCollide = false
2041Part95.Reflectance = 0.10000000149012
2042Part95.TopSurface = Enum.SurfaceType.Smooth
2043Part95.brickColor = BrickColor.new("Really black")
2044Part95.FormFactor = Enum.FormFactor.Plate
2045Part95.formFactor = Enum.FormFactor.Plate
2046BlockMesh96.Parent = Part95
2047BlockMesh96.Scale = Vector3.new(1.13043475, 0.0434782617, 0.0869565234)
2048Part97.Parent = Tool0
2049Part97.CFrame = CFrame.new(4.80725098, 1.04825795, -59.5022583, -0.0158441346, -0.453715086, 0.891004562, 0.999391377, -0.0348996073, 4.39723209e-08, 0.0310958475, 0.890461445, 0.453991085)
2050Part97.Orientation = Vector3.new(0, 63, 92)
2051Part97.Position = Vector3.new(4.80725098, 1.04825795, -59.5022583)
2052Part97.Rotation = Vector3.new(0, 63, 92)
2053Part97.Color = Color3.new(0.470588, 0.564706, 0.509804)
2054Part97.Size = Vector3.new(1, 1, 1)
2055Part97.Anchored = true
2056Part97.BottomSurface = Enum.SurfaceType.Smooth
2057Part97.BrickColor = BrickColor.new("Sand green")
2058Part97.CanCollide = false
2059Part97.TopSurface = Enum.SurfaceType.Smooth
2060Part97.brickColor = BrickColor.new("Sand green")
2061Part97.FormFactor = Enum.FormFactor.Symmetric
2062Part97.formFactor = Enum.FormFactor.Symmetric
2063CylinderMesh98.Parent = Part97
2064CylinderMesh98.Scale = Vector3.new(0.0173913054, 0.191304356, 0.0173913054)
2065Part99.Parent = Tool0
2066Part99.CFrame = CFrame.new(3.31726098, 0.930934012, -60.2660522, 0.453715086, 0.0158441626, -0.891004562, 0.0348995663, -0.999391377, -8.72858266e-08, -0.890461445, -0.0310957916, -0.453991085)
2067Part99.Orientation = Vector3.new(0, -117, 178)
2068Part99.Position = Vector3.new(3.31726098, 0.930934012, -60.2660522)
2069Part99.Rotation = Vector3.new(180, -63, -2)
2070Part99.Color = Color3.new(0.843137, 0.772549, 0.603922)
2071Part99.Size = Vector3.new(1, 1, 1)
2072Part99.Anchored = true
2073Part99.BottomSurface = Enum.SurfaceType.Smooth
2074Part99.BrickColor = BrickColor.new("Brick yellow")
2075Part99.CanCollide = false
2076Part99.TopSurface = Enum.SurfaceType.Smooth
2077Part99.brickColor = BrickColor.new("Brick yellow")
2078Part99.FormFactor = Enum.FormFactor.Symmetric
2079Part99.formFactor = Enum.FormFactor.Symmetric
2080SpecialMesh100.Parent = Part99
2081SpecialMesh100.Scale = Vector3.new(0.173913047, 0.173913047, 0.130434781)
2082SpecialMesh100.MeshType = Enum.MeshType.Wedge
2083Part101.Parent = Tool0
2084Part101.CFrame = CFrame.new(4.57226419, 1.04474103, -59.0408936, 1.11758709e-08, -0.453991681, 0.891004562, 1.00000048, 5.96046448e-08, 4.39459207e-08, 1.00582838e-07, 0.891004264, 0.453991085)
2085Part101.Orientation = Vector3.new(0, 63, 90)
2086Part101.Position = Vector3.new(4.57226419, 1.04474103, -59.0408936)
2087Part101.Rotation = Vector3.new(0, 63, 90)
2088Part101.Color = Color3.new(0.470588, 0.564706, 0.509804)
2089Part101.Size = Vector3.new(1, 1, 1)
2090Part101.Anchored = true
2091Part101.BottomSurface = Enum.SurfaceType.Smooth
2092Part101.BrickColor = BrickColor.new("Sand green")
2093Part101.CanCollide = false
2094Part101.TopSurface = Enum.SurfaceType.Smooth
2095Part101.brickColor = BrickColor.new("Sand green")
2096Part101.FormFactor = Enum.FormFactor.Symmetric
2097Part101.formFactor = Enum.FormFactor.Symmetric
2098CylinderMesh102.Parent = Part101
2099CylinderMesh102.Scale = Vector3.new(0.0173913054, 0.869565189, 0.0173913054)
2100Part103.Parent = Tool0
2101Part103.CFrame = CFrame.new(2.69494605, 0.76007998, -60.5898438, -0.453715056, 0.58486402, 0.672364712, -0.0348994397, -0.76557827, 0.642396688, 0.890461564, 0.267999202, 0.367765307)
2102Part103.Orientation = Vector3.new(-39.9699974, 61.3199997, -177.389999)
2103Part103.Position = Vector3.new(2.69494605, 0.76007998, -60.5898438)
2104Part103.Rotation = Vector3.new(-60.2099991, 42.25, -127.799995)
2105Part103.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2106Part103.Size = Vector3.new(1, 1, 1)
2107Part103.Anchored = true
2108Part103.BottomSurface = Enum.SurfaceType.Smooth
2109Part103.BrickColor = BrickColor.new("Really black")
2110Part103.CanCollide = false
2111Part103.Reflectance = 0.10000000149012
2112Part103.TopSurface = Enum.SurfaceType.Smooth
2113Part103.brickColor = BrickColor.new("Really black")
2114Part103.FormFactor = Enum.FormFactor.Symmetric
2115Part103.formFactor = Enum.FormFactor.Symmetric
2116SpecialMesh104.Parent = Part103
2117SpecialMesh104.Scale = Vector3.new(0.0434782617, 0.0869565234, 0.0434782617)
2118SpecialMesh104.MeshType = Enum.MeshType.Wedge
2119Part105.Parent = Tool0
2120Part105.CFrame = CFrame.new(5.0447998, 1.08107996, -59.9680786, -0.0316688828, -0.452885807, 0.891004562, 0.997564793, -0.0697565451, 4.40514931e-08, 0.0621535033, 0.88883388, 0.453991085)
2121Part105.Orientation = Vector3.new(0, 63, 94)
2122Part105.Position = Vector3.new(5.0447998, 1.08107996, -59.9680786)
2123Part105.Rotation = Vector3.new(0, 63, 94)
2124Part105.Color = Color3.new(0.470588, 0.564706, 0.509804)
2125Part105.Size = Vector3.new(1, 1, 1)
2126Part105.Anchored = true
2127Part105.BottomSurface = Enum.SurfaceType.Smooth
2128Part105.BrickColor = BrickColor.new("Sand green")
2129Part105.CanCollide = false
2130Part105.TopSurface = Enum.SurfaceType.Smooth
2131Part105.brickColor = BrickColor.new("Sand green")
2132Part105.FormFactor = Enum.FormFactor.Symmetric
2133Part105.formFactor = Enum.FormFactor.Symmetric
2134CylinderMesh106.Parent = Part105
2135CylinderMesh106.Scale = Vector3.new(0.0173913054, 0.869565189, 0.0173913054)
2136Part107.Parent = Tool0
2137Part107.CFrame = CFrame.new(1.52575696, 0.857613981, -61.0596924, 0.891004443, -0.453715086, 0.0158441849, 8.28260696e-08, -0.0348995663, -0.999391317, 0.453991085, 0.890461445, -0.0310957767)
2138Part107.Orientation = Vector3.new(88, 153, 180)
2139Part107.Position = Vector3.new(1.52575696, 0.857613981, -61.0596924)
2140Part107.Rotation = Vector3.new(91.7799988, 0.909999967, 26.9899998)
2141Part107.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2142Part107.Size = Vector3.new(1, 0.400000006, 1)
2143Part107.Anchored = true
2144Part107.BottomSurface = Enum.SurfaceType.Smooth
2145Part107.BrickColor = BrickColor.new("Really black")
2146Part107.CanCollide = false
2147Part107.Reflectance = 0.10000000149012
2148Part107.TopSurface = Enum.SurfaceType.Smooth
2149Part107.brickColor = BrickColor.new("Really black")
2150Part107.FormFactor = Enum.FormFactor.Plate
2151Part107.formFactor = Enum.FormFactor.Plate
2152BlockMesh108.Parent = Part107
2153BlockMesh108.Scale = Vector3.new(0.304347813, 0.217391312, 0.260869563)
2154Part109.Parent = Tool0
2155Part109.CFrame = CFrame.new(5.68975782, 1.15082705, -59.8324585, 0.309210449, -0.950860322, 0.0158441402, -0.0246776268, -0.0246777534, -0.999391377, 0.950671613, 0.308631271, -0.0310957506)
2156Part109.Orientation = Vector3.new(88, 153, -135)
2157Part109.Position = Vector3.new(5.68975782, 1.15082705, -59.8324585)
2158Part109.Rotation = Vector3.new(91.7799988, 0.909999967, 71.9899979)
2159Part109.Color = Color3.new(0.843137, 0.772549, 0.603922)
2160Part109.Size = Vector3.new(1, 0.400000006, 1)
2161Part109.Anchored = true
2162Part109.BottomSurface = Enum.SurfaceType.Smooth
2163Part109.BrickColor = BrickColor.new("Brick yellow")
2164Part109.CanCollide = false
2165Part109.TopSurface = Enum.SurfaceType.Smooth
2166Part109.brickColor = BrickColor.new("Brick yellow")
2167Part109.FormFactor = Enum.FormFactor.Plate
2168Part109.formFactor = Enum.FormFactor.Plate
2169BlockMesh110.Parent = Part109
2170BlockMesh110.Scale = Vector3.new(0.347826093, 0.0869565234, 0.0434782617)
2171Part111.Parent = Tool0
2172Part111.CFrame = CFrame.new(2.94232202, 1.36545801, -60.4400635, -0.453715056, -0.891004562, 0.015844157, -0.0348996483, -4.57757316e-08, -0.999391377, 0.890461504, -0.453991085, -0.0310958754)
2173Part111.Orientation = Vector3.new(88, 153, -90)
2174Part111.Position = Vector3.new(2.94232202, 1.36545801, -60.4400635)
2175Part111.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
2176Part111.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2177Part111.Size = Vector3.new(1, 1, 1)
2178Part111.Anchored = true
2179Part111.BottomSurface = Enum.SurfaceType.Smooth
2180Part111.BrickColor = BrickColor.new("Really black")
2181Part111.CanCollide = false
2182Part111.Reflectance = 0.10000000149012
2183Part111.TopSurface = Enum.SurfaceType.Smooth
2184Part111.brickColor = BrickColor.new("Really black")
2185Part111.FormFactor = Enum.FormFactor.Symmetric
2186Part111.formFactor = Enum.FormFactor.Symmetric
2187CylinderMesh112.Parent = Part111
2188CylinderMesh112.Scale = Vector3.new(0.217391297, 0.0869565234, 0.217391297)
2189Part113.Parent = Tool0
2190Part113.CFrame = CFrame.new(5.76373291, 1.17379904, -59.4144897, 0.0525735803, 0.0158440992, 0.998489201, -0.0302238166, -0.999390483, 0.017449813, 0.998156011, -0.0310957152, -0.0520630889)
2191Part113.Orientation = Vector3.new(-1, 92.9799957, -178.269989)
2192Part113.Position = Vector3.new(5.76373291, 1.17379904, -59.4144897)
2193Part113.Rotation = Vector3.new(-161.470001, 86.8499985, -16.7700005)
2194Part113.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2195Part113.Size = Vector3.new(1, 0.400000006, 1)
2196Part113.Anchored = true
2197Part113.BottomSurface = Enum.SurfaceType.Smooth
2198Part113.BrickColor = BrickColor.new("Really black")
2199Part113.CanCollide = false
2200Part113.Reflectance = 0.10000000149012
2201Part113.TopSurface = Enum.SurfaceType.Smooth
2202Part113.brickColor = BrickColor.new("Really black")
2203Part113.FormFactor = Enum.FormFactor.Plate
2204Part113.formFactor = Enum.FormFactor.Plate
2205BlockMesh114.Parent = Part113
2206BlockMesh114.Scale = Vector3.new(0.347826093, 0.0434782617, 0.0434782617)
2207Part115.Parent = Tool0
2208Part115.CFrame = CFrame.new(2.6907649, 0.861406028, -60.5879517, 0.779554844, -0.431780905, 0.453715086, -0.499695718, -0.865498424, 0.0348995663, 0.377619863, -0.253925294, -0.890461445)
2209Part115.Orientation = Vector3.new(-2, 153, -150)
2210Part115.Position = Vector3.new(2.6907649, 0.861406028, -60.5879517)
2211Part115.Rotation = Vector3.new(-177.759995, 26.9799995, 28.9799995)
2212Part115.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2213Part115.Size = Vector3.new(1, 1, 1)
2214Part115.Anchored = true
2215Part115.BottomSurface = Enum.SurfaceType.Smooth
2216Part115.BrickColor = BrickColor.new("Really black")
2217Part115.CanCollide = false
2218Part115.Reflectance = 0.10000000149012
2219Part115.TopSurface = Enum.SurfaceType.Smooth
2220Part115.brickColor = BrickColor.new("Really black")
2221Part115.FormFactor = Enum.FormFactor.Symmetric
2222Part115.formFactor = Enum.FormFactor.Symmetric
2223BlockMesh116.Parent = Part115
2224BlockMesh116.Scale = Vector3.new(0.0434782617, 0.0869565234, 0.0434782617)
2225Part117.Parent = Tool0
2226Part117.CFrame = CFrame.new(5.77294922, 1.09098995, -59.2650757, -0.0158441104, 0.998490274, -0.0525734276, 0.999391377, 0.0174498111, 0.0302238706, 0.031095773, -0.0520627648, -0.998157978)
2227Part117.Orientation = Vector3.new(-1.73000002, -176.98999, 89)
2228Part117.Position = Vector3.new(5.77294922, 1.09098995, -59.2650757)
2229Part117.Rotation = Vector3.new(-178.269989, -3.00999999, -90.909996)
2230Part117.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2231Part117.Size = Vector3.new(1, 1, 1)
2232Part117.Anchored = true
2233Part117.BottomSurface = Enum.SurfaceType.Smooth
2234Part117.BrickColor = BrickColor.new("Really black")
2235Part117.CanCollide = false
2236Part117.Reflectance = 0.10000000149012
2237Part117.TopSurface = Enum.SurfaceType.Smooth
2238Part117.brickColor = BrickColor.new("Really black")
2239Part117.FormFactor = Enum.FormFactor.Symmetric
2240Part117.formFactor = Enum.FormFactor.Symmetric
2241BlockMesh118.Parent = Part117
2242BlockMesh118.Scale = Vector3.new(0.173913047, 0.0434782617, 0.130434781)
2243Part119.Parent = Tool0
2244Part119.CFrame = CFrame.new(5.56567383, 1.07504594, -58.8582764, -0.0158441328, 0.54477495, 0.83843112, 0.999391377, -0.0174497645, 0.0302239619, 0.0310958251, 0.838398635, -0.544166803)
2245Part119.Orientation = Vector3.new(-1.73000002, 122.979996, 91)
2246Part119.Position = Vector3.new(5.56567383, 1.07504594, -58.8582764)
2247Part119.Rotation = Vector3.new(-176.819992, 56.9699974, -91.6699982)
2248Part119.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2249Part119.Size = Vector3.new(1, 1, 1)
2250Part119.Anchored = true
2251Part119.BottomSurface = Enum.SurfaceType.Smooth
2252Part119.BrickColor = BrickColor.new("Really black")
2253Part119.CanCollide = false
2254Part119.Reflectance = 0.10000000149012
2255Part119.TopSurface = Enum.SurfaceType.Smooth
2256Part119.brickColor = BrickColor.new("Really black")
2257Part119.FormFactor = Enum.FormFactor.Symmetric
2258Part119.formFactor = Enum.FormFactor.Symmetric
2259BlockMesh120.Parent = Part119
2260BlockMesh120.Scale = Vector3.new(0.173913047, 0.0434782617, 0.130434781)
2261Part121.Parent = Tool0
2262Part121.CFrame = CFrame.new(2.94400001, 1.26117301, -60.4432983, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2263Part121.Orientation = Vector3.new(-2, 153, 0)
2264Part121.Position = Vector3.new(2.94400001, 1.26117301, -60.4432983)
2265Part121.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2266Part121.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2267Part121.Size = Vector3.new(1, 0.400000006, 1)
2268Part121.Anchored = true
2269Part121.BottomSurface = Enum.SurfaceType.Smooth
2270Part121.BrickColor = BrickColor.new("Really black")
2271Part121.CanCollide = false
2272Part121.Reflectance = 0.10000000149012
2273Part121.TopSurface = Enum.SurfaceType.Smooth
2274Part121.brickColor = BrickColor.new("Really black")
2275Part121.FormFactor = Enum.FormFactor.Plate
2276Part121.formFactor = Enum.FormFactor.Plate
2277BlockMesh122.Parent = Part121
2278BlockMesh122.Scale = Vector3.new(0.0869565234, 0.130434781, 0.130434781)
2279Part123.Parent = Tool0
2280Part123.CFrame = CFrame.new(5.43682718, 1.14866805, -58.7730103, -0.838430047, 0.0158440955, 0.544775069, -0.0302239228, -0.999390483, -0.0174497105, 0.544166327, -0.0310957581, 0.838396668)
2281Part123.Orientation = Vector3.new(1, 33.0200005, -178.269989)
2282Part123.Position = Vector3.new(5.43682718, 1.14866805, -58.7730103)
2283Part123.Rotation = Vector3.new(1.18999994, 33.0099983, -178.919998)
2284Part123.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2285Part123.Size = Vector3.new(1, 0.400000006, 1)
2286Part123.Anchored = true
2287Part123.BottomSurface = Enum.SurfaceType.Smooth
2288Part123.BrickColor = BrickColor.new("Really black")
2289Part123.CanCollide = false
2290Part123.Reflectance = 0.10000000149012
2291Part123.TopSurface = Enum.SurfaceType.Smooth
2292Part123.brickColor = BrickColor.new("Really black")
2293Part123.FormFactor = Enum.FormFactor.Plate
2294Part123.formFactor = Enum.FormFactor.Plate
2295BlockMesh124.Parent = Part123
2296BlockMesh124.Scale = Vector3.new(0.347826093, 0.0434782617, 0.0434782617)
2297Part125.Parent = Tool0
2298Part125.CFrame = CFrame.new(2.8092351, 1.20902395, -60.5139771, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2299Part125.Orientation = Vector3.new(-2, 153, 0)
2300Part125.Position = Vector3.new(2.8092351, 1.20902395, -60.5139771)
2301Part125.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2302Part125.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2303Part125.Size = Vector3.new(1, 0.400000006, 1)
2304Part125.Anchored = true
2305Part125.BottomSurface = Enum.SurfaceType.Smooth
2306Part125.BrickColor = BrickColor.new("Really black")
2307Part125.CanCollide = false
2308Part125.Reflectance = 0.10000000149012
2309Part125.TopSurface = Enum.SurfaceType.Smooth
2310Part125.brickColor = BrickColor.new("Really black")
2311Part125.FormFactor = Enum.FormFactor.Plate
2312Part125.formFactor = Enum.FormFactor.Plate
2313BlockMesh126.Parent = Part125
2314BlockMesh126.Scale = Vector3.new(1, 0.130434781, 0.0869565234)
2315Part127.Parent = Tool0
2316Part127.CFrame = CFrame.new(1.78076196, 0.793200016, -60.9420166, 0.801084101, -0.453715295, -0.390390366, -0.453714103, -0.0348995663, -0.890464306, 0.390391886, 0.890461504, -0.233814284)
2317Part127.Orientation = Vector3.new(62.9300003, -120.919998, -94.4000015)
2318Part127.Position = Vector3.new(1.78076196, 0.793200016, -60.9420166)
2319Part127.Rotation = Vector3.new(104.709999, -22.9799995, 29.5299988)
2320Part127.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2321Part127.Size = Vector3.new(1, 0.400000006, 1)
2322Part127.Anchored = true
2323Part127.BottomSurface = Enum.SurfaceType.Smooth
2324Part127.BrickColor = BrickColor.new("Really black")
2325Part127.CanCollide = false
2326Part127.Reflectance = 0.10000000149012
2327Part127.TopSurface = Enum.SurfaceType.Smooth
2328Part127.brickColor = BrickColor.new("Really black")
2329Part127.FormFactor = Enum.FormFactor.Plate
2330Part127.formFactor = Enum.FormFactor.Plate
2331BlockMesh128.Parent = Part127
2332BlockMesh128.Scale = Vector3.new(0.0869565234, 0.173913047, 0.260869563)
2333Part129.Parent = Tool0
2334Part129.CFrame = CFrame.new(5.230896, 1.07088006, -58.8948975, -0.544775248, -0.0158441626, 0.838431001, 0.0174497142, 0.999391377, 0.0302239582, -0.838398635, 0.0310957916, -0.544166923)
2335Part129.Orientation = Vector3.new(-1.73000002, 122.979996, 1)
2336Part129.Position = Vector3.new(5.230896, 1.07088006, -58.8948975)
2337Part129.Rotation = Vector3.new(-176.819992, 56.9699974, 178.330002)
2338Part129.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2339Part129.Size = Vector3.new(1, 1, 1)
2340Part129.Anchored = true
2341Part129.BottomSurface = Enum.SurfaceType.Smooth
2342Part129.BrickColor = BrickColor.new("Really black")
2343Part129.CanCollide = false
2344Part129.Reflectance = 0.10000000149012
2345Part129.TopSurface = Enum.SurfaceType.Smooth
2346Part129.brickColor = BrickColor.new("Really black")
2347Part129.FormFactor = Enum.FormFactor.Symmetric
2348Part129.formFactor = Enum.FormFactor.Symmetric
2349BlockMesh130.Parent = Part129
2350BlockMesh130.Scale = Vector3.new(0.347826093, 0.0434782617, 0.0434782617)
2351Part131.Parent = Tool0
2352Part131.CFrame = CFrame.new(5.54650879, 1.09515595, -59.5143433, -0.998490155, -0.0158441626, -0.0525735468, -0.0174498595, 0.999391377, 0.0302238781, 0.0520629101, 0.0310957916, -0.99815774)
2353Part131.Orientation = Vector3.new(-1.73000002, -176.979996, -1)
2354Part131.Position = Vector3.new(5.54650879, 1.09515595, -59.5143433)
2355Part131.Rotation = Vector3.new(-178.269989, -3.00999999, 179.089996)
2356Part131.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2357Part131.Size = Vector3.new(1, 1, 1)
2358Part131.Anchored = true
2359Part131.BottomSurface = Enum.SurfaceType.Smooth
2360Part131.BrickColor = BrickColor.new("Really black")
2361Part131.CanCollide = false
2362Part131.Reflectance = 0.10000000149012
2363Part131.TopSurface = Enum.SurfaceType.Smooth
2364Part131.brickColor = BrickColor.new("Really black")
2365Part131.FormFactor = Enum.FormFactor.Symmetric
2366Part131.formFactor = Enum.FormFactor.Symmetric
2367BlockMesh132.Parent = Part131
2368BlockMesh132.Scale = Vector3.new(0.347826093, 0.0434782617, 0.0434782617)
2369Part133.Parent = Tool0
2370Part133.CFrame = CFrame.new(5.45819092, 1.07923305, -59.0473633, -0.829069138, -0.0158441626, 0.558919311, 0.00425309921, 0.999391377, 0.0346394554, -0.559126973, 0.0310957916, -0.828496635)
2371Part133.Orientation = Vector3.new(-1.99000001, 146, 0.239999995)
2372Part133.Position = Vector3.new(5.45819092, 1.07923305, -59.0473633)
2373Part133.Rotation = Vector3.new(-177.610001, 33.9799995, 178.909988)
2374Part133.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2375Part133.Size = Vector3.new(1, 1, 1)
2376Part133.Anchored = true
2377Part133.BottomSurface = Enum.SurfaceType.Smooth
2378Part133.BrickColor = BrickColor.new("Really black")
2379Part133.CanCollide = false
2380Part133.Reflectance = 0.10000000149012
2381Part133.TopSurface = Enum.SurfaceType.Smooth
2382Part133.brickColor = BrickColor.new("Really black")
2383Part133.FormFactor = Enum.FormFactor.Symmetric
2384Part133.formFactor = Enum.FormFactor.Symmetric
2385BlockMesh134.Parent = Part133
2386BlockMesh134.Scale = Vector3.new(0.304347813, 0.0434782617, 0.0434782617)
2387Part135.Parent = Tool0
2388Part135.CFrame = CFrame.new(5.43972778, 1.07163405, -58.8128052, -0.83843106, -0.544775069, 0.0158441588, -0.0302239601, 0.0174497049, -0.999391377, 0.544166803, -0.838398457, -0.0310957935)
2389Part135.Orientation = Vector3.new(88, 153, -60)
2390Part135.Position = Vector3.new(5.43972778, 1.07163405, -58.8128052)
2391Part135.Rotation = Vector3.new(91.7799988, 0.909999967, 146.98999)
2392Part135.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2393Part135.Size = Vector3.new(1, 0.400000006, 1)
2394Part135.Anchored = true
2395Part135.BottomSurface = Enum.SurfaceType.Smooth
2396Part135.BrickColor = BrickColor.new("Really black")
2397Part135.CanCollide = false
2398Part135.Reflectance = 0.10000000149012
2399Part135.TopSurface = Enum.SurfaceType.Smooth
2400Part135.brickColor = BrickColor.new("Really black")
2401Part135.FormFactor = Enum.FormFactor.Plate
2402Part135.formFactor = Enum.FormFactor.Plate
2403BlockMesh136.Parent = Part135
2404BlockMesh136.Scale = Vector3.new(0.391304344, 0.0434782617, 0.173913047)
2405Part137.Parent = Tool0
2406Part137.CFrame = CFrame.new(5.75726318, 1.08803701, -59.1782227, -0.978074372, -0.0158441626, 0.207646206, -0.00903275982, 0.999391377, 0.0337103829, -0.208053336, 0.0310957916, -0.977621377)
2407Part137.Orientation = Vector3.new(-1.92999995, 168.009995, -0.519999981)
2408Part137.Position = Vector3.new(5.75726318, 1.08803701, -59.1782227)
2409Part137.Rotation = Vector3.new(-178.029999, 11.9799995, 179.069992)
2410Part137.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2411Part137.Size = Vector3.new(1, 1, 1)
2412Part137.Anchored = true
2413Part137.BottomSurface = Enum.SurfaceType.Smooth
2414Part137.BrickColor = BrickColor.new("Really black")
2415Part137.CanCollide = false
2416Part137.Reflectance = 0.10000000149012
2417Part137.TopSurface = Enum.SurfaceType.Smooth
2418Part137.brickColor = BrickColor.new("Really black")
2419Part137.FormFactor = Enum.FormFactor.Symmetric
2420Part137.formFactor = Enum.FormFactor.Symmetric
2421BlockMesh138.Parent = Part137
2422BlockMesh138.Scale = Vector3.new(0.130434781, 0.0434782617, 0.0434782617)
2423Part139.Parent = Tool0
2424Part139.CFrame = CFrame.new(5.72766113, 1.07742596, -58.8521729, -0.891004562, -0.0158441626, 0.453715056, -8.91112322e-08, 0.999391377, 0.0348995738, -0.453991085, 0.0310957916, -0.890461504)
2425Part139.Orientation = Vector3.new(-2, 153, 0)
2426Part139.Position = Vector3.new(5.72766113, 1.07742596, -58.8521729)
2427Part139.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2428Part139.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2429Part139.Size = Vector3.new(1, 1, 1)
2430Part139.Anchored = true
2431Part139.BottomSurface = Enum.SurfaceType.Smooth
2432Part139.BrickColor = BrickColor.new("Really black")
2433Part139.CanCollide = false
2434Part139.Reflectance = 0.10000000149012
2435Part139.TopSurface = Enum.SurfaceType.Smooth
2436Part139.brickColor = BrickColor.new("Really black")
2437Part139.FormFactor = Enum.FormFactor.Symmetric
2438Part139.formFactor = Enum.FormFactor.Symmetric
2439BlockMesh140.Parent = Part139
2440BlockMesh140.Scale = Vector3.new(0.130434781, 0.0434782617, 0.0434782617)
2441Part141.Parent = Tool0
2442Part141.CFrame = CFrame.new(5.55682278, 1.08681703, -59.2408447, -0.939657092, -0.0158441626, 0.341747165, -0.00425327616, 0.999391377, 0.0346394368, -0.34208703, 0.0310957916, -0.939151764)
2443Part141.Orientation = Vector3.new(-1.99000001, 160, -0.239999995)
2444Part141.Position = Vector3.new(5.55682278, 1.08681703, -59.2408447)
2445Part141.Rotation = Vector3.new(-177.889999, 19.9799995, 179.029999)
2446Part141.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2447Part141.Size = Vector3.new(1, 1, 1)
2448Part141.Anchored = true
2449Part141.BottomSurface = Enum.SurfaceType.Smooth
2450Part141.BrickColor = BrickColor.new("Really black")
2451Part141.CanCollide = false
2452Part141.Reflectance = 0.10000000149012
2453Part141.TopSurface = Enum.SurfaceType.Smooth
2454Part141.brickColor = BrickColor.new("Really black")
2455Part141.FormFactor = Enum.FormFactor.Symmetric
2456Part141.formFactor = Enum.FormFactor.Symmetric
2457BlockMesh142.Parent = Part141
2458BlockMesh142.Scale = Vector3.new(0.304347813, 0.0434782617, 0.0434782617)
2459Part143.Parent = Tool0
2460Part143.CFrame = CFrame.new(4.28735304, 1.04902804, -58.6732178, -0.978074431, -0.0158441477, 0.207646117, -0.00903275982, 0.999391377, 0.0337103345, -0.208053246, 0.0310957562, -0.977621436)
2461Part143.Orientation = Vector3.new(-1.92999995, 168.009995, -0.519999981)
2462Part143.Position = Vector3.new(4.28735304, 1.04902804, -58.6732178)
2463Part143.Rotation = Vector3.new(-178.029999, 11.9799995, 179.069992)
2464Part143.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2465Part143.Size = Vector3.new(1, 1, 1)
2466Part143.Anchored = true
2467Part143.BottomSurface = Enum.SurfaceType.Smooth
2468Part143.BrickColor = BrickColor.new("Really black")
2469Part143.CanCollide = false
2470Part143.Reflectance = 0.10000000149012
2471Part143.TopSurface = Enum.SurfaceType.Smooth
2472Part143.brickColor = BrickColor.new("Really black")
2473Part143.FormFactor = Enum.FormFactor.Symmetric
2474Part143.formFactor = Enum.FormFactor.Symmetric
2475CylinderMesh144.Parent = Part143
2476CylinderMesh144.Scale = Vector3.new(0.0304347817, 0.173913047, 0.0304347817)
2477Part145.Parent = Tool0
2478Part145.CFrame = CFrame.new(5.73571777, 1.09439301, -59.3936768, 0.052573517, -0.998490155, 0.0158441626, -0.0302238651, -0.0174498633, -0.999391377, 0.998157859, 0.0520628802, -0.0310957767)
2479Part145.Orientation = Vector3.new(88, 153, -120)
2480Part145.Position = Vector3.new(5.73571777, 1.09439301, -59.3936768)
2481Part145.Rotation = Vector3.new(91.7799988, 0.909999967, 86.9899979)
2482Part145.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2483Part145.Size = Vector3.new(1, 0.400000006, 1)
2484Part145.Anchored = true
2485Part145.BottomSurface = Enum.SurfaceType.Smooth
2486Part145.BrickColor = BrickColor.new("Really black")
2487Part145.CanCollide = false
2488Part145.Reflectance = 0.10000000149012
2489Part145.TopSurface = Enum.SurfaceType.Smooth
2490Part145.brickColor = BrickColor.new("Really black")
2491Part145.FormFactor = Enum.FormFactor.Plate
2492Part145.formFactor = Enum.FormFactor.Plate
2493BlockMesh146.Parent = Part145
2494BlockMesh146.Scale = Vector3.new(0.391304344, 0.0434782617, 0.173913047)
2495Part147.Parent = Tool0
2496Part147.CFrame = CFrame.new(5.17410278, 1.11723495, -60.4134521, -0.743215442, -0.0158440806, 0.668862998, 0.00903252512, 0.999391317, 0.0337103121, -0.668989003, 0.0310956724, -0.742619395)
2497Part147.Orientation = Vector3.new(-1.92999995, 137.98999, 0.519999981)
2498Part147.Position = Vector3.new(5.17410278, 1.11723495, -60.4134521)
2499Part147.Rotation = Vector3.new(-177.399994, 41.9799995, 178.779999)
2500Part147.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2501Part147.Size = Vector3.new(1, 1, 1)
2502Part147.Anchored = true
2503Part147.BottomSurface = Enum.SurfaceType.Smooth
2504Part147.BrickColor = BrickColor.new("Really black")
2505Part147.CanCollide = false
2506Part147.Reflectance = 0.10000000149012
2507Part147.TopSurface = Enum.SurfaceType.Smooth
2508Part147.brickColor = BrickColor.new("Really black")
2509Part147.FormFactor = Enum.FormFactor.Symmetric
2510Part147.formFactor = Enum.FormFactor.Symmetric
2511CylinderMesh148.Parent = Part147
2512CylinderMesh148.Scale = Vector3.new(0.0304347817, 0.173913047, 0.0304347817)
2513Part149.Parent = Tool0
2514Part149.CFrame = CFrame.new(5.36730909, 1.15832901, -60.2376099, 0.74321413, -0.668864191, 0.0158441402, -0.00903258659, -0.0337103829, -0.999391377, 0.668990195, 0.742618263, -0.0310957506)
2515Part149.Orientation = Vector3.new(88, 153, -165)
2516Part149.Position = Vector3.new(5.36730909, 1.15832901, -60.2376099)
2517Part149.Rotation = Vector3.new(91.7799988, 0.909999967, 41.9899979)
2518Part149.Color = Color3.new(0.843137, 0.772549, 0.603922)
2519Part149.Size = Vector3.new(1, 0.400000006, 1)
2520Part149.Anchored = true
2521Part149.BottomSurface = Enum.SurfaceType.Smooth
2522Part149.BrickColor = BrickColor.new("Brick yellow")
2523Part149.CanCollide = false
2524Part149.TopSurface = Enum.SurfaceType.Smooth
2525Part149.brickColor = BrickColor.new("Brick yellow")
2526Part149.FormFactor = Enum.FormFactor.Plate
2527Part149.formFactor = Enum.FormFactor.Plate
2528BlockMesh150.Parent = Part149
2529BlockMesh150.Scale = Vector3.new(0.739130437, 0.0869565234, 0.0434782617)
2530Part151.Parent = Tool0
2531Part151.CFrame = CFrame.new(5.3687129, 1.07141304, -60.2402954, 0.743215442, -0.668862998, 0.0158441588, -0.00903241895, -0.0337103121, -0.999391317, 0.668989003, 0.742619395, -0.0310956016)
2532Part151.Orientation = Vector3.new(88, 153, -165)
2533Part151.Position = Vector3.new(5.3687129, 1.07141304, -60.2402954)
2534Part151.Rotation = Vector3.new(91.7799988, 0.909999967, 41.9899979)
2535Part151.Color = Color3.new(0.843137, 0.772549, 0.603922)
2536Part151.Size = Vector3.new(1, 0.400000006, 1)
2537Part151.Anchored = true
2538Part151.BottomSurface = Enum.SurfaceType.Smooth
2539Part151.BrickColor = BrickColor.new("Brick yellow")
2540Part151.CanCollide = false
2541Part151.TopSurface = Enum.SurfaceType.Smooth
2542Part151.brickColor = BrickColor.new("Brick yellow")
2543Part151.FormFactor = Enum.FormFactor.Plate
2544Part151.formFactor = Enum.FormFactor.Plate
2545BlockMesh152.Parent = Part151
2546BlockMesh152.Scale = Vector3.new(0.739130437, 0.0869565234, 0.0434782617)
2547Part153.Parent = Tool0
2548Part153.CFrame = CFrame.new(5.89385986, 1.08633494, -59.053833, -0.0158441979, -0.891004562, -0.453714997, 0.999391377, -1.30599318e-07, -0.0348995589, 0.0310957693, -0.453991085, 0.890461385)
2549Part153.Orientation = Vector3.new(2, -27, 90)
2550Part153.Position = Vector3.new(5.89385986, 1.08633494, -59.053833)
2551Part153.Rotation = Vector3.new(2.24000001, -26.9799995, 91.0199966)
2552Part153.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2553Part153.Size = Vector3.new(1, 0.400000006, 1)
2554Part153.Anchored = true
2555Part153.BottomSurface = Enum.SurfaceType.Smooth
2556Part153.BrickColor = BrickColor.new("Really black")
2557Part153.CanCollide = false
2558Part153.Reflectance = 0.10000000149012
2559Part153.TopSurface = Enum.SurfaceType.Smooth
2560Part153.brickColor = BrickColor.new("Really black")
2561Part153.FormFactor = Enum.FormFactor.Plate
2562Part153.formFactor = Enum.FormFactor.Plate
2563BlockMesh154.Parent = Part153
2564BlockMesh154.Scale = Vector3.new(0.0434782617, 0.0434782617, 0.0869565234)
2565Part155.Parent = Tool0
2566Part155.CFrame = CFrame.new(5.88500977, 1.02039599, -59.036499, -0.0158441979, -0.891004562, -0.453714997, 0.999391377, -1.30599318e-07, -0.0348995589, 0.0310957693, -0.453991085, 0.890461385)
2567Part155.Orientation = Vector3.new(2, -27, 90)
2568Part155.Position = Vector3.new(5.88500977, 1.02039599, -59.036499)
2569Part155.Rotation = Vector3.new(2.24000001, -26.9799995, 91.0199966)
2570Part155.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2571Part155.Size = Vector3.new(1, 0.400000006, 1)
2572Part155.Anchored = true
2573Part155.BottomSurface = Enum.SurfaceType.Smooth
2574Part155.BrickColor = BrickColor.new("Really black")
2575Part155.CanCollide = false
2576Part155.Reflectance = 0.10000000149012
2577Part155.TopSurface = Enum.SurfaceType.Smooth
2578Part155.brickColor = BrickColor.new("Really black")
2579Part155.FormFactor = Enum.FormFactor.Plate
2580Part155.formFactor = Enum.FormFactor.Plate
2581BlockMesh156.Parent = Part155
2582BlockMesh156.Scale = Vector3.new(0.0869565234, 0.0434782617, 0.0434782617)
2583Part157.Parent = Tool0
2584Part157.CFrame = CFrame.new(1.90228295, 0.991778016, -60.9846191, -0.453715086, -0.0154091343, -0.891012132, -0.0348995663, 0.999391258, 0.000487846322, 0.890461445, 0.0313174427, -0.453975767)
2585Part157.Orientation = Vector3.new(-0.0299999993, -117, -2)
2586Part157.Position = Vector3.new(1.90228295, 0.991778016, -60.9846191)
2587Part157.Rotation = Vector3.new(-179.940002, -63, 178.050003)
2588Part157.Color = Color3.new(0.843137, 0.772549, 0.603922)
2589Part157.Size = Vector3.new(1, 1, 1)
2590Part157.Anchored = true
2591Part157.BottomSurface = Enum.SurfaceType.Smooth
2592Part157.BrickColor = BrickColor.new("Brick yellow")
2593Part157.CanCollide = false
2594Part157.TopSurface = Enum.SurfaceType.Smooth
2595Part157.brickColor = BrickColor.new("Brick yellow")
2596Part157.FormFactor = Enum.FormFactor.Symmetric
2597Part157.formFactor = Enum.FormFactor.Symmetric
2598SpecialMesh158.Parent = Part157
2599SpecialMesh158.Scale = Vector3.new(0.130434781, 0.347826093, 0.173913047)
2600SpecialMesh158.MeshType = Enum.MeshType.Wedge
2601Part159.Parent = Tool0
2602Part159.CFrame = CFrame.new(5.17410278, 1.11723495, -60.4134521, -0.453713655, -0.0158440918, -0.891005278, -0.0348994136, 0.999391317, -1.43317962e-07, 0.890462279, 0.0310956463, -0.453989655)
2603Part159.Orientation = Vector3.new(0, -117, -2)
2604Part159.Position = Vector3.new(5.17410278, 1.11723495, -60.4134521)
2605Part159.Rotation = Vector3.new(180, -63, 178)
2606Part159.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2607Part159.Size = Vector3.new(1, 1, 1)
2608Part159.Anchored = true
2609Part159.BottomSurface = Enum.SurfaceType.Smooth
2610Part159.BrickColor = BrickColor.new("Really black")
2611Part159.CanCollide = false
2612Part159.Reflectance = 0.10000000149012
2613Part159.TopSurface = Enum.SurfaceType.Smooth
2614Part159.brickColor = BrickColor.new("Really black")
2615Part159.FormFactor = Enum.FormFactor.Symmetric
2616Part159.formFactor = Enum.FormFactor.Symmetric
2617CylinderMesh160.Parent = Part159
2618CylinderMesh160.Scale = Vector3.new(0.217391297, 0.0304347817, 0.217391297)
2619Part161.Parent = Tool0
2620Part161.CFrame = CFrame.new(5.05639601, 1.10209703, -58.5893555, -0.950860322, -0.309210569, 0.0158441328, -0.0246777516, 0.0246776324, -0.999391377, 0.308631331, -0.950671613, -0.0310957562)
2621Part161.Orientation = Vector3.new(88, 153, -45)
2622Part161.Position = Vector3.new(5.05639601, 1.10209703, -58.5893555)
2623Part161.Rotation = Vector3.new(91.7799988, 0.909999967, 161.98999)
2624Part161.Color = Color3.new(0.843137, 0.772549, 0.603922)
2625Part161.Size = Vector3.new(1, 0.400000006, 1)
2626Part161.Anchored = true
2627Part161.BottomSurface = Enum.SurfaceType.Smooth
2628Part161.BrickColor = BrickColor.new("Brick yellow")
2629Part161.CanCollide = false
2630Part161.TopSurface = Enum.SurfaceType.Smooth
2631Part161.brickColor = BrickColor.new("Brick yellow")
2632Part161.FormFactor = Enum.FormFactor.Plate
2633Part161.formFactor = Enum.FormFactor.Plate
2634BlockMesh162.Parent = Part161
2635BlockMesh162.Scale = Vector3.new(0.347826093, 0.0869565234, 0.0434782617)
2636Part163.Parent = Tool0
2637Part163.CFrame = CFrame.new(5.69113111, 1.06392896, -59.835144, 0.309211999, -0.950859904, 0.0158441216, -0.0246774796, -0.0246777385, -0.999391317, 0.950671077, 0.308632702, -0.031095624)
2638Part163.Orientation = Vector3.new(88, 153, -135)
2639Part163.Position = Vector3.new(5.69113111, 1.06392896, -59.835144)
2640Part163.Rotation = Vector3.new(91.7799988, 0.909999967, 71.9899979)
2641Part163.Color = Color3.new(0.843137, 0.772549, 0.603922)
2642Part163.Size = Vector3.new(1, 0.400000006, 1)
2643Part163.Anchored = true
2644Part163.BottomSurface = Enum.SurfaceType.Smooth
2645Part163.BrickColor = BrickColor.new("Brick yellow")
2646Part163.CanCollide = false
2647Part163.TopSurface = Enum.SurfaceType.Smooth
2648Part163.brickColor = BrickColor.new("Brick yellow")
2649Part163.FormFactor = Enum.FormFactor.Plate
2650Part163.formFactor = Enum.FormFactor.Plate
2651BlockMesh164.Parent = Part163
2652BlockMesh164.Scale = Vector3.new(0.347826093, 0.0869565234, 0.0434782617)
2653Part165.Parent = Tool0
2654Part165.CFrame = CFrame.new(4.54177809, 1.09481895, -58.6175537, 0.978074431, -0.207646117, 0.0158441253, 0.00903273653, -0.0337103345, -0.999391377, 0.208053246, 0.977621436, -0.0310957581)
2655Part165.Orientation = Vector3.new(88, 153, 165)
2656Part165.Position = Vector3.new(4.54177809, 1.09481895, -58.6175537)
2657Part165.Rotation = Vector3.new(91.7799988, 0.909999967, 11.9899998)
2658Part165.Color = Color3.new(0.843137, 0.772549, 0.603922)
2659Part165.Size = Vector3.new(1, 0.400000006, 1)
2660Part165.Anchored = true
2661Part165.BottomSurface = Enum.SurfaceType.Smooth
2662Part165.BrickColor = BrickColor.new("Brick yellow")
2663Part165.CanCollide = false
2664Part165.TopSurface = Enum.SurfaceType.Smooth
2665Part165.brickColor = BrickColor.new("Brick yellow")
2666Part165.FormFactor = Enum.FormFactor.Plate
2667Part165.formFactor = Enum.FormFactor.Plate
2668BlockMesh166.Parent = Part165
2669BlockMesh166.Scale = Vector3.new(0.739130437, 0.0869565234, 0.0434782617)
2670Part167.Parent = Tool0
2671Part167.CFrame = CFrame.new(1.58929396, 1.18733501, -61.1364136, -0.453715086, -0.0154091343, -0.891012132, -0.0348995663, 0.999391258, 0.000487846322, 0.890461445, 0.0313174427, -0.453975767)
2672Part167.Orientation = Vector3.new(-0.0299999993, -117, -2)
2673Part167.Position = Vector3.new(1.58929396, 1.18733501, -61.1364136)
2674Part167.Rotation = Vector3.new(-179.940002, -63, 178.050003)
2675Part167.Color = Color3.new(0.843137, 0.772549, 0.603922)
2676Part167.Size = Vector3.new(1, 1, 1)
2677Part167.Anchored = true
2678Part167.BottomSurface = Enum.SurfaceType.Smooth
2679Part167.BrickColor = BrickColor.new("Brick yellow")
2680Part167.CanCollide = false
2681Part167.TopSurface = Enum.SurfaceType.Smooth
2682Part167.brickColor = BrickColor.new("Brick yellow")
2683Part167.FormFactor = Enum.FormFactor.Symmetric
2684Part167.formFactor = Enum.FormFactor.Symmetric
2685SpecialMesh168.Parent = Part167
2686SpecialMesh168.Scale = Vector3.new(0.130434781, 0.0434782617, 0.521739125)
2687SpecialMesh168.MeshType = Enum.MeshType.Wedge
2688Part169.Parent = Tool0
2689Part169.CFrame = CFrame.new(2.71838403, 0.830904007, -60.5751343, 0.891039908, -0.0154090934, -0.453660578, -0.000485671277, 0.999391198, -0.0348994248, 0.453921288, 0.0313172527, 0.89048934)
2690Part169.Orientation = Vector3.new(2, -27, -0.0299999993)
2691Part169.Position = Vector3.new(2.71838403, 0.830904007, -60.5751343)
2692Part169.Rotation = Vector3.new(2.24000001, -26.9799995, 0.98999995)
2693Part169.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2694Part169.Size = Vector3.new(1, 1, 1)
2695Part169.Anchored = true
2696Part169.BottomSurface = Enum.SurfaceType.Smooth
2697Part169.BrickColor = BrickColor.new("Really black")
2698Part169.CanCollide = false
2699Part169.Reflectance = 0.10000000149012
2700Part169.TopSurface = Enum.SurfaceType.Smooth
2701Part169.brickColor = BrickColor.new("Really black")
2702Part169.FormFactor = Enum.FormFactor.Symmetric
2703Part169.formFactor = Enum.FormFactor.Symmetric
2704SpecialMesh170.Parent = Part169
2705SpecialMesh170.MeshId = "http://www.roblox.com/asset/?id=3270017"
2706SpecialMesh170.Scale = Vector3.new(0.347826093, 0.260869563, 0.434782594)
2707SpecialMesh170.MeshType = Enum.MeshType.FileMesh
2708Part171.Parent = Tool0
2709Part171.CFrame = CFrame.new(2.02056909, 0.861414015, -60.9294434, -0.453714997, -0.0158441309, -0.891004443, -0.0348995589, 0.999391258, -5.30958957e-08, 0.890461385, 0.0310958009, -0.453991085)
2710Part171.Orientation = Vector3.new(0, -117, -2)
2711Part171.Position = Vector3.new(2.02056909, 0.861414015, -60.9294434)
2712Part171.Rotation = Vector3.new(180, -63, 178)
2713Part171.Color = Color3.new(0.843137, 0.772549, 0.603922)
2714Part171.Size = Vector3.new(1, 1, 1)
2715Part171.Anchored = true
2716Part171.BottomSurface = Enum.SurfaceType.Smooth
2717Part171.BrickColor = BrickColor.new("Brick yellow")
2718Part171.CanCollide = false
2719Part171.TopSurface = Enum.SurfaceType.Smooth
2720Part171.brickColor = BrickColor.new("Brick yellow")
2721Part171.FormFactor = Enum.FormFactor.Symmetric
2722Part171.formFactor = Enum.FormFactor.Symmetric
2723SpecialMesh172.Parent = Part171
2724SpecialMesh172.Scale = Vector3.new(0.130434781, 0.0869565234, 0.260869563)
2725SpecialMesh172.MeshType = Enum.MeshType.Wedge
2726Part173.Parent = Tool0
2727Part173.CFrame = CFrame.new(5.76620483, 1.01737499, -59.4193726, 0.0525752716, 0.0158441346, 0.998490036, -0.030223703, -0.999391317, 0.0174498856, 0.99815774, -0.031095637, -0.0520647019)
2728Part173.Orientation = Vector3.new(-1, 92.9799957, -178.269989)
2729Part173.Position = Vector3.new(5.76620483, 1.01737499, -59.4193726)
2730Part173.Rotation = Vector3.new(-161.470001, 86.8499985, -16.7700005)
2731Part173.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2732Part173.Size = Vector3.new(1, 0.400000006, 1)
2733Part173.Anchored = true
2734Part173.BottomSurface = Enum.SurfaceType.Smooth
2735Part173.BrickColor = BrickColor.new("Really black")
2736Part173.CanCollide = false
2737Part173.Reflectance = 0.10000000149012
2738Part173.TopSurface = Enum.SurfaceType.Smooth
2739Part173.brickColor = BrickColor.new("Really black")
2740Part173.FormFactor = Enum.FormFactor.Plate
2741Part173.formFactor = Enum.FormFactor.Plate
2742BlockMesh174.Parent = Part173
2743BlockMesh174.Scale = Vector3.new(0.347826093, 0.0434782617, 0.0434782617)
2744Part175.Parent = Tool0
2745Part175.CFrame = CFrame.new(5.80761719, 1.07970595, -58.8845825, -0.0158441551, -0.891004682, -0.453714877, 0.999391377, -9.39702858e-08, -0.0348995551, 0.0310957767, -0.453990936, 0.890461385)
2746Part175.Orientation = Vector3.new(2, -27, 90)
2747Part175.Position = Vector3.new(5.80761719, 1.07970595, -58.8845825)
2748Part175.Rotation = Vector3.new(2.24000001, -26.9799995, 91.0199966)
2749Part175.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2750Part175.Size = Vector3.new(1, 0.400000006, 1)
2751Part175.Anchored = true
2752Part175.BottomSurface = Enum.SurfaceType.Smooth
2753Part175.BrickColor = BrickColor.new("Really black")
2754Part175.CanCollide = false
2755Part175.Reflectance = 0.10000000149012
2756Part175.TopSurface = Enum.SurfaceType.Smooth
2757Part175.brickColor = BrickColor.new("Really black")
2758Part175.FormFactor = Enum.FormFactor.Plate
2759Part175.formFactor = Enum.FormFactor.Plate
2760BlockMesh176.Parent = Part175
2761BlockMesh176.Scale = Vector3.new(0.0434782617, 0.0434782617, 0.0869565234)
2762Part177.Parent = Tool0
2763Part177.CFrame = CFrame.new(5.81851196, 1.01528394, -58.9060059, -0.0158441979, -0.891004562, -0.453714997, 0.999391377, -1.30599318e-07, -0.0348995589, 0.0310957693, -0.453991085, 0.890461385)
2764Part177.Orientation = Vector3.new(2, -27, 90)
2765Part177.Position = Vector3.new(5.81851196, 1.01528394, -58.9060059)
2766Part177.Rotation = Vector3.new(2.24000001, -26.9799995, 91.0199966)
2767Part177.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2768Part177.Size = Vector3.new(1, 0.400000006, 1)
2769Part177.Anchored = true
2770Part177.BottomSurface = Enum.SurfaceType.Smooth
2771Part177.BrickColor = BrickColor.new("Really black")
2772Part177.CanCollide = false
2773Part177.Reflectance = 0.10000000149012
2774Part177.TopSurface = Enum.SurfaceType.Smooth
2775Part177.brickColor = BrickColor.new("Really black")
2776Part177.FormFactor = Enum.FormFactor.Plate
2777Part177.formFactor = Enum.FormFactor.Plate
2778BlockMesh178.Parent = Part177
2779BlockMesh178.Scale = Vector3.new(0.0869565234, 0.0434782617, 0.0434782617)
2780Part179.Parent = Tool0
2781Part179.CFrame = CFrame.new(5.76062012, 1.09551501, -59.416687, 0.0525734276, -0.998490095, 0.0158441626, -0.0302238669, -0.0174498595, -0.999391377, 0.99815774, 0.0520628802, -0.0310957767)
2782Part179.Orientation = Vector3.new(88, 153, -120)
2783Part179.Position = Vector3.new(5.76062012, 1.09551501, -59.416687)
2784Part179.Rotation = Vector3.new(91.7799988, 0.909999967, 86.9899979)
2785Part179.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2786Part179.Size = Vector3.new(1, 0.400000006, 1)
2787Part179.Anchored = true
2788Part179.BottomSurface = Enum.SurfaceType.Smooth
2789Part179.BrickColor = BrickColor.new("Really black")
2790Part179.CanCollide = false
2791Part179.Reflectance = 0.10000000149012
2792Part179.TopSurface = Enum.SurfaceType.Smooth
2793Part179.brickColor = BrickColor.new("Really black")
2794Part179.FormFactor = Enum.FormFactor.Plate
2795Part179.formFactor = Enum.FormFactor.Plate
2796BlockMesh180.Parent = Part179
2797BlockMesh180.Scale = Vector3.new(0.347826093, 0.0869565234, 0.0434782617)
2798Part181.Parent = Tool0
2799Part181.CFrame = CFrame.new(5.85220289, 0.996111989, -58.9720459, -0.0158442929, -0.891004562, -0.453715086, 0.999391377, -1.62096498e-07, -0.0348997153, 0.0310958885, -0.453991085, 0.890461445)
2800Part181.Orientation = Vector3.new(2, -27, 90)
2801Part181.Position = Vector3.new(5.85220289, 0.996111989, -58.9720459)
2802Part181.Rotation = Vector3.new(2.24000001, -26.9799995, 91.0199966)
2803Part181.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2804Part181.Size = Vector3.new(1, 0.400000006, 1)
2805Part181.Anchored = true
2806Part181.BottomSurface = Enum.SurfaceType.Smooth
2807Part181.BrickColor = BrickColor.new("Really black")
2808Part181.CanCollide = false
2809Part181.Reflectance = 0.10000000149012
2810Part181.TopSurface = Enum.SurfaceType.Smooth
2811Part181.brickColor = BrickColor.new("Really black")
2812Part181.FormFactor = Enum.FormFactor.Plate
2813Part181.formFactor = Enum.FormFactor.Plate
2814BlockMesh182.Parent = Part181
2815BlockMesh182.Scale = Vector3.new(0.0434782617, 0.0434782617, 0.173913047)
2816Part183.Parent = Tool0
2817Part183.CFrame = CFrame.new(5.39855909, 1.11264896, -58.7540894, -0.83843106, -0.544775248, 0.0158441775, -0.0302239712, 0.0174496975, -0.999391377, 0.544166982, -0.838398695, -0.0310957674)
2818Part183.Orientation = Vector3.new(88, 153, -60)
2819Part183.Position = Vector3.new(5.39855909, 1.11264896, -58.7540894)
2820Part183.Rotation = Vector3.new(91.7799988, 0.909999967, 146.98999)
2821Part183.Color = Color3.new(0.843137, 0.772549, 0.603922)
2822Part183.Size = Vector3.new(1, 0.400000006, 1)
2823Part183.Anchored = true
2824Part183.BottomSurface = Enum.SurfaceType.Smooth
2825Part183.BrickColor = BrickColor.new("Brick yellow")
2826Part183.CanCollide = false
2827Part183.TopSurface = Enum.SurfaceType.Smooth
2828Part183.brickColor = BrickColor.new("Brick yellow")
2829Part183.FormFactor = Enum.FormFactor.Plate
2830Part183.formFactor = Enum.FormFactor.Plate
2831BlockMesh184.Parent = Part183
2832BlockMesh184.Scale = Vector3.new(0.434782594, 0.0869565234, 0.0434782617)
2833Part185.Parent = Tool0
2834Part185.CFrame = CFrame.new(5.3999629, 1.02575195, -58.7567749, -0.838430882, -0.544775069, 0.01584417, -0.0302239638, 0.0174496844, -0.999391377, 0.544166803, -0.838398278, -0.0310957693)
2835Part185.Orientation = Vector3.new(88, 153, -60)
2836Part185.Position = Vector3.new(5.3999629, 1.02575195, -58.7567749)
2837Part185.Rotation = Vector3.new(91.7799988, 0.909999967, 146.98999)
2838Part185.Color = Color3.new(0.843137, 0.772549, 0.603922)
2839Part185.Size = Vector3.new(1, 0.400000006, 1)
2840Part185.Anchored = true
2841Part185.BottomSurface = Enum.SurfaceType.Smooth
2842Part185.BrickColor = BrickColor.new("Brick yellow")
2843Part185.CanCollide = false
2844Part185.TopSurface = Enum.SurfaceType.Smooth
2845Part185.brickColor = BrickColor.new("Brick yellow")
2846Part185.FormFactor = Enum.FormFactor.Plate
2847Part185.formFactor = Enum.FormFactor.Plate
2848BlockMesh186.Parent = Part185
2849BlockMesh186.Scale = Vector3.new(0.434782594, 0.0869565234, 0.0434782617)
2850Part187.Parent = Tool0
2851Part187.CFrame = CFrame.new(5.43572998, 1.07052004, -58.7790527, -0.838431001, -0.544775248, 0.0158441402, -0.0302239228, 0.0174496938, -0.999391377, 0.544166923, -0.838398635, -0.0310957506)
2852Part187.Orientation = Vector3.new(88, 153, -60)
2853Part187.Position = Vector3.new(5.43572998, 1.07052004, -58.7790527)
2854Part187.Rotation = Vector3.new(91.7799988, 0.909999967, 146.98999)
2855Part187.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2856Part187.Size = Vector3.new(1, 0.400000006, 1)
2857Part187.Anchored = true
2858Part187.BottomSurface = Enum.SurfaceType.Smooth
2859Part187.BrickColor = BrickColor.new("Really black")
2860Part187.CanCollide = false
2861Part187.Reflectance = 0.10000000149012
2862Part187.TopSurface = Enum.SurfaceType.Smooth
2863Part187.brickColor = BrickColor.new("Really black")
2864Part187.FormFactor = Enum.FormFactor.Plate
2865Part187.formFactor = Enum.FormFactor.Plate
2866BlockMesh188.Parent = Part187
2867BlockMesh188.Scale = Vector3.new(0.347826093, 0.0869565234, 0.0434782617)
2868Part189.Parent = Tool0
2869Part189.CFrame = CFrame.new(2.25372291, 0.756075978, -60.8147583, -0.779554725, 0.431780905, 0.453715086, 0.499695599, 0.865498424, 0.0348995663, -0.377619922, 0.253925294, -0.890461445)
2870Part189.Orientation = Vector3.new(-2, 153, 30)
2871Part189.Position = Vector3.new(2.25372291, 0.756075978, -60.8147583)
2872Part189.Rotation = Vector3.new(-177.759995, 26.9799995, -151.019989)
2873Part189.Color = Color3.new(0.843137, 0.772549, 0.603922)
2874Part189.Size = Vector3.new(1, 1, 1)
2875Part189.Anchored = true
2876Part189.BottomSurface = Enum.SurfaceType.Smooth
2877Part189.BrickColor = BrickColor.new("Brick yellow")
2878Part189.CanCollide = false
2879Part189.TopSurface = Enum.SurfaceType.Smooth
2880Part189.brickColor = BrickColor.new("Brick yellow")
2881Part189.FormFactor = Enum.FormFactor.Symmetric
2882Part189.formFactor = Enum.FormFactor.Symmetric
2883BlockMesh190.Parent = Part189
2884BlockMesh190.Scale = Vector3.new(0.217391297, 0.173913047, 0.173913047)
2885Part191.Parent = Tool0
2886Part191.CFrame = CFrame.new(5.7590332, 1.05337703, -59.4614868, 0.0525734276, -0.998490095, 0.0158441626, -0.0302238669, -0.0174498595, -0.999391377, 0.99815774, 0.0520628802, -0.0310957767)
2887Part191.Orientation = Vector3.new(88, 153, -120)
2888Part191.Position = Vector3.new(5.7590332, 1.05337703, -59.4614868)
2889Part191.Rotation = Vector3.new(91.7799988, 0.909999967, 86.9899979)
2890Part191.Color = Color3.new(0.843137, 0.772549, 0.603922)
2891Part191.Size = Vector3.new(1, 0.400000006, 1)
2892Part191.Anchored = true
2893Part191.BottomSurface = Enum.SurfaceType.Smooth
2894Part191.BrickColor = BrickColor.new("Brick yellow")
2895Part191.CanCollide = false
2896Part191.TopSurface = Enum.SurfaceType.Smooth
2897Part191.brickColor = BrickColor.new("Brick yellow")
2898Part191.FormFactor = Enum.FormFactor.Plate
2899Part191.formFactor = Enum.FormFactor.Plate
2900BlockMesh192.Parent = Part191
2901BlockMesh192.Scale = Vector3.new(0.434782594, 0.0869565234, 0.0434782617)
2902Part193.Parent = Tool0
2903Part193.CFrame = CFrame.new(2.67462206, 1.14819503, -60.5849609, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2904Part193.Orientation = Vector3.new(-2, 153, 0)
2905Part193.Position = Vector3.new(2.67462206, 1.14819503, -60.5849609)
2906Part193.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2907Part193.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2908Part193.Size = Vector3.new(1, 0.400000006, 1)
2909Part193.Anchored = true
2910Part193.BottomSurface = Enum.SurfaceType.Smooth
2911Part193.BrickColor = BrickColor.new("Really black")
2912Part193.CanCollide = false
2913Part193.Reflectance = 0.10000000149012
2914Part193.TopSurface = Enum.SurfaceType.Smooth
2915Part193.brickColor = BrickColor.new("Really black")
2916Part193.FormFactor = Enum.FormFactor.Plate
2917Part193.formFactor = Enum.FormFactor.Plate
2918BlockMesh194.Parent = Part193
2919BlockMesh194.Scale = Vector3.new(0.695652187, 0.173913047, 0.0869565234)
2920Part195.Parent = Tool0
2921Part195.CFrame = CFrame.new(5.43933105, 0.992242992, -58.7778931, 0.838431001, -0.0158441663, 0.544775248, 0.0302239638, 0.999391377, -0.0174497161, -0.544166923, 0.0310957916, 0.838398635)
2922Part195.Orientation = Vector3.new(1, 33.0200005, 1.73000002)
2923Part195.Position = Vector3.new(5.43933105, 0.992242992, -58.7778931)
2924Part195.Rotation = Vector3.new(1.18999994, 33.0099983, 1.07999992)
2925Part195.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
2926Part195.Size = Vector3.new(1, 0.400000006, 1)
2927Part195.Anchored = true
2928Part195.BottomSurface = Enum.SurfaceType.Smooth
2929Part195.BrickColor = BrickColor.new("Really black")
2930Part195.CanCollide = false
2931Part195.Reflectance = 0.10000000149012
2932Part195.TopSurface = Enum.SurfaceType.Smooth
2933Part195.brickColor = BrickColor.new("Really black")
2934Part195.FormFactor = Enum.FormFactor.Plate
2935Part195.formFactor = Enum.FormFactor.Plate
2936BlockMesh196.Parent = Part195
2937BlockMesh196.Scale = Vector3.new(0.347826093, 0.0434782617, 0.0434782617)
2938Part197.Parent = Tool0
2939Part197.CFrame = CFrame.new(5.75762892, 1.14028394, -59.4587402, 0.0525734276, -0.998490036, 0.0158441626, -0.0302238762, -0.0174498539, -0.999391377, 0.99815774, 0.0520628504, -0.0310957916)
2940Part197.Orientation = Vector3.new(88, 153, -120)
2941Part197.Position = Vector3.new(5.75762892, 1.14028394, -59.4587402)
2942Part197.Rotation = Vector3.new(91.7799988, 0.909999967, 86.9899979)
2943Part197.Color = Color3.new(0.843137, 0.772549, 0.603922)
2944Part197.Size = Vector3.new(1, 0.400000006, 1)
2945Part197.Anchored = true
2946Part197.BottomSurface = Enum.SurfaceType.Smooth
2947Part197.BrickColor = BrickColor.new("Brick yellow")
2948Part197.CanCollide = false
2949Part197.TopSurface = Enum.SurfaceType.Smooth
2950Part197.brickColor = BrickColor.new("Brick yellow")
2951Part197.FormFactor = Enum.FormFactor.Plate
2952Part197.formFactor = Enum.FormFactor.Plate
2953BlockMesh198.Parent = Part197
2954BlockMesh198.Scale = Vector3.new(0.434782594, 0.0869565234, 0.0434782617)
2955Part199.Parent = Tool0
2956Part199.CFrame = CFrame.new(1.71273804, 0.731050014, -61.0914307, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2957Part199.Orientation = Vector3.new(-2, 153, 0)
2958Part199.Position = Vector3.new(1.71273804, 0.731050014, -61.0914307)
2959Part199.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2960Part199.Color = Color3.new(0.843137, 0.772549, 0.603922)
2961Part199.Size = Vector3.new(1, 1, 1)
2962Part199.Anchored = true
2963Part199.BottomSurface = Enum.SurfaceType.Smooth
2964Part199.BrickColor = BrickColor.new("Brick yellow")
2965Part199.CanCollide = false
2966Part199.TopSurface = Enum.SurfaceType.Smooth
2967Part199.brickColor = BrickColor.new("Brick yellow")
2968Part199.FormFactor = Enum.FormFactor.Symmetric
2969Part199.formFactor = Enum.FormFactor.Symmetric
2970BlockMesh200.Parent = Part199
2971BlockMesh200.Scale = Vector3.new(1.13043475, 0.173913047, 0.130434781)
2972Part201.Parent = Tool0
2973Part201.CFrame = CFrame.new(1.59030199, 1.12212503, -61.1384277, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
2974Part201.Orientation = Vector3.new(-2, 153, 0)
2975Part201.Position = Vector3.new(1.59030199, 1.12212503, -61.1384277)
2976Part201.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
2977Part201.Color = Color3.new(0.843137, 0.772549, 0.603922)
2978Part201.Size = Vector3.new(1, 1, 1)
2979Part201.Anchored = true
2980Part201.BottomSurface = Enum.SurfaceType.Smooth
2981Part201.BrickColor = BrickColor.new("Brick yellow")
2982Part201.CanCollide = false
2983Part201.TopSurface = Enum.SurfaceType.Smooth
2984Part201.brickColor = BrickColor.new("Brick yellow")
2985Part201.FormFactor = Enum.FormFactor.Symmetric
2986Part201.formFactor = Enum.FormFactor.Symmetric
2987BlockMesh202.Parent = Part201
2988BlockMesh202.Scale = Vector3.new(0.521739125, 0.0869565234, 0.130434781)
2989Part203.Parent = Tool0
2990Part203.CFrame = CFrame.new(1.18835497, 0.818009973, -61.3552246, 0.453714967, -0.891012013, -0.0154090524, 0.0348994769, 0.000487895129, 0.99939096, -0.890461326, -0.453975677, 0.0313173793)
2991Part203.Orientation = Vector3.new(-88, -26.1999989, 89.1999969)
2992Part203.Position = Vector3.new(1.18835497, 0.818009973, -61.3552246)
2993Part203.Rotation = Vector3.new(-88.2099991, -0.879999995, 63.0099983)
2994Part203.Color = Color3.new(0.843137, 0.772549, 0.603922)
2995Part203.Size = Vector3.new(1, 1, 1)
2996Part203.Anchored = true
2997Part203.BottomSurface = Enum.SurfaceType.Smooth
2998Part203.BrickColor = BrickColor.new("Brick yellow")
2999Part203.CanCollide = false
3000Part203.TopSurface = Enum.SurfaceType.Smooth
3001Part203.brickColor = BrickColor.new("Brick yellow")
3002Part203.FormFactor = Enum.FormFactor.Symmetric
3003Part203.formFactor = Enum.FormFactor.Symmetric
3004SpecialMesh204.Parent = Part203
3005SpecialMesh204.Scale = Vector3.new(0.130434781, 0.0434782617, 0.521739125)
3006SpecialMesh204.MeshType = Enum.MeshType.Wedge
3007Part205.Parent = Tool0
3008Part205.CFrame = CFrame.new(1.63735998, 0.600642025, -61.1349487, -0.453714907, 0.890996516, -0.0162792541, -0.034899652, 0.000488072255, 0.99939096, 0.890461206, 0.454006106, 0.0308741815)
3009Part205.Orientation = Vector3.new(-88, -27.7999992, -89.1999969)
3010Part205.Position = Vector3.new(1.63735998, 0.600642025, -61.1349487)
3011Part205.Rotation = Vector3.new(-88.2299957, -0.930000007, -116.989998)
3012Part205.Color = Color3.new(0.843137, 0.772549, 0.603922)
3013Part205.Size = Vector3.new(1, 1, 1)
3014Part205.Anchored = true
3015Part205.BottomSurface = Enum.SurfaceType.Smooth
3016Part205.BrickColor = BrickColor.new("Brick yellow")
3017Part205.CanCollide = false
3018Part205.TopSurface = Enum.SurfaceType.Smooth
3019Part205.brickColor = BrickColor.new("Brick yellow")
3020Part205.FormFactor = Enum.FormFactor.Symmetric
3021Part205.formFactor = Enum.FormFactor.Symmetric
3022SpecialMesh206.Parent = Part205
3023SpecialMesh206.Scale = Vector3.new(0.130434781, 0.956521749, 0.0869565234)
3024SpecialMesh206.MeshType = Enum.MeshType.Wedge
3025Part207.Parent = Tool0
3026Part207.CFrame = CFrame.new(1.515625, 0.948306024, -61.1833496, -0.891004562, -0.0158441626, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348995663, -0.453991085, 0.0310957916, -0.890461445)
3027Part207.Orientation = Vector3.new(-2, 153, 0)
3028Part207.Position = Vector3.new(1.515625, 0.948306024, -61.1833496)
3029Part207.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
3030Part207.Color = Color3.new(0.843137, 0.772549, 0.603922)
3031Part207.Size = Vector3.new(1, 1, 1)
3032Part207.Anchored = true
3033Part207.BottomSurface = Enum.SurfaceType.Smooth
3034Part207.BrickColor = BrickColor.new("Brick yellow")
3035Part207.CanCollide = false
3036Part207.TopSurface = Enum.SurfaceType.Smooth
3037Part207.brickColor = BrickColor.new("Brick yellow")
3038Part207.FormFactor = Enum.FormFactor.Symmetric
3039Part207.formFactor = Enum.FormFactor.Symmetric
3040BlockMesh208.Parent = Part207
3041BlockMesh208.Scale = Vector3.new(0.695652187, 0.260869563, 0.130434781)
3042Part209.Parent = Tool0
3043Part209.CFrame = CFrame.new(4.00524902, 0.821336985, -59.7489014, -0.891004562, -0.0158442371, 0.453715086, -8.72858266e-08, 0.999391377, 0.0348997414, -0.453991085, 0.0310959406, -0.890461445)
3044Part209.Orientation = Vector3.new(-2, 153, 0)
3045Part209.Position = Vector3.new(4.00524902, 0.821336985, -59.7489014)
3046Part209.Rotation = Vector3.new(-177.759995, 26.9799995, 178.979996)
3047Part209.Color = Color3.new(0.843137, 0.772549, 0.603922)
3048Part209.Size = Vector3.new(1, 1, 1)
3049Part209.Anchored = true
3050Part209.BottomSurface = Enum.SurfaceType.Smooth
3051Part209.BrickColor = BrickColor.new("Brick yellow")
3052Part209.CanCollide = false
3053Part209.TopSurface = Enum.SurfaceType.Smooth
3054Part209.brickColor = BrickColor.new("Brick yellow")
3055Part209.FormFactor = Enum.FormFactor.Symmetric
3056Part209.formFactor = Enum.FormFactor.Symmetric
3057SpecialMesh210.Parent = Part209
3058SpecialMesh210.Scale = Vector3.new(0.782608688, 0.0434782617, 0.0434782617)
3059SpecialMesh210.MeshType = Enum.MeshType.Wedge
3060Part211.Parent = Tool0
3061Part211.CFrame = CFrame.new(1.33892798, 1.10033596, -61.267395, 0.453715086, -0.0162791815, 0.890996635, 0.0348995663, 0.999391258, 0.00048802633, -0.890461445, 0.0308741312, 0.454006165)
3062Part211.Orientation = Vector3.new(-0.0299999993, 63, 2)
3063Part211.Position = Vector3.new(1.33892798, 1.10033596, -61.267395)
3064Part211.Rotation = Vector3.new(-0.0599999987, 63, 2.04999995)
3065Part211.Color = Color3.new(0.843137, 0.772549, 0.603922)
3066Part211.Size = Vector3.new(1, 1, 1)
3067Part211.Anchored = true
3068Part211.BottomSurface = Enum.SurfaceType.Smooth
3069Part211.BrickColor = BrickColor.new("Brick yellow")
3070Part211.CanCollide = false
3071Part211.TopSurface = Enum.SurfaceType.Smooth
3072Part211.brickColor = BrickColor.new("Brick yellow")
3073Part211.FormFactor = Enum.FormFactor.Symmetric
3074Part211.formFactor = Enum.FormFactor.Symmetric
3075SpecialMesh212.Parent = Part211
3076SpecialMesh212.Scale = Vector3.new(0.130434781, 0.0434782617, 0.0434782617)
3077SpecialMesh212.MeshType = Enum.MeshType.Wedge
3078Part213.Parent = Tool0
3079Part213.CFrame = CFrame.new(3.36108398, 1.36551094, -60.2266846, -0.453715026, -0.891004562, 0.0158441402, -0.0348995253, -8.66198491e-08, -0.999391377, 0.890461564, -0.453991085, -0.031095745)
3080Part213.Orientation = Vector3.new(88, 153, -90)
3081Part213.Position = Vector3.new(3.36108398, 1.36551094, -60.2266846)
3082Part213.Rotation = Vector3.new(91.7799988, 0.909999967, 116.989998)
3083Part213.Color = Color3.new(0.388235, 0.372549, 0.384314)
3084Part213.Size = Vector3.new(1, 0.400000006, 1)
3085Part213.Anchored = true
3086Part213.BottomSurface = Enum.SurfaceType.Smooth
3087Part213.BrickColor = BrickColor.new("Dark stone grey")
3088Part213.CanCollide = false
3089Part213.Reflectance = 0.30000001192093
3090Part213.TopSurface = Enum.SurfaceType.Smooth
3091Part213.brickColor = BrickColor.new("Dark stone grey")
3092Part213.FormFactor = Enum.FormFactor.Plate
3093Part213.formFactor = Enum.FormFactor.Plate
3094CylinderMesh214.Parent = Part213
3095CylinderMesh214.Scale = Vector3.new(0.195652172, 0.0434782617, 0.195652172)
3096Part215.Name = "A3"
3097Part215.Parent = Tool0
3098Part215.CFrame = CFrame.new(4.24438477, 1.09567404, -59.7872314, 0.453735411, -0.0158436894, 0.890994072, 0.0349010155, 0.999391258, -1.97464465e-06, -0.890451014, 0.0310976505, 0.454011321)
3099Part215.Orientation = Vector3.new(0, 63, 2)
3100Part215.Position = Vector3.new(4.24438477, 1.09567404, -59.7872314)
3101Part215.Rotation = Vector3.new(0, 63, 2)
3102Part215.Color = Color3.new(0.0509804, 0.411765, 0.67451)
3103Part215.Size = Vector3.new(1, 0.400000006, 1)
3104Part215.Anchored = true
3105Part215.BottomSurface = Enum.SurfaceType.Smooth
3106Part215.BrickColor = BrickColor.new("Bright blue")
3107Part215.CanCollide = false
3108Part215.TopSurface = Enum.SurfaceType.Smooth
3109Part215.brickColor = BrickColor.new("Bright blue")
3110Part215.FormFactor = Enum.FormFactor.Plate
3111Part215.formFactor = Enum.FormFactor.Plate
3112SpecialMesh216.Parent = Part215
3113SpecialMesh216.MeshId = "http://www.roblox.com/asset/?id=15887356"
3114SpecialMesh216.Scale = Vector3.new(0.521739125, 0.521739125, 1.26086962)
3115SpecialMesh216.TextureId = "http://www.roblox.com/asset/?id=15886781"
3116SpecialMesh216.MeshType = Enum.MeshType.FileMesh
3117LocalScript217.Name = "GuiScript"
3118LocalScript217.Parent = Tool0
3119table.insert(cors,sandbox(LocalScript217,function()
3120local Tool = script.Parent
3121local Ammo = Tool.Ammo
3122local MaxAmmo = Ammo.Value
3123
3124local vPlayer
3125local Gui
3126local Text
3127
3128function onChanged(value)
3129 if value == "Value" or value == Ammo.Value then
3130 if Gui ~= nil and Text ~= nil then
3131 if Ammo.Value >= 1 then
3132 Text.Text = ""..script.Parent.Ammo.Value.."/"..script.Parent.StoredAmmo.Value..""
3133 elseif math.floor(Ammo.Value) == 0 then
3134 Text.Text = ""..script.Parent.Ammo.Value.."/"..script.Parent.StoredAmmo.Value..""
3135 elseif Ammo.Value < 0 then
3136 for i = 0, 1, 0.03 / 2 do
3137 local Num = math.floor(i * MaxAmmo + 0.5)
3138
3139 Text.Text = ""..script.Parent.Ammo.Value.."/"..script.Parent.StoredAmmo.Value..""
3140 wait()
3141 end
3142 end
3143 end
3144 end
3145end
3146
3147function setUpGui()
3148 if vPlayer == nil or vPlayer:findFirstChild("PlayerGui") == nil then
3149 return
3150 end
3151
3152 Gui = Instance.new("ScreenGui")
3153 Text = Instance.new("TextLabel")
3154
3155 Gui.Name = "CrossbowDisplay"
3156 Gui.Parent = vPlayer.PlayerGui
3157
3158 Text.BackgroundColor3 = BrickColor.Black().Color
3159 Text.BorderColor3 = BrickColor.White().Color
3160 Text.Name = "Ammo"
3161 Text.Parent = Gui
3162 Text.Position = UDim2.new(0, 0, 1, -95)
3163 Text.Size = UDim2.new(0, 120, 0, 20)
3164 Text.Text = ""..script.Parent.Ammo.Value.."/"..script.Parent.StoredAmmo.Value..""
3165 Text.TextColor3 = BrickColor.White().Color
3166end
3167
3168function onEquippedLocal(mouse)
3169 vPlayer = game.Players.LocalPlayer
3170
3171 setUpGui()
3172end
3173
3174function onUnequippedLocal(mouse)
3175 if Gui then
3176 Gui:remove()
3177 end
3178
3179 Gui = nil
3180 Text = nil
3181 vPlayer = nil
3182end
3183
3184Tool.Equipped:connect(onEquippedLocal)
3185Tool.Unequipped:connect(onUnequippedLocal)
3186
3187Ammo.Changed:connect(onChanged)
3188end))
3189for i,v in pairs(mas:GetChildren()) do
3190 v.Parent = game:GetService("Players").LocalPlayer.Backpack
3191 pcall(function() v:MakeJoints() end)
3192end
3193mas:Destroy()
3194for i,v in pairs(cors) do
3195 spawn(function()
3196 pcall(v)
3197 end)
3198end
3199
3200function sandbox(var,func)
3201 local env = getfenv(func)
3202 local newenv = setmetatable({},{
3203 __index = function(self,k)
3204 if k=="script" then
3205 return var
3206 else
3207 return env[k]
3208 end
3209 end,
3210 })
3211 setfenv(func,newenv)
3212 return func
3213end
3214cors = {}
3215mas = Instance.new("Model",game:GetService("Lighting"))
3216Tool0 = Instance.new("Tool")
3217Part1 = Instance.new("Part")
3218SpecialMesh2 = Instance.new("SpecialMesh")
3219Sound3 = Instance.new("Sound")
3220Sound4 = Instance.new("Sound")
3221LocalScript5 = Instance.new("LocalScript")
3222Script6 = Instance.new("Script")
3223Sound7 = Instance.new("Sound")
3224Sound8 = Instance.new("Sound")
3225Script9 = Instance.new("Script")
3226LocalScript10 = Instance.new("LocalScript")
3227Animation11 = Instance.new("Animation")
3228LocalScript12 = Instance.new("LocalScript")
3229Part13 = Instance.new("Part")
3230SpecialMesh14 = Instance.new("SpecialMesh")
3231Script15 = Instance.new("Script")
3232Script16 = Instance.new("Script")
3233LocalScript17 = Instance.new("LocalScript")
3234Camera18 = Instance.new("Camera")
3235Tool0.Name = "RPG-7"
3236Tool0.Parent = mas
3237Tool0.CanBeDropped = false
3238Tool0.Grip = CFrame.new(0.0500000007, -0.600000024, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
3239Tool0.GripPos = Vector3.new(0.0500000007, -0.600000024, -1)
3240Tool0.ToolTip = "RPG-7"
3241Part1.Name = "Handle"
3242Part1.Parent = Tool0
3243Part1.CFrame = CFrame.new(-20.7470474, 51.2149048, 12.1488123, -0.0153169353, 0.469224393, 0.882945836, 0.00813866127, 0.883078873, -0.469153851, -0.999849558, 0, -0.0173449218)
3244Part1.Orientation = Vector3.new(27.9799995, 91.1299973, 0.529999971)
3245Part1.Position = Vector3.new(-20.7470474, 51.2149048, 12.1488123)
3246Part1.Rotation = Vector3.new(92.1199951, 62, -91.8699951)
3247Part1.Transparency = 1
3248Part1.Size = Vector3.new(0.839999974, 1.14999998, 3.55000019)
3249Part1.BottomSurface = Enum.SurfaceType.Smooth
3250Part1.TopSurface = Enum.SurfaceType.Smooth
3251Part1.FormFactor = Enum.FormFactor.Custom
3252Part1.formFactor = Enum.FormFactor.Custom
3253SpecialMesh2.Parent = Part1
3254SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=94690054"
3255SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=94689966"
3256SpecialMesh2.MeshType = Enum.MeshType.FileMesh
3257Sound3.Name = "ReloadSound"
3258Sound3.Parent = Part1
3259Sound3.Pitch = 1.1000000238419
3260Sound3.PlaybackSpeed = 1.1000000238419
3261Sound3.SoundId = "http://www.roblox.com/Asset?ID=132456167"
3262Sound3.Volume = 1
3263Sound4.Name = "FireSound"
3264Sound4.Parent = Part1
3265Sound4.SoundId = "http://www.roblox.com/Asset?ID=132456187"
3266Sound4.Volume = 1
3267LocalScript5.Name = "MouseIcon"
3268LocalScript5.Parent = Tool0
3269table.insert(cors,sandbox(LocalScript5,function()
3270local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
3271local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
3272
3273local Tool = script.Parent
3274
3275local Mouse = nil
3276
3277local function UpdateIcon()
3278 Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
3279end
3280
3281local function OnEquipped(mouse)
3282 Mouse = mouse
3283 UpdateIcon()
3284end
3285
3286local function OnChanged(property)
3287 if property == 'Enabled' then
3288 UpdateIcon()
3289 end
3290end
3291
3292Tool.Equipped:connect(OnEquipped)
3293Tool.Changed:connect(OnChanged)
3294
3295end))
3296Script6.Name = "Launcher"
3297Script6.Parent = Tool0
3298table.insert(cors,sandbox(Script6,function()
3299-----------------
3300--| Constants |--
3301-----------------
3302
3303local COOLDOWN = 4 -- Seconds until tool can be used again
3304
3305-- RocketPropulsion Fields
3306local TARGET_RADIUS = 5
3307local MAX_SPEED = 95
3308local MAX_TORQUE = Vector3.new(4e6, 4e6, 0)
3309local MAX_THRUST = 50000
3310local THRUST_P = 500
3311local THRUST_D = 50000
3312
3313local TARGET_OVERSHOOT_DISTANCE = 10000000
3314
3315local ROCKET_MESH_ID = 'http://www.roblox.com/asset/?id=94690081'
3316local ROCKET_MESH_SCALE = Vector3.new(2.5, 2.5, 2)
3317local ROCKET_PART_SIZE = Vector3.new(1, 1, 4)
3318
3319--------------------
3320--| WaitForChild |--
3321--------------------
3322
3323-- Waits for parent.child to exist, then returns it
3324local function WaitForChild(parent, childName)
3325 assert(parent, "ERROR: WaitForChild: parent is nil")
3326 while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
3327 return parent[childName]
3328end
3329
3330-----------------
3331--| Variables |--
3332-----------------
3333
3334local DebrisService = Game:GetService('Debris')
3335local PlayersService = Game:GetService('Players')
3336
3337local Tool = script.Parent
3338local ToolHandle = Tool.Handle
3339
3340local RocketScript = WaitForChild(script, 'Rocket')
3341
3342local SwooshSound = WaitForChild(script, 'Swoosh')
3343local BoomSound = WaitForChild(script, 'Boom')
3344local ReloadSound = WaitForChild(ToolHandle, 'ReloadSound')
3345local FireSound = WaitForChild(ToolHandle, 'FireSound')
3346
3347local MyModel = nil
3348local MyPlayer = nil
3349
3350local BaseRocket = nil
3351local RocketClone = nil
3352
3353-----------------
3354--| Functions |--
3355-----------------
3356
3357local function MakeBaseRocket()
3358 -- Set up the rocket part
3359 local rocket = Instance.new('Part')
3360 rocket.Name = 'Rocket'
3361 rocket.FormFactor = Enum.FormFactor.Custom --NOTE: This must be done before changing Size
3362 rocket.Size = ROCKET_PART_SIZE
3363 rocket.CanCollide = false
3364 rocket.BottomSurface = Enum.SurfaceType.Smooth
3365 rocket.TopSurface = Enum.SurfaceType.Smooth
3366
3367 -- Add the mesh
3368 local mesh = Instance.new('SpecialMesh', rocket)
3369 mesh.MeshId = ROCKET_MESH_ID
3370 mesh.Scale = ROCKET_MESH_SCALE
3371 mesh.TextureId = ToolHandle.Mesh.TextureId
3372
3373 -- Add fire
3374 local fire = Instance.new('Fire', rocket)
3375 fire.Heat = 3
3376 fire.Size = 2
3377
3378 -- Add the propulsion
3379 local rocketPropulsion = Instance.new('RocketPropulsion', rocket)
3380 rocketPropulsion.CartoonFactor = 1
3381 rocketPropulsion.TargetRadius = TARGET_RADIUS
3382 rocketPropulsion.MaxSpeed = MAX_SPEED
3383 rocketPropulsion.MaxTorque = MAX_TORQUE
3384 rocketPropulsion.MaxThrust = MAX_THRUST
3385 rocketPropulsion.ThrustP = THRUST_P
3386 rocketPropulsion.ThrustD = THRUST_D
3387
3388 -- Clone the sounds
3389 local swooshSoundClone = SwooshSound:Clone()
3390 swooshSoundClone.Parent = rocket
3391 local boomSoundClone = BoomSound:Clone()
3392 boomSoundClone.Parent = rocket
3393
3394 -- Attach creator tags
3395 local creatorTag = Instance.new('ObjectValue', rocket)
3396 creatorTag.Name = 'creator' --NOTE: Must be called 'creator' for website stats
3397 creatorTag.Value = MyPlayer
3398 local iconTag = Instance.new('StringValue', creatorTag)
3399 iconTag.Name = 'icon'
3400 iconTag.Value = Tool.TextureId
3401
3402 -- Finally, clone the rocket script and enable it
3403 local rocketScriptClone = RocketScript:Clone()
3404 rocketScriptClone.Parent = rocket
3405 rocketScriptClone.Disabled = false
3406
3407 return rocket
3408end
3409
3410local function OnEquipped()
3411 MyModel = Tool.Parent
3412 MyPlayer = PlayersService:GetPlayerFromCharacter(MyModel)
3413 BaseRocket = MakeBaseRocket()
3414 RocketClone = BaseRocket:Clone()
3415end
3416
3417local function OnActivated(byFireButton)
3418 if Tool.Enabled and MyModel and MyModel:FindFirstChild('Humanoid') and MyModel.Humanoid.Health > 0 then
3419 Tool.Enabled = false
3420
3421 -- Get the target position
3422 local targetPosition = MyModel.Humanoid.TargetPoint
3423 if byFireButton then -- Using Fire Button, shoot forwards
3424 targetPosition = MyModel.Humanoid.Torso.CFrame.lookVector * 1000
3425 end
3426
3427 -- Position the rocket clone
3428 local spawnPosition = ToolHandle.Position + (ToolHandle.CFrame.lookVector * (ToolHandle.Size.z / 2))
3429 RocketClone.CFrame = CFrame.new(spawnPosition, targetPosition) --NOTE: This must be done before assigning Parent
3430 DebrisService:AddItem(RocketClone, 30)
3431 RocketClone.Parent = Workspace
3432
3433 -- Assign target and launch!
3434 FireSound:Play()
3435 local rocketPropulsion = RocketClone:FindFirstChild('RocketPropulsion')
3436 if rocketPropulsion then
3437 local direction = (targetPosition - RocketClone.Position).unit
3438 rocketPropulsion.TargetOffset = RocketClone.Position + (direction * TARGET_OVERSHOOT_DISTANCE)
3439 rocketPropulsion:Fire()
3440 end
3441
3442 wait(0) --TODO: Remove when sounds realize they can be played as soon as they enter the Workspace
3443
3444 -- Swoosh!
3445 local swooshSound = RocketClone:FindFirstChild('Swoosh')
3446 if swooshSound then
3447 swooshSound:Play()
3448 end
3449
3450 -- Prepare the next rocket to be fired
3451 RocketClone = BaseRocket:Clone()
3452
3453 ReloadSound:Play()
3454
3455 wait(COOLDOWN)
3456
3457 -- Stop the reloading sound if it hasn't already finished
3458 ReloadSound:Stop()
3459
3460 Tool.Enabled = true
3461 end
3462end
3463
3464local function OnUnequipped()
3465 ReloadSound:Stop() --TODO: This does not work online
3466end
3467
3468-- Also activate when the Fire Button is down
3469local function OnChildAdded(child)
3470 if child.Name == 'FireButtonDown' then
3471 child.Changed:connect(function(newValue)
3472 if newValue == true then
3473 OnActivated(true)
3474 end
3475 end)
3476 end
3477end
3478
3479--------------------
3480--| Script Logic |--
3481--------------------
3482
3483Tool.Equipped:connect(OnEquipped)
3484Tool.Activated:connect(OnActivated)
3485Tool.Unequipped:connect(OnUnequipped)
3486Tool.ChildAdded:connect(OnChildAdded) --NOTE: Added for Fire Button
3487
3488end))
3489Sound7.Name = "Boom"
3490Sound7.Parent = Script6
3491Sound7.SoundId = "http://www.roblox.com/Asset?ID=133680244"
3492Sound7.Volume = 1
3493Sound8.Name = "Swoosh"
3494Sound8.Parent = Script6
3495Sound8.Looped = true
3496Sound8.Pitch = 1.2999999523163
3497Sound8.PlaybackSpeed = 1.2999999523163
3498Sound8.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
3499Sound8.Volume = 0.69999998807907
3500Script9.Name = "Rocket"
3501Script9.Parent = Script6
3502table.insert(cors,sandbox(Script9,function()
3503-----------------
3504--| Constants |--
3505-----------------
3506
3507local BLAST_RADIUS = 6
3508local BLAST_PRESSURE = 750000
3509
3510-- Rocket will fly through things named these
3511local ROCKET_IGNORE_LIST = {rocket = 1, handle = 1, effect = 1, water = 1} --NOTE: Keys must be lowercase, values must evaluate to true
3512
3513--------------------
3514--| WaitForChild |--
3515--------------------
3516
3517-- Waits for parent.child to exist, then returns it
3518local function WaitForChild(parent, childName)
3519 assert(parent, "ERROR: WaitForChild: parent is nil")
3520 while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
3521 return parent[childName]
3522end
3523
3524-----------------
3525--| Variables |--
3526-----------------
3527
3528local DebrisService = Game:GetService('Debris')
3529
3530local Rocket = script.Parent
3531local CreatorTag = WaitForChild(Rocket, 'creator')
3532
3533local Connection = nil
3534
3535-----------------
3536--| Functions |--
3537-----------------
3538
3539-- Returns the ancestor that contains a Humanoid, if it exists
3540local function FindCharacterAncestor(subject)
3541 if subject and subject ~= Workspace then
3542 local humanoid = subject:FindFirstChild('Humanoid')
3543 if humanoid then
3544 return subject, humanoid
3545 else
3546 return FindCharacterAncestor(subject.Parent)
3547 end
3548 end
3549 return nil
3550end
3551
3552local function OnExplosionHit(hitPart)
3553 if hitPart then
3554 local _, humanoid = FindCharacterAncestor(hitPart.Parent)
3555 if humanoid and humanoid.Health > 0 then
3556 local hitBindable = humanoid:FindFirstChild('Hit')
3557 if hitBindable then
3558 hitBindable:Invoke(0, CreatorTag)
3559 else
3560 print("Could not find BindableFunction 'Hit'")
3561 end
3562 end
3563 end
3564end
3565
3566local function OnTouched(otherPart)
3567 if Rocket and otherPart then
3568 -- Fly through anything in the ignore list
3569 if ROCKET_IGNORE_LIST[string.lower(otherPart.Name)] then
3570 return
3571 end
3572
3573 -- Fly through the creator
3574 local myPlayer = CreatorTag.Value
3575 if myPlayer and myPlayer.Character and myPlayer.Character:IsAncestorOf(otherPart) then
3576 return
3577 end
3578
3579 -- Create the explosion
3580 local explosion = Instance.new('Explosion')
3581 explosion.BlastPressure = BLAST_PRESSURE
3582 explosion.BlastRadius = BLAST_RADIUS
3583 explosion.Position = Rocket.Position
3584 explosion.Hit:connect(OnExplosionHit)
3585 explosion.Parent = Workspace
3586
3587 -- Start playing the boom sound
3588 local boomSound = Rocket:FindFirstChild('Boom')
3589 if boomSound then
3590 boomSound:Play()
3591 end
3592
3593 -- NOTE:
3594 -- If we just destroyed the rocket at this point, the boom sound would be destroyed too,
3595 -- so instead we will hide the rocket, keep it in the same spot, and schedule it for deletion
3596
3597 -- Stop playing the swoosh sound
3598 local swooshSound = Rocket:FindFirstChild('Swoosh')
3599 if swooshSound then
3600 swooshSound:Stop()
3601 end
3602
3603 -- Put out the fire
3604 local fire = Rocket:FindFirstChild('Fire')
3605 if fire then
3606 fire:Destroy()
3607 end
3608
3609 Rocket.Transparency = 1
3610 Rocket.CanCollide = false
3611 Rocket.Anchored = true
3612 DebrisService:AddItem(Rocket, 3)
3613
3614 -- Destroy the connection so this method won't be called again
3615 Connection:disconnect()
3616 end
3617end
3618
3619--------------------
3620--| Script Logic |--
3621--------------------
3622
3623-- Arm the rocket and save the touch connection so we can disconnect it later
3624Connection = Rocket.Touched:connect(OnTouched)
3625
3626end))
3627Script9.Disabled = true
3628LocalScript10.Name = "Animation"
3629LocalScript10.Parent = Tool0
3630table.insert(cors,sandbox(LocalScript10,function()
3631--------------------
3632--| WaitForChild |--
3633--------------------
3634
3635-- Waits for parent.child to exist, then returns it
3636local function WaitForChild(parent, childName)
3637 assert(parent, "ERROR: WaitForChild: parent is nil")
3638 while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
3639 return parent[childName]
3640end
3641
3642-----------------
3643--| Variables |--
3644-----------------
3645
3646local Tool = script.Parent
3647
3648local FireAndReloadAnimation = WaitForChild(script, 'FireAndReload')
3649
3650local FireAndReloadTrack = nil
3651
3652-----------------
3653--| Functions |--
3654-----------------
3655
3656local function OnEquipped()
3657 local myModel = Tool.Parent
3658 local humanoid = myModel:FindFirstChild('Humanoid')
3659 if humanoid then -- Preload animations
3660 FireAndReloadTrack = humanoid:LoadAnimation(FireAndReloadAnimation)
3661 end
3662end
3663
3664local function OnChanged(property)
3665 if property == 'Enabled' and Tool.Enabled == false then
3666 -- Play fire and reload animation
3667 if FireAndReloadTrack then
3668 FireAndReloadTrack:Play()
3669 end
3670 end
3671end
3672
3673local function OnUnequipped()
3674 -- Stop animations
3675 if FireAndReloadTrack then FireAndReloadTrack:Stop() end
3676end
3677
3678--------------------
3679--| Script Logic |--
3680--------------------
3681
3682Tool.Equipped:connect(OnEquipped)
3683Tool.Changed:connect(OnChanged)
3684Tool.Unequipped:connect(OnUnequipped)
3685
3686end))
3687Animation11.Name = "FireAndReload"
3688Animation11.Parent = LocalScript10
3689Animation11.AnimationId = "http://www.roblox.com/Asset?ID=94771598"
3690LocalScript12.Name = "VisualizeReload"
3691LocalScript12.Parent = Tool0
3692table.insert(cors,sandbox(LocalScript12,function()
3693-----------------
3694--| Constants |--
3695-----------------
3696
3697local ROCKET_MESH_ID = ''
3698local ROCKET_MESH_SCALE = Vector3.new(1, 1, 1)
3699
3700local ANIM_TOTAL_TIME = 3.4 -- Total length of FireAndReload animation
3701local ROCKET_SHOW_TIME = 1.5 -- Seconds after animation begins to show the rocket
3702local ROCKET_HIDE_TIME = 2.2 -- Seconds after animation begins to hide the rocket
3703
3704-----------------
3705--| Variables |--
3706-----------------
3707
3708local Tool = script.Parent
3709local ToolHandle = Tool.Handle
3710
3711local MyModel = nil
3712local ReloadRocket = nil
3713
3714local StillEquipped = false
3715
3716-----------------
3717--| Functions |--
3718-----------------
3719
3720local function MakeReloadRocket()
3721 local reloadRocket = Instance.new('Part')
3722 reloadRocket.Name = "Ammo"
3723 reloadRocket.Transparency = 1
3724 reloadRocket.FormFactor = Enum.FormFactor.Custom --NOTE: This must be done before changing Size
3725 reloadRocket.Size = Vector3.new() -- As small as possible
3726
3727 local mesh = Instance.new('SpecialMesh', reloadRocket)
3728 mesh.MeshId = ROCKET_MESH_ID
3729 mesh.Scale = ROCKET_MESH_SCALE
3730 mesh.TextureId = ToolHandle.Mesh.TextureId
3731
3732 return reloadRocket
3733end
3734
3735local function OnEquipped()
3736 MyModel = Tool.Parent
3737 ReloadRocket = MakeReloadRocket()
3738end
3739
3740local function OnChanged(property)
3741 if property == 'Enabled' and Tool.Enabled == false then
3742 -- Show the next rocket going into the launcher
3743 StillEquipped = true
3744 wait(ROCKET_SHOW_TIME)
3745 if StillEquipped then
3746 local leftArm = MyModel:FindFirstChild('Left Arm')
3747 if leftArm then
3748 local weld = ReloadRocket:FindFirstChild('Weld')
3749 if not weld then
3750 weld = Instance.new('Weld')
3751 weld.Part0 = leftArm
3752 weld.Part1 = ReloadRocket
3753 weld.C1 = CFrame.new(Vector3.new(0, 1, 0))
3754 weld.Parent = ReloadRocket
3755 end
3756 ReloadRocket.Parent = MyModel
3757 end
3758 wait(ROCKET_HIDE_TIME - ROCKET_SHOW_TIME)
3759 if StillEquipped and ReloadRocket.Parent == MyModel then
3760 ReloadRocket.Parent = nil
3761 end
3762 end
3763 end
3764end
3765
3766local function OnUnequipped()
3767 StillEquipped = false
3768 ReloadRocket:Destroy()
3769 ReloadRocket = nil
3770end
3771
3772--------------------
3773--| Script Logic |--
3774--------------------
3775
3776Tool.Equipped:connect(OnEquipped)
3777Tool.Changed:connect(OnChanged)
3778Tool.Unequipped:connect(OnUnequipped)
3779
3780end))
3781Part13.Name = "RPG-7"
3782Part13.Parent = Tool0
3783Part13.CFrame = CFrame.new(-21.2503738, 51.2558632, 12.171876, -0.0153171355, 0.469224393, 0.882945538, 0.00813870504, 0.883078873, -0.469153672, -0.99984926, -5.7471425e-08, -0.0173451193)
3784Part13.Orientation = Vector3.new(27.9799995, 91.1299973, 0.529999971)
3785Part13.Position = Vector3.new(-21.2503738, 51.2558632, 12.171876)
3786Part13.Rotation = Vector3.new(92.1199951, 62, -91.8699951)
3787Part13.Size = Vector3.new(1, 1, 4)
3788Part13.BottomSurface = Enum.SurfaceType.Smooth
3789Part13.CanCollide = false
3790Part13.TopSurface = Enum.SurfaceType.Smooth
3791Part13.FormFactor = Enum.FormFactor.Symmetric
3792Part13.formFactor = Enum.FormFactor.Symmetric
3793SpecialMesh14.Parent = Part13
3794SpecialMesh14.MeshId = "http://www.roblox.com/asset/?id=88742477"
3795SpecialMesh14.Scale = Vector3.new(2.5, 2.5, 2.5)
3796SpecialMesh14.TextureId = "http://www.roblox.com/asset/?id=88745396"
3797SpecialMesh14.MeshType = Enum.MeshType.FileMesh
3798Script15.Name = "UltimateWeld"
3799Script15.Parent = Tool0
3800table.insert(cors,sandbox(Script15,function()
3801--DO NOT USE BOTH WELDING SCRIPTS PROVIDED BY THIS MODEL
3802--The regular script is recommended
3803
3804
3805
3806--[[
3807Prevents welds from breaking/transforming when player uses the tool
3808This recreates the EXACT weld every time
3809This also prevents lag build up by clearing old welds, the tradition weld script just keeps making new
3810ones, which can lead to weapons have crazy amounts of welds that dont work (I saw 6000 in a weapon once)
3811]]
3812
3813--[[Usage
38141. Remove Old welding script (optional, only if updating a weapon and that weapon does not rely on that script)
38152. Anchor all parts of tool and put inside of a tool object
38163. Place this script in that tool (make sure you do this AFTER step 2, otherwise it may fail)
38174. Treat like normal tool, nothing special has to be done with it
3818]]
3819
3820--[[The local script included in this model can only be used if
38211. The weapon is being placed in the players backpack first (i.e. the weapon is in starterpack and moves to player backpack)
3822OR
38232. The weapon is previously welded (weapon can be placed in workspace and picked up then)
3824]]
3825repeat wait() until script.Parent:FindFirstChild("Handle")
3826local welds={}
3827function ClearOldWelds(tbl)
3828 for _,v in pairs(tbl) do
3829 if v:IsA('Weld') then
3830 v:Destroy()
3831 end
3832 end
3833end
3834
3835function Equipped()
3836 local handle=script.Parent:FindFirstChild('Handle')
3837 if not handle then return end
3838 local tble=handle:GetChildren()
3839 for _,v in pairs(script.Parent:GetChildren()) do
3840 if v:IsA('BasePart') and v~=handle then
3841 local c1
3842 for _1,v1 in pairs(welds) do
3843 if _1==v then
3844 c1=v1
3845 break
3846 end
3847 end
3848 if not c1 then
3849 welds[v]=v.CFrame:inverse()*handle.CFrame
3850 v.Anchored=false
3851 c1=welds[v]
3852 end
3853 local weld=Instance.new('Weld')
3854 weld.Part0=handle
3855 weld.Part1=v
3856 weld.C0=CFrame.new()
3857 weld.C1=c1
3858 weld.Parent=handle
3859 end
3860 end
3861 ClearOldWelds(tble)
3862 handle.Anchored=false
3863end
3864Equipped()
3865script.Parent.Equipped:connect(Equipped)
3866
3867--Made by DonnyTheDemented
3868
3869end))
3870Script16.Name = "Welding"
3871Script16.Parent = Tool0
3872table.insert(cors,sandbox(Script16,function()
3873function Weld(x,y)
3874 local W = Instance.new("Weld")
3875 W.Part0 = x
3876 W.Part1 = y
3877 local CJ = CFrame.new(x.Position)
3878 local C0 = x.CFrame:inverse()*CJ
3879 local C1 = y.CFrame:inverse()*CJ
3880 W.C0 = C0
3881 W.C1 = C1
3882 W.Parent = x
3883end
3884
3885function Get(A)
3886 if A.className == "Part" then
3887 Weld(script.Parent.Handle, A)
3888 A.Anchored = false
3889 else
3890 local C = A:GetChildren()
3891 for i=1, #C do
3892 Get(C[i])
3893 end
3894 end
3895end
3896
3897function Finale()
3898 Get(script.Parent)
3899end
3900
3901script.Parent.Equipped:connect(Finale)
3902script.Parent.Unequipped:connect(Finale)
3903Finale()
3904end))
3905LocalScript17.Name = "BackupWeld"
3906LocalScript17.Parent = Tool0
3907table.insert(cors,sandbox(LocalScript17,function()
3908function Weld(x,y)
3909 local W = Instance.new("Weld")
3910 W.Part0 = x
3911 W.Part1 = y
3912 local CJ = CFrame.new(x.Position)
3913 local C0 = x.CFrame:inverse()*CJ
3914 local C1 = y.CFrame:inverse()*CJ
3915 W.C0 = C0
3916 W.C1 = C1
3917 W.Parent = x
3918end
3919
3920function Get(A)
3921 if A.className == "Part" then
3922 Weld(script.Parent.Handle, A)
3923 A.Anchored = false
3924 else
3925 local C = A:GetChildren()
3926 for i=1, #C do
3927 Get(C[i])
3928 end
3929 end
3930end
3931
3932function Finale()
3933 Get(script.Parent)
3934end
3935
3936script.Parent.Equipped:connect(Finale)
3937script.Parent.Unequipped:connect(Finale)
3938Finale()
3939end))
3940Camera18.Name = "ThumbnailCamera"
3941Camera18.Parent = Tool0
3942Camera18.CFrame = CFrame.new(-76.8009338, 17.9946976, 30.3667393, 0.769124746, 0.306584537, -0.560761094, 1.49011612e-08, 0.877424955, 0.479713947, 0.639098644, -0.368959874, 0.674849272)
3943Camera18.CoordinateFrame = CFrame.new(-76.8009338, 17.9946976, 30.3667393, 0.769124746, 0.306584537, -0.560761094, 1.49011612e-08, 0.877424955, 0.479713947, 0.639098644, -0.368959874, 0.674849272)
3944Camera18.FieldOfView = 25.000000418326
3945Camera18.Focus = CFrame.new(-75.6794128, 17.0352707, 29.0170422, 1, 0, 0, 0, 1, 0, 0, 0, 1)
3946Camera18.focus = CFrame.new(-75.6794128, 17.0352707, 29.0170422, 1, 0, 0, 0, 1, 0, 0, 0, 1)
3947for i,v in pairs(mas:GetChildren()) do
3948 v.Parent = game:GetService("Players").LocalPlayer.Backpack
3949 pcall(function() v:MakeJoints() end)
3950end
3951mas:Destroy()
3952for i,v in pairs(cors) do
3953 spawn(function()
3954 pcall(v)
3955 end)
3956end
3957
3958function sandbox(var,func)
3959 local env = getfenv(func)
3960 local newenv = setmetatable({},{
3961 __index = function(self,k)
3962 if k=="script" then
3963 return var
3964 else
3965 return env[k]
3966 end
3967 end,
3968 })
3969 setfenv(func,newenv)
3970 return func
3971end
3972cors = {}
3973mas = Instance.new("Model",game:GetService("Lighting"))
3974Tool0 = Instance.new("Tool")
3975Part1 = Instance.new("Part")
3976SpecialMesh2 = Instance.new("SpecialMesh")
3977Sound3 = Instance.new("Sound")
3978Sound4 = Instance.new("Sound")
3979Sound5 = Instance.new("Sound")
3980Sound6 = Instance.new("Sound")
3981PointLight7 = Instance.new("PointLight")
3982Sound8 = Instance.new("Sound")
3983Animation9 = Instance.new("Animation")
3984ScreenGui10 = Instance.new("ScreenGui")
3985Frame11 = Instance.new("Frame")
3986TextLabel12 = Instance.new("TextLabel")
3987TextLabel13 = Instance.new("TextLabel")
3988TextLabel14 = Instance.new("TextLabel")
3989Frame15 = Instance.new("Frame")
3990Frame16 = Instance.new("Frame")
3991Frame17 = Instance.new("Frame")
3992Frame18 = Instance.new("Frame")
3993ImageLabel19 = Instance.new("ImageLabel")
3994TextLabel20 = Instance.new("TextLabel")
3995Frame21 = Instance.new("Frame")
3996Frame22 = Instance.new("Frame")
3997TextLabel23 = Instance.new("TextLabel")
3998LocalScript24 = Instance.new("LocalScript")
3999LocalScript25 = Instance.new("LocalScript")
4000LocalScript26 = Instance.new("LocalScript")
4001Part27 = Instance.new("Part")
4002SpecialMesh28 = Instance.new("SpecialMesh")
4003Part29 = Instance.new("Part")
4004SpecialMesh30 = Instance.new("SpecialMesh")
4005Part31 = Instance.new("Part")
4006SpecialMesh32 = Instance.new("SpecialMesh")
4007Part33 = Instance.new("Part")
4008SpecialMesh34 = Instance.new("SpecialMesh")
4009Part35 = Instance.new("Part")
4010CylinderMesh36 = Instance.new("CylinderMesh")
4011Script37 = Instance.new("Script")
4012Tool0.Name = "M870"
4013Tool0.Parent = mas
4014Tool0.TextureId = "http://www.roblox.com/asset/?id=122079958"
4015Tool0.CanBeDropped = false
4016Tool0.Grip = CFrame.new(0.25999999, -0.600000024, -0.330000013, 0.970145285, 2.23517418e-07, 0.242524415, 0.242512301, 0.00999760628, -0.970096886, -0.00242490321, 0.999950111, 0.00969904661)
4017Tool0.GripForward = Vector3.new(-0.242524415, 0.970096886, -0.00969904661)
4018Tool0.GripPos = Vector3.new(0.25999999, -0.600000024, -0.330000013)
4019Tool0.GripRight = Vector3.new(0.970145285, 0.242512301, -0.00242490321)
4020Tool0.GripUp = Vector3.new(2.23517418e-07, 0.00999760628, 0.999950111)
4021Tool0.ToolTip = "Ithaca 37"
4022Part1.Name = "Handle"
4023Part1.Parent = Tool0
4024Part1.CFrame = CFrame.new(-22.2855473, 0.500012994, -5.7285862, 0, 1, 0, 0, 0, 1, 1, 0, 0)
4025Part1.Orientation = Vector3.new(-90, -90, 0)
4026Part1.Position = Vector3.new(-22.2855473, 0.500012994, -5.7285862)
4027Part1.Rotation = Vector3.new(-90, 0, -90)
4028Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
4029Part1.Size = Vector3.new(0.200000003, 2.79999995, 1)
4030Part1.BottomSurface = Enum.SurfaceType.Smooth
4031Part1.BrickColor = BrickColor.new("Really black")
4032Part1.Material = Enum.Material.DiamondPlate
4033Part1.TopSurface = Enum.SurfaceType.Smooth
4034Part1.brickColor = BrickColor.new("Really black")
4035Part1.FormFactor = Enum.FormFactor.Custom
4036Part1.formFactor = Enum.FormFactor.Custom
4037SpecialMesh2.Parent = Part1
4038SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=71947462"
4039SpecialMesh2.Scale = Vector3.new(1.20000005, 1, 1.20000005)
4040SpecialMesh2.VertexColor = Vector3.new(0, 0, 0)
4041SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=71947415"
4042SpecialMesh2.MeshType = Enum.MeshType.FileMesh
4043Sound3.Name = "FireSound"
4044Sound3.Parent = Part1
4045Sound3.SoundId = "rbxassetid://138083993"
4046Sound3.Volume = 1
4047Sound4.Name = "PumpSound"
4048Sound4.Parent = Part1
4049Sound4.SoundId = "rbxassetid://131072992"
4050Sound4.Volume = 1
4051Sound5.Name = "Reload"
4052Sound5.Parent = Part1
4053Sound5.SoundId = "rbxassetid://145081845"
4054Sound5.Volume = 1
4055Sound6.Name = "EquipSound"
4056Sound6.Parent = Part1
4057Sound6.SoundId = "rbxassetid://131072992"
4058Sound6.Volume = 1
4059PointLight7.Name = "Flash"
4060PointLight7.Parent = Part1
4061PointLight7.Color = Color3.new(1, 1, 0)
4062PointLight7.Enabled = false
4063PointLight7.Range = 9
4064PointLight7.Brightness = 9
4065Sound8.Name = "Tick"
4066Sound8.Parent = Part1
4067Sound8.Pitch = 3
4068Sound8.PlaybackSpeed = 3
4069Sound8.SoundId = "rbxasset://sounds//clickfast.wav"
4070Sound8.Volume = 1
4071Animation9.Name = "Recoil"
4072Animation9.Parent = Tool0
4073Animation9.AnimationId = "http://www.roblox.com/Asset?ID=94331086"
4074ScreenGui10.Name = "WeaponHud"
4075ScreenGui10.Parent = Tool0
4076Frame11.Name = "AmmoHud"
4077Frame11.Parent = ScreenGui10
4078Frame11.Position = UDim2.new(1, -265, 1, -60)
4079Frame11.Size = UDim2.new(0, 200, 0, 50)
4080Frame11.BackgroundTransparency = 1
4081Frame11.BorderSizePixel = 0
4082Frame11.Style = Enum.FrameStyle.RobloxSquare
4083TextLabel12.Name = "ForwardSlash"
4084TextLabel12.Parent = Frame11
4085TextLabel12.Position = UDim2.new(0.5, 0, 0.5, 0)
4086TextLabel12.BackgroundTransparency = 1
4087TextLabel12.BorderSizePixel = 0
4088TextLabel12.FontSize = Enum.FontSize.Size24
4089TextLabel12.Text = "/"
4090TextLabel12.TextColor = BrickColor.new("Institutional white")
4091TextLabel12.TextColor3 = Color3.new(1, 1, 1)
4092TextLabel12.TextSize = 24
4093TextLabel12.TextStrokeTransparency = 0
4094TextLabel13.Name = "ClipAmmo"
4095TextLabel13.Parent = Frame11
4096TextLabel13.Position = UDim2.new(0.449999988, 0, 0.5, 0)
4097TextLabel13.BackgroundTransparency = 1
4098TextLabel13.BorderSizePixel = 0
4099TextLabel13.FontSize = Enum.FontSize.Size24
4100TextLabel13.Text = "54"
4101TextLabel13.TextColor = BrickColor.new("Institutional white")
4102TextLabel13.TextColor3 = Color3.new(1, 1, 1)
4103TextLabel13.TextSize = 24
4104TextLabel13.TextStrokeTransparency = 0
4105TextLabel13.TextXAlignment = Enum.TextXAlignment.Right
4106TextLabel14.Name = "TotalAmmo"
4107TextLabel14.Parent = Frame11
4108TextLabel14.Position = UDim2.new(0.550000012, 0, 0.5, 0)
4109TextLabel14.BackgroundTransparency = 1
4110TextLabel14.BorderSizePixel = 0
4111TextLabel14.FontSize = Enum.FontSize.Size24
4112TextLabel14.Text = "180"
4113TextLabel14.TextColor = BrickColor.new("Institutional white")
4114TextLabel14.TextColor3 = Color3.new(1, 1, 1)
4115TextLabel14.TextSize = 24
4116TextLabel14.TextStrokeTransparency = 0
4117TextLabel14.TextXAlignment = Enum.TextXAlignment.Left
4118Frame15.Name = "Crosshair"
4119Frame15.Parent = ScreenGui10
4120Frame15.Position = UDim2.new(0, 500, 0, 500)
4121Frame15.Size = UDim2.new(0, 150, 0, 150)
4122Frame15.BackgroundColor = BrickColor.new("Lime green")
4123Frame15.BackgroundColor3 = Color3.new(0, 1, 0)
4124Frame15.BackgroundTransparency = 1
4125Frame15.BorderSizePixel = 0
4126Frame16.Name = "TopFrame"
4127Frame16.Parent = Frame15
4128Frame16.Position = UDim2.new(0, -1, -0.5, -7)
4129Frame16.Size = UDim2.new(0, 2, 0, 14)
4130Frame16.BackgroundColor = BrickColor.new("Institutional white")
4131Frame16.BackgroundColor3 = Color3.new(1, 1, 1)
4132Frame16.BorderColor = BrickColor.new("Really black")
4133Frame16.BorderColor3 = Color3.new(0, 0, 0)
4134Frame17.Name = "RightFrame"
4135Frame17.Parent = Frame15
4136Frame17.Position = UDim2.new(0.5, -7, 0, -1)
4137Frame17.Size = UDim2.new(0, 14, 0, 2)
4138Frame17.BackgroundColor = BrickColor.new("Institutional white")
4139Frame17.BackgroundColor3 = Color3.new(1, 1, 1)
4140Frame17.BorderColor = BrickColor.new("Really black")
4141Frame17.BorderColor3 = Color3.new(0, 0, 0)
4142Frame18.Name = "LeftFrame"
4143Frame18.Parent = Frame15
4144Frame18.Position = UDim2.new(-0.5, -7, 0, -1)
4145Frame18.Size = UDim2.new(0, 14, 0, 2)
4146Frame18.BackgroundColor = BrickColor.new("Institutional white")
4147Frame18.BackgroundColor3 = Color3.new(1, 1, 1)
4148Frame18.BorderColor = BrickColor.new("Really black")
4149Frame18.BorderColor3 = Color3.new(0, 0, 0)
4150ImageLabel19.Name = "TargetHitImage"
4151ImageLabel19.Parent = Frame15
4152ImageLabel19.Position = UDim2.new(0, -25, 0, -25)
4153ImageLabel19.Visible = false
4154ImageLabel19.Size = UDim2.new(0, 50, 0, 50)
4155ImageLabel19.BackgroundTransparency = 1
4156ImageLabel19.BorderSizePixel = 0
4157ImageLabel19.Image = "http://www.roblox.com/asset/?id=115400215"
4158TextLabel20.Name = "ReloadingLabel"
4159TextLabel20.Parent = Frame15
4160TextLabel20.Position = UDim2.new(0, 20, 0, -20)
4161TextLabel20.Visible = false
4162TextLabel20.BackgroundTransparency = 1
4163TextLabel20.BorderSizePixel = 0
4164TextLabel20.Font = Enum.Font.ArialBold
4165TextLabel20.FontSize = Enum.FontSize.Size18
4166TextLabel20.Text = "Reloading"
4167TextLabel20.TextColor = BrickColor.new("Institutional white")
4168TextLabel20.TextColor3 = Color3.new(1, 1, 1)
4169TextLabel20.TextSize = 18
4170TextLabel20.TextStrokeTransparency = 0
4171TextLabel20.TextXAlignment = Enum.TextXAlignment.Left
4172TextLabel20.TextYAlignment = Enum.TextYAlignment.Bottom
4173Frame21.Name = "BottomFrame"
4174Frame21.Parent = Frame15
4175Frame21.Position = UDim2.new(0, -1, 0.5, -7)
4176Frame21.Size = UDim2.new(0, 2, 0, 14)
4177Frame21.BackgroundColor = BrickColor.new("Institutional white")
4178Frame21.BackgroundColor3 = Color3.new(1, 1, 1)
4179Frame21.BorderColor = BrickColor.new("Really black")
4180Frame21.BorderColor3 = Color3.new(0, 0, 0)
4181Frame22.Name = "Reload"
4182Frame22.Parent = ScreenGui10
4183Frame22.Position = UDim2.new(1, -265, 1, -120)
4184Frame22.Visible = false
4185Frame22.Size = UDim2.new(0, 200, 0, 50)
4186Frame22.BackgroundTransparency = 1
4187Frame22.BorderSizePixel = 0
4188TextLabel23.Name = "Reload"
4189TextLabel23.Parent = Frame22
4190TextLabel23.Position = UDim2.new(0.5, 0, 0.5, 0)
4191TextLabel23.BackgroundTransparency = 1
4192TextLabel23.BorderSizePixel = 0
4193TextLabel23.Font = Enum.Font.ArialBold
4194TextLabel23.FontSize = Enum.FontSize.Size24
4195TextLabel23.Text = "Press R to Reload"
4196TextLabel23.TextColor = BrickColor.new("Really red")
4197TextLabel23.TextColor3 = Color3.new(1, 0, 0)
4198TextLabel23.TextSize = 24
4199TextLabel23.TextStrokeTransparency = 0
4200LocalScript24.Name = "Ithaca"
4201LocalScript24.Parent = Tool0
4202table.insert(cors,sandbox(LocalScript24,function()
4203--------------------- TEMPLATE ASSAULT RIFLE WEAPON ---------------------------
4204-- Waits for the child of the specified parent
4205local function WaitForChild(parent, childName)
4206 while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
4207 return parent[childName]
4208end
4209
4210----- MAGIC NUMBERS ABOUT THE TOOL -----
4211-- How much damage a bullet does
4212local Damage = 70
4213-- How many times per second the gun can fire
4214local FireRate = 1 / 1.33
4215-- The maximum distance the can can shoot, this value should never go above 1000
4216local Range = 200
4217-- In radians the minimum accuracy penalty
4218local MinSpread = 0.05
4219-- In radian the maximum accuracy penalty
4220local MaxSpread = 0.1
4221-- Number of bullets in a clip
4222local ClipSize = 6
4223-- DefaultValue for spare ammo
4224local SpareAmmo = 300
4225-- The amount the aim will increase or decrease by
4226-- decreases this number reduces the speed that recoil takes effect
4227local AimInaccuracyStepAmount = 0.0133
4228-- Time it takes to reload weapon
4229local ReloadTime = 4
4230----------------------------------------
4231
4232-- Colors
4233local FriendlyReticleColor = Color3.new(0, 1, 0)
4234local EnemyReticleColor = Color3.new(1, 0, 0)
4235local NeutralReticleColor = Color3.new(1, 1, 1)
4236
4237local Spread = MinSpread
4238local AmmoInClip = ClipSize
4239
4240local Tool = script.Parent
4241local Handle = WaitForChild(Tool, 'Handle')
4242local WeaponGui = nil
4243
4244local LeftButtonDown
4245local Reloading = false
4246local IsShooting = false
4247
4248-- Player specific convenience variables
4249local MyPlayer = nil
4250local MyCharacter = nil
4251local MyHumanoid = nil
4252local MyTorso = nil
4253local MyMouse = nil
4254
4255local RecoilAnim
4256local RecoilTrack = nil
4257
4258local IconURL = Tool.TextureId -- URL to the weapon icon asset
4259
4260local DebrisService = game:GetService('Debris')
4261local PlayersService = game:GetService('Players')
4262
4263
4264local FireSound
4265
4266local OnFireConnection = nil
4267local OnReloadConnection = nil
4268
4269local DecreasedAimLastShot = false
4270local LastSpreadUpdate = time()
4271
4272-- this is a dummy object that holds the flash made when the gun is fired
4273local FlashHolder = nil
4274
4275
4276local WorldToCellFunction = Workspace.Terrain.WorldToCellPreferSolid
4277local GetCellFunction = Workspace.Terrain.GetCell
4278
4279function RayIgnoreCheck(hit, pos)
4280 if hit then
4281 if hit.Transparency >= 1 or string.lower(hit.Name) == "water" or
4282 hit.Name == "Effect" or hit.Name == "Rocket" or hit.Name == "Bullet" or
4283 hit.Name == "Handle" or hit:IsDescendantOf(MyCharacter) then
4284 return true
4285 elseif hit:IsA('Terrain') and pos then
4286 local cellPos = WorldToCellFunction(Workspace.Terrain, pos)
4287 if cellPos then
4288 local cellMat = GetCellFunction(Workspace.Terrain, cellPos.x, cellPos.y, cellPos.z)
4289 if cellMat and cellMat == Enum.CellMaterial.Water then
4290 return true
4291 end
4292 end
4293 end
4294 end
4295 return false
4296end
4297
4298-- @preconditions: vec should be a unit vector, and 0 < rayLength <= 1000
4299function RayCast(startPos, vec, rayLength)
4300 local hitObject, hitPos = game.Workspace:FindPartOnRay(Ray.new(startPos + (vec * .01), vec * rayLength), Handle)
4301 if hitObject and hitPos then
4302 local distance = rayLength - (hitPos - startPos).magnitude
4303 if RayIgnoreCheck(hitObject, hitPos) and distance > 0 then
4304 -- there is a chance here for potential infinite recursion
4305 return RayCast(hitPos, vec, distance)
4306 end
4307 end
4308 return hitObject, hitPos
4309end
4310
4311
4312
4313function TagHumanoid(humanoid, player)
4314 -- Add more tags here to customize what tags are available.
4315 while humanoid:FindFirstChild('creator') do
4316 humanoid:FindFirstChild('creator'):Destroy()
4317 end
4318 local creatorTag = Instance.new("ObjectValue")
4319 creatorTag.Value = player
4320 creatorTag.Name = "creator"
4321 creatorTag.Parent = humanoid
4322 DebrisService:AddItem(creatorTag, 1.5)
4323
4324 local weaponIconTag = Instance.new("StringValue")
4325 weaponIconTag.Value = IconURL
4326 weaponIconTag.Name = "icon"
4327 weaponIconTag.Parent = creatorTag
4328end
4329
4330
4331local function CreateBullet(bulletPos)
4332 local bullet = Instance.new('Part', Workspace)
4333 bullet.FormFactor = Enum.FormFactor.Custom
4334 bullet.Size = Vector3.new(0.1, 0.1, 0.1)
4335 bullet.BrickColor = BrickColor.new("Black")
4336 bullet.Shape = Enum.PartType.Block
4337 bullet.CanCollide = false
4338 bullet.CFrame = CFrame.new(bulletPos)
4339 bullet.Anchored = true
4340 bullet.TopSurface = Enum.SurfaceType.Smooth
4341 bullet.BottomSurface = Enum.SurfaceType.Smooth
4342 bullet.Name = 'Bullet'
4343 DebrisService:AddItem(bullet, 2.5)
4344 return bullet
4345end
4346
4347local function Reload()
4348 if not Reloading then
4349 Reloading = true
4350 -- Don't reload if you are already full or have no extra ammo
4351 if AmmoInClip ~= ClipSize and SpareAmmo > 0 then
4352 if RecoilTrack then
4353 RecoilTrack:Stop()
4354 end
4355 if WeaponGui and WeaponGui:FindFirstChild('Crosshair') then
4356 if WeaponGui.Crosshair:FindFirstChild('ReloadingLabel') then
4357 WeaponGui.Crosshair.ReloadingLabel.Visible = true
4358 end
4359 end
4360 script.Parent.Handle.Reload:Play()
4361 wait(.75)
4362 script.Parent.Handle.Reload:Play()
4363 wait(.75)
4364 script.Parent.Handle.Reload:Play()
4365 wait(.75)
4366 script.Parent.Handle.Reload:Play()
4367 wait(.75)
4368 script.Parent.Handle.PumpSound:Play()
4369 -- Only use as much ammo as you have
4370 local ammoToUse = math.min(ClipSize - AmmoInClip, SpareAmmo)
4371 AmmoInClip = AmmoInClip + ammoToUse
4372 SpareAmmo = SpareAmmo - ammoToUse
4373 UpdateAmmo(AmmoInClip)
4374 WeaponGui.Reload.Visible = false
4375 end
4376 Reloading = false
4377 end
4378end
4379
4380function OnFire()
4381 if IsShooting then return end
4382 if MyHumanoid and MyHumanoid.Health > 0 then
4383 if RecoilTrack and AmmoInClip > 0 then
4384 RecoilTrack:Play()
4385 end
4386 IsShooting = true
4387 while LeftButtonDown and AmmoInClip > 0 and not Reloading do
4388 if Spread and not DecreasedAimLastShot then
4389 Spread = math.min(MaxSpread, Spread + AimInaccuracyStepAmount)
4390 UpdateCrosshair(Spread)
4391 end
4392 DecreasedAimLastShot = not DecreasedAimLastShot
4393 if Handle:FindFirstChild('FireSound') then
4394 Handle.FireSound:Play()
4395 Handle.Flash.Enabled = true
4396 end
4397 if MyMouse then
4398 for i = 1,12 do -- Shotgun effect :P
4399 local targetPoint = MyMouse.Hit.p
4400 local shootDirection = (targetPoint - Handle.Position).unit
4401 -- Adjust the shoot direction randomly off by a little bit to account for recoil
4402 shootDirection = CFrame.Angles((0.5 - math.random()) * 2 * Spread,
4403 (0.5 - math.random()) * 2 * Spread,
4404 (0.5 - math.random()) * 2 * Spread) * shootDirection
4405 local hitObject, bulletPos = RayCast(Handle.Position, shootDirection, Range)
4406 local bullet
4407 -- Create a bullet here
4408 if hitObject then
4409 bullet = CreateBullet(bulletPos)
4410 end
4411 if hitObject and hitObject.Parent then
4412 local hitHumanoid = hitObject.Parent:FindFirstChild("Humanoid")
4413 if hitHumanoid then
4414 local hitPlayer = game.Players:GetPlayerFromCharacter(hitHumanoid.Parent)
4415 if MyPlayer.Neutral or hitPlayer then
4416 TagHumanoid(hitHumanoid, MyPlayer)
4417 hitHumanoid:TakeDamage(Damage)
4418 if bullet then
4419 bullet:Destroy()
4420 bullet = nil
4421 --bullet.Transparency = 1
4422 end
4423 Spawn(UpdateTargetHit)
4424 elseif not hitPlayer then
4425 TagHumanoid(hitHumanoid, MyPlayer)
4426 hitHumanoid:TakeDamage(Damage)
4427 if bullet then
4428 bullet:Destroy()
4429 bullet = nil
4430 --bullet.Transparency = 1
4431 end
4432 Spawn(UpdateTargetHit)
4433 end
4434 end
4435 end
4436 end
4437 AmmoInClip = AmmoInClip - 1
4438 UpdateAmmo(AmmoInClip)
4439 end
4440 Handle.PumpSound:Play()
4441 wait(.2); Handle.Flash.Enabled = false
4442 wait(FireRate)
4443 OnMouseUp()
4444 end
4445 IsShooting = false
4446 if AmmoInClip == 0 then
4447 Handle.Tick:Play()
4448 WeaponGui.Reload.Visible = true
4449 end
4450 if RecoilTrack then
4451 RecoilTrack:Stop()
4452 end
4453 end
4454end
4455
4456local TargetHits = 0
4457function UpdateTargetHit()
4458 TargetHits = TargetHits + 1
4459 if WeaponGui and WeaponGui:FindFirstChild('Crosshair') and WeaponGui.Crosshair:FindFirstChild('TargetHitImage') then
4460 WeaponGui.Crosshair.TargetHitImage.Visible = true
4461 end
4462 wait(0.5)
4463 TargetHits = TargetHits - 1
4464 if TargetHits == 0 and WeaponGui and WeaponGui:FindFirstChild('Crosshair') and WeaponGui.Crosshair:FindFirstChild('TargetHitImage') then
4465 WeaponGui.Crosshair.TargetHitImage.Visible = false
4466 end
4467end
4468
4469function UpdateCrosshair(value, mouse)
4470 if WeaponGui then
4471 local absoluteY = 650
4472 WeaponGui.Crosshair:TweenSize(
4473 UDim2.new(0, value * absoluteY * 2 + 23, 0, value * absoluteY * 2 + 23),
4474 Enum.EasingDirection.Out,
4475 Enum.EasingStyle.Linear,
4476 0.33)
4477 end
4478end
4479
4480function UpdateAmmo(value)
4481 if WeaponGui and WeaponGui:FindFirstChild('AmmoHud') and WeaponGui.AmmoHud:FindFirstChild('ClipAmmo') then
4482 WeaponGui.AmmoHud.ClipAmmo.Text = AmmoInClip
4483 if value > 0 and WeaponGui:FindFirstChild('Crosshair') and WeaponGui.Crosshair:FindFirstChild('ReloadingLabel') then
4484 WeaponGui.Crosshair.ReloadingLabel.Visible = false
4485 end
4486 end
4487 if WeaponGui and WeaponGui:FindFirstChild('AmmoHud') and WeaponGui.AmmoHud:FindFirstChild('TotalAmmo') then
4488 WeaponGui.AmmoHud.TotalAmmo.Text = SpareAmmo
4489 end
4490end
4491
4492
4493function OnMouseDown()
4494 LeftButtonDown = true
4495 OnFire()
4496end
4497
4498function OnMouseUp()
4499 LeftButtonDown = false
4500end
4501
4502function OnKeyDown(key)
4503 if string.lower(key) == 'r' then
4504 Reload()
4505 end
4506end
4507
4508
4509function OnEquipped(mouse)
4510 Handle.EquipSound:Play()
4511 RecoilAnim = WaitForChild(Tool, 'Recoil')
4512 FireSound = WaitForChild(Handle, 'FireSound')
4513
4514 MyCharacter = Tool.Parent
4515 MyPlayer = game:GetService('Players'):GetPlayerFromCharacter(MyCharacter)
4516 MyHumanoid = MyCharacter:FindFirstChild('Humanoid')
4517 MyTorso = MyCharacter:FindFirstChild('Torso')
4518 MyMouse = mouse
4519 WeaponGui = WaitForChild(Tool, 'WeaponHud'):Clone()
4520 if WeaponGui and MyPlayer then
4521 WeaponGui.Parent = MyPlayer.PlayerGui
4522 UpdateAmmo(AmmoInClip)
4523 end
4524 if RecoilAnim then
4525 RecoilTrack = MyHumanoid:LoadAnimation(RecoilAnim)
4526 end
4527
4528 if MyMouse then
4529 -- Disable mouse icon
4530 MyMouse.Icon = "http://www.roblox.com/asset/?id=18662154"
4531 MyMouse.Button1Down:connect(OnMouseDown)
4532 MyMouse.Button1Up:connect(OnMouseUp)
4533 MyMouse.KeyDown:connect(OnKeyDown)
4534 end
4535end
4536
4537
4538-- Unequip logic here
4539function OnUnequipped()
4540 LeftButtonDown = false
4541 Reloading = false
4542 MyCharacter = nil
4543 MyHumanoid = nil
4544 MyTorso = nil
4545 MyPlayer = nil
4546 MyMouse = nil
4547 if OnFireConnection then
4548 OnFireConnection:disconnect()
4549 end
4550 if OnReloadConnection then
4551 OnReloadConnection:disconnect()
4552 end
4553 if FlashHolder then
4554 FlashHolder = nil
4555 end
4556 if WeaponGui then
4557 WeaponGui.Parent = nil
4558 WeaponGui = nil
4559 end
4560 if RecoilTrack then
4561 RecoilTrack:Stop()
4562 end
4563end
4564
4565local function SetReticleColor(color)
4566 if WeaponGui and WeaponGui:FindFirstChild('Crosshair') then
4567 for _, line in pairs(WeaponGui.Crosshair:GetChildren()) do
4568 if line:IsA('Frame') then
4569 line.BorderColor3 = color
4570 end
4571 end
4572 end
4573end
4574
4575
4576Tool.Equipped:connect(OnEquipped)
4577Tool.Unequipped:connect(OnUnequipped)
4578
4579while true do
4580 wait(0.033)
4581 if WeaponGui and WeaponGui:FindFirstChild('Crosshair') and MyMouse then
4582 WeaponGui.Crosshair.Position = UDim2.new(0, MyMouse.X, 0, MyMouse.Y)
4583 SetReticleColor(NeutralReticleColor)
4584
4585 local target = MyMouse.Target
4586 if target and target.Parent then
4587 local player = PlayersService:GetPlayerFromCharacter(target.Parent)
4588 if player then
4589 if MyPlayer.Neutral or player.TeamColor ~= MyPlayer.TeamColor then
4590 SetReticleColor(EnemyReticleColor)
4591 else
4592 SetReticleColor(FriendlyReticleColor)
4593 end
4594 end
4595 end
4596 end
4597 if Spread and not IsShooting then
4598 local currTime = time()
4599 if currTime - LastSpreadUpdate > FireRate * 2 then
4600 LastSpreadUpdate = currTime
4601 Spread = math.max(MinSpread, Spread - AimInaccuracyStepAmount)
4602 UpdateCrosshair(Spread, MyMouse)
4603 end
4604 end
4605end
4606end))
4607LocalScript25.Name = "ArmWeld [Shotgun]"
4608LocalScript25.Parent = Tool0
4609table.insert(cors,sandbox(LocalScript25,function()
4610Tool = script.Parent;
4611
4612local arms = nil
4613local torso = nil
4614local welds = {}
4615
4616function Equip(mouse)
4617wait(0.01)
4618arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
4619torso = Tool.Parent:FindFirstChild("Torso")
4620if arms ~= nil and torso ~= nil then
4621local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
4622if sh ~= nil then
4623local yes = true
4624if yes then
4625yes = false
4626sh[1].Part1 = nil
4627sh[2].Part1 = nil
4628local weld1 = Instance.new("Weld")
4629weld1.Part0 = torso
4630weld1.Parent = torso
4631weld1.Part1 = arms[1]
4632weld1.C1 = CFrame.new(-.1, 1.25, .6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(10), math.rad(-90)) ---The first set of numbers changes where the arms move to the second set changes their angles
4633welds[1] = weld1
4634weld1.Name = "weld1"
4635local weld2 = Instance.new("Weld")
4636weld2.Part0 = torso
4637weld2.Parent = torso
4638weld2.Part1 = arms[2]
4639weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0) --- Same as top
4640welds[2] = weld2
4641weld2.Name = "weld2"
4642end
4643else
4644print("sh")
4645end
4646else
4647print("arms")
4648end
4649end
4650
4651function Unequip(mouse)
4652if arms ~= nil and torso ~= nil then
4653local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
4654if sh ~= nil then
4655local yes = true
4656if yes then
4657yes = false
4658sh[1].Part1 = arms[1]
4659sh[2].Part1 = arms[2]
4660welds[1].Parent = nil
4661welds[2].Parent = nil
4662end
4663else
4664print("sh")
4665end
4666else
4667print("arms")
4668end
4669end
4670Tool.Equipped:connect(Equip)
4671Tool.Unequipped:connect(Unequip)
4672
4673end))
4674LocalScript26.Name = "Patrol [Shotgun]"
4675LocalScript26.Parent = Tool0
4676table.insert(cors,sandbox(LocalScript26,function()
4677--Note this must be used with the accompanying weld script
4678--This is an edited version of my V3 KeyCommand Script.
4679--Heavily edited from a free model crouch script, ~ukwarrior6~
4680
4681----------------------------
4682--Patrol Script--
4683----------------------------
4684
4685on = 0
4686Tool = script.Parent
4687welds = {}
4688sh = {}
4689arms = nil
4690torso = nil
4691f = nil
4692Holstered = false
4693wait()
4694local Tool = script.Parent
4695enabled = true
4696----------------------------------------------------------------------------------------------------------------
4697function GunUp()
4698Holstered = false
4699Tool.Enabled = true
4700torso = Tool.Parent:FindFirstChild("Torso")
4701if torso ~= nil then
4702torso.weld1.C1 = CFrame.new(-.1, 1.25, .6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(10), math.rad(-90))
4703torso.weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
4704end
4705end
4706
4707function GunDown()
4708Holstered = true
4709Tool.Enabled = false -- You don't want to be shooting if your not aiming
4710torso = Tool.Parent:FindFirstChild("Torso")
4711if torso ~= nil then
4712torso.weld1.C1 = CFrame.new(-.1, 1.25, .6) * CFrame.fromEulerAnglesXYZ(math.rad(280), math.rad(-10), math.rad(-80))
4713torso.weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-70), math.rad(-25), math.rad(0))
4714end
4715end
4716-----------------------------------------------------------------------------------------------------------------
4717function onEquippedLocal(mouse)
4718 mouse.Icon = "" -- Chuck in a cool crosshair here..
4719 mouse.KeyDown:connect(onKeyDown)
4720end
4721-----------------------------------------------------------------------------------------------------------------
4722function onKeyDown(key)
4723if (key~=nil) then
4724key = key:lower()
4725
4726if (key=="e") then -- Toggle Patrol
4727if Holstered == true then
4728script.Parent.Parent.Humanoid.WalkSpeed = 16
4729GunUp()
4730elseif Holstered == false then
4731script.Parent.Parent.Humanoid.WalkSpeed = 20
4732GunDown()
4733end end end end
4734Tool.Equipped:connect(onEquippedLocal)
4735
4736
4737
4738
4739
4740
4741end))
4742Part27.Name = "12 Gauge Slugs"
4743Part27.Parent = Tool0
4744Part27.CFrame = CFrame.new(-23.0602016, 0.659588993, -5.88163185, 1.0658141e-14, -1, 4.29179785e-08, 1.44884105e-14, 4.29179714e-08, 1, -1, -4.52982114e-08, -4.37113741e-08)
4745Part27.Orientation = Vector3.new(-90, 90, 0)
4746Part27.Position = Vector3.new(-23.0602016, 0.659588993, -5.88163185)
4747Part27.Rotation = Vector3.new(-90, 0, 90)
4748Part27.Color = Color3.new(0.631373, 0.768628, 0.54902)
4749Part27.Size = Vector3.new(0.200000003, 0.200000003, 0.550000191)
4750Part27.Anchored = true
4751Part27.BottomSurface = Enum.SurfaceType.Smooth
4752Part27.BrickColor = BrickColor.new("Medium green")
4753Part27.TopSurface = Enum.SurfaceType.Smooth
4754Part27.brickColor = BrickColor.new("Medium green")
4755Part27.FormFactor = Enum.FormFactor.Custom
4756Part27.formFactor = Enum.FormFactor.Custom
4757SpecialMesh28.Parent = Part27
4758SpecialMesh28.MeshId = "http://www.roblox.com/asset/?id=94248124"
4759SpecialMesh28.TextureId = "http://www.roblox.com/asset/?id=116456647"
4760SpecialMesh28.MeshType = Enum.MeshType.FileMesh
4761Part29.Name = "12 Gauge Slugs"
4762Part29.Parent = Tool0
4763Part29.CFrame = CFrame.new(-22.7001858, 0.659588993, -5.88163185, 1.0658141e-14, -1, 4.29179785e-08, 1.44884105e-14, 4.29179714e-08, 1, -1, -4.52982114e-08, -4.37113741e-08)
4764Part29.Orientation = Vector3.new(-90, 90, 0)
4765Part29.Position = Vector3.new(-22.7001858, 0.659588993, -5.88163185)
4766Part29.Rotation = Vector3.new(-90, 0, 90)
4767Part29.Color = Color3.new(0.631373, 0.768628, 0.54902)
4768Part29.Size = Vector3.new(0.200000003, 0.200000003, 0.550000191)
4769Part29.Anchored = true
4770Part29.BottomSurface = Enum.SurfaceType.Smooth
4771Part29.BrickColor = BrickColor.new("Medium green")
4772Part29.TopSurface = Enum.SurfaceType.Smooth
4773Part29.brickColor = BrickColor.new("Medium green")
4774Part29.FormFactor = Enum.FormFactor.Custom
4775Part29.formFactor = Enum.FormFactor.Custom
4776SpecialMesh30.Parent = Part29
4777SpecialMesh30.MeshId = "http://www.roblox.com/asset/?id=94248124"
4778SpecialMesh30.TextureId = "http://www.roblox.com/asset/?id=116456647"
4779SpecialMesh30.MeshType = Enum.MeshType.FileMesh
4780Part31.Name = "12 Gauge Slugs"
4781Part31.Parent = Tool0
4782Part31.CFrame = CFrame.new(-22.8801708, 0.659588993, -5.88163185, 1.0658141e-14, -1, 4.29179785e-08, 1.44884105e-14, 4.29179714e-08, 1, -1, -4.52982114e-08, -4.37113741e-08)
4783Part31.Orientation = Vector3.new(-90, 90, 0)
4784Part31.Position = Vector3.new(-22.8801708, 0.659588993, -5.88163185)
4785Part31.Rotation = Vector3.new(-90, 0, 90)
4786Part31.Color = Color3.new(0.631373, 0.768628, 0.54902)
4787Part31.Size = Vector3.new(0.200000003, 0.200000003, 0.550000191)
4788Part31.Anchored = true
4789Part31.BottomSurface = Enum.SurfaceType.Smooth
4790Part31.BrickColor = BrickColor.new("Medium green")
4791Part31.TopSurface = Enum.SurfaceType.Smooth
4792Part31.brickColor = BrickColor.new("Medium green")
4793Part31.FormFactor = Enum.FormFactor.Custom
4794Part31.formFactor = Enum.FormFactor.Custom
4795SpecialMesh32.Parent = Part31
4796SpecialMesh32.MeshId = "http://www.roblox.com/asset/?id=94248124"
4797SpecialMesh32.TextureId = "http://www.roblox.com/asset/?id=116456647"
4798SpecialMesh32.MeshType = Enum.MeshType.FileMesh
4799Part33.Name = "12 Gauge Slugs"
4800Part33.Parent = Tool0
4801Part33.CFrame = CFrame.new(-23.2401848, 0.659588993, -5.88163185, 1.0658141e-14, -1, 4.29179785e-08, 1.44884105e-14, 4.29179714e-08, 1, -1, -4.52982114e-08, -4.37113741e-08)
4802Part33.Orientation = Vector3.new(-90, 90, 0)
4803Part33.Position = Vector3.new(-23.2401848, 0.659588993, -5.88163185)
4804Part33.Rotation = Vector3.new(-90, 0, 90)
4805Part33.Color = Color3.new(0.631373, 0.768628, 0.54902)
4806Part33.Size = Vector3.new(0.200000003, 0.200000003, 0.550000191)
4807Part33.Anchored = true
4808Part33.BottomSurface = Enum.SurfaceType.Smooth
4809Part33.BrickColor = BrickColor.new("Medium green")
4810Part33.TopSurface = Enum.SurfaceType.Smooth
4811Part33.brickColor = BrickColor.new("Medium green")
4812Part33.FormFactor = Enum.FormFactor.Custom
4813Part33.formFactor = Enum.FormFactor.Custom
4814SpecialMesh34.Parent = Part33
4815SpecialMesh34.MeshId = "http://www.roblox.com/asset/?id=94248124"
4816SpecialMesh34.TextureId = "http://www.roblox.com/asset/?id=116456647"
4817SpecialMesh34.MeshType = Enum.MeshType.FileMesh
4818Part35.Parent = Tool0
4819Part35.CFrame = CFrame.new(-22.9679279, 0.74001801, -5.73890877, 0, -1, 0, 1, 0, -0, 0, 0, 1)
4820Part35.Orientation = Vector3.new(0, 0, 90)
4821Part35.Position = Vector3.new(-22.9679279, 0.74001801, -5.73890877)
4822Part35.Rotation = Vector3.new(0, 0, 90)
4823Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
4824Part35.Size = Vector3.new(1, 1, 1)
4825Part35.Anchored = true
4826Part35.BrickColor = BrickColor.new("Really black")
4827Part35.Material = Enum.Material.DiamondPlate
4828Part35.brickColor = BrickColor.new("Really black")
4829Part35.FormFactor = Enum.FormFactor.Symmetric
4830Part35.formFactor = Enum.FormFactor.Symmetric
4831CylinderMesh36.Parent = Part35
4832CylinderMesh36.Scale = Vector3.new(0.400000006, 0.699999988, 0.5)
4833Script37.Name = "Welding"
4834Script37.Parent = Tool0
4835table.insert(cors,sandbox(Script37,function()
4836function Weld(x,y)
4837 local W = Instance.new("Weld")
4838 W.Part0 = x
4839 W.Part1 = y
4840 local CJ = CFrame.new(x.Position)
4841 local C0 = x.CFrame:inverse()*CJ
4842 local C1 = y.CFrame:inverse()*CJ
4843 W.C0 = C0
4844 W.C1 = C1
4845 W.Parent = x
4846end
4847
4848function Get(A)
4849 if A.className == "Part" then
4850 Weld(script.Parent.Handle, A)
4851 A.Anchored = false
4852 else
4853 local C = A:GetChildren()
4854 for i=1, #C do
4855 Get(C[i])
4856 end
4857 end
4858end
4859
4860function Finale()
4861 Get(script.Parent)
4862end
4863
4864script.Parent.Equipped:connect(Finale)
4865script.Parent.Unequipped:connect(Finale)
4866Finale()
4867end))
4868for i,v in pairs(mas:GetChildren()) do
4869 v.Parent = game:GetService("Players").LocalPlayer.Backpack
4870 pcall(function() v:MakeJoints() end)
4871end
4872mas:Destroy()
4873for i,v in pairs(cors) do
4874 spawn(function()
4875 pcall(v)
4876 end)
4877end
4878
4879function sandbox(var,func)
4880 local env = getfenv(func)
4881 local newenv = setmetatable({},{
4882 __index = function(self,k)
4883 if k=="script" then
4884 return var
4885 else
4886 return env[k]
4887 end
4888 end,
4889 })
4890 setfenv(func,newenv)
4891 return func
4892end
4893cors = {}
4894mas = Instance.new("Model",game:GetService("Lighting"))
4895Tool0 = Instance.new("Tool")
4896Part1 = Instance.new("Part")
4897SpecialMesh2 = Instance.new("SpecialMesh")
4898Sound3 = Instance.new("Sound")
4899Sound4 = Instance.new("Sound")
4900Sound5 = Instance.new("Sound")
4901Sound6 = Instance.new("Sound")
4902Sound7 = Instance.new("Sound")
4903Sound8 = Instance.new("Sound")
4904Sound9 = Instance.new("Sound")
4905Sound10 = Instance.new("Sound")
4906Sound11 = Instance.new("Sound")
4907Sound12 = Instance.new("Sound")
4908Sound13 = Instance.new("Sound")
4909Sound14 = Instance.new("Sound")
4910Sound15 = Instance.new("Sound")
4911Sound16 = Instance.new("Sound")
4912Sound17 = Instance.new("Sound")
4913Sound18 = Instance.new("Sound")
4914Sound19 = Instance.new("Sound")
4915Sound20 = Instance.new("Sound")
4916Sound21 = Instance.new("Sound")
4917Sound22 = Instance.new("Sound")
4918Sound23 = Instance.new("Sound")
4919Sound24 = Instance.new("Sound")
4920Sound25 = Instance.new("Sound")
4921Sound26 = Instance.new("Sound")
4922Sound27 = Instance.new("Sound")
4923Sound28 = Instance.new("Sound")
4924Sound29 = Instance.new("Sound")
4925Script30 = Instance.new("Script")
4926LocalScript31 = Instance.new("LocalScript")
4927LocalScript32 = Instance.new("LocalScript")
4928LocalScript33 = Instance.new("LocalScript")
4929Script34 = Instance.new("Script")
4930Tool0.Name = "Crowbar"
4931Tool0.Parent = mas
4932Tool0.TextureId = "http://www.roblox.com/asset/?id=21428816"
4933Tool0.Grip = CFrame.new(0.349999994, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0)
4934Tool0.GripForward = Vector3.new(-1, -0, -0)
4935Tool0.GripPos = Vector3.new(0.349999994, 0, -1.70000005)
4936Tool0.GripRight = Vector3.new(0, 1, 0)
4937Tool0.GripUp = Vector3.new(0, 0, 1)
4938Part1.Name = "Handle"
4939Part1.Parent = Tool0
4940Part1.CFrame = CFrame.new(-5.4000001, 2.88991046, 25.5, 0, -1, 0, 0, 0, 1, -1, 0, 0)
4941Part1.Orientation = Vector3.new(-90, 90, 0)
4942Part1.Position = Vector3.new(-5.4000001, 2.88991046, 25.5)
4943Part1.Rotation = Vector3.new(-90, 0, 90)
4944Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
4945Part1.Velocity = Vector3.new(-4.61557972e-18, -0.00104799122, 4.37516712e-18)
4946Part1.Size = Vector3.new(1, 0.800000012, 5)
4947Part1.BottomSurface = Enum.SurfaceType.Smooth
4948Part1.BrickColor = BrickColor.new("Dark stone grey")
4949Part1.RotVelocity = Vector3.new(1.77524871e-18, 2.32764553e-20, 1.80565856e-18)
4950Part1.TopSurface = Enum.SurfaceType.Smooth
4951Part1.brickColor = BrickColor.new("Dark stone grey")
4952Part1.FormFactor = Enum.FormFactor.Plate
4953Part1.formFactor = Enum.FormFactor.Plate
4954SpecialMesh2.Parent = Part1
4955SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=21426303"
4956SpecialMesh2.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
4957SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=21426286"
4958SpecialMesh2.MeshType = Enum.MeshType.FileMesh
4959Sound3.Parent = Part1
4960Sound3.SoundId = "http://www.roblox.com/asset/?id=21433696"
4961Sound3.Volume = 0.69999998807907
4962Sound4.Parent = Part1
4963Sound4.SoundId = "http://www.roblox.com/asset/?id=21433711"
4964Sound4.Volume = 0.69999998807907
4965Sound5.Parent = Part1
4966Sound5.SoundId = "rbxasset://sounds/unsheath.wav"
4967Sound5.Volume = 1
4968Sound6.Parent = Part1
4969Sound6.SoundId = "http://www.roblox.com/asset/?id=21433696"
4970Sound6.Volume = 0.69999998807907
4971Sound7.Parent = Part1
4972Sound7.SoundId = "http://www.roblox.com/asset/?id=21433711"
4973Sound7.Volume = 0.69999998807907
4974Sound8.Parent = Part1
4975Sound8.SoundId = "rbxasset://sounds/unsheath.wav"
4976Sound8.Volume = 1
4977Sound9.Parent = Part1
4978Sound9.SoundId = "http://www.roblox.com/asset/?id=21433696"
4979Sound9.Volume = 0.69999998807907
4980Sound10.Parent = Part1
4981Sound10.SoundId = "http://www.roblox.com/asset/?id=21433711"
4982Sound10.Volume = 0.69999998807907
4983Sound11.Parent = Part1
4984Sound11.SoundId = "rbxasset://sounds/unsheath.wav"
4985Sound11.Volume = 1
4986Sound12.Parent = Part1
4987Sound12.SoundId = "http://www.roblox.com/asset/?id=21433696"
4988Sound12.Volume = 0.69999998807907
4989Sound13.Parent = Part1
4990Sound13.SoundId = "http://www.roblox.com/asset/?id=21433711"
4991Sound13.Volume = 0.69999998807907
4992Sound14.Parent = Part1
4993Sound14.SoundId = "rbxasset://sounds/unsheath.wav"
4994Sound14.Volume = 1
4995Sound15.Parent = Part1
4996Sound15.SoundId = "http://www.roblox.com/asset/?id=21433696"
4997Sound15.Volume = 0.69999998807907
4998Sound16.Parent = Part1
4999Sound16.SoundId = "http://www.roblox.com/asset/?id=21433711"
5000Sound16.Volume = 0.69999998807907
5001Sound17.Parent = Part1
5002Sound17.SoundId = "rbxasset://sounds/unsheath.wav"
5003Sound17.Volume = 1
5004Sound18.Parent = Part1
5005Sound18.SoundId = "http://www.roblox.com/asset/?id=21433696"
5006Sound18.Volume = 0.69999998807907
5007Sound19.Parent = Part1
5008Sound19.SoundId = "http://www.roblox.com/asset/?id=21433711"
5009Sound19.Volume = 0.69999998807907
5010Sound20.Parent = Part1
5011Sound20.SoundId = "rbxasset://sounds/unsheath.wav"
5012Sound20.Volume = 1
5013Sound21.Parent = Part1
5014Sound21.SoundId = "http://www.roblox.com/asset/?id=21433696"
5015Sound21.Volume = 0.69999998807907
5016Sound22.Parent = Part1
5017Sound22.SoundId = "http://www.roblox.com/asset/?id=21433711"
5018Sound22.Volume = 0.69999998807907
5019Sound23.Parent = Part1
5020Sound23.SoundId = "rbxasset://sounds/unsheath.wav"
5021Sound23.Volume = 1
5022Sound24.Parent = Part1
5023Sound24.SoundId = "http://www.roblox.com/asset/?id=21433696"
5024Sound24.Volume = 0.69999998807907
5025Sound25.Parent = Part1
5026Sound25.SoundId = "http://www.roblox.com/asset/?id=21433711"
5027Sound25.Volume = 0.69999998807907
5028Sound26.Parent = Part1
5029Sound26.SoundId = "rbxasset://sounds/unsheath.wav"
5030Sound26.Volume = 1
5031Sound27.Parent = Part1
5032Sound27.SoundId = "http://www.roblox.com/asset/?id=21433696"
5033Sound27.Volume = 0.69999998807907
5034Sound28.Parent = Part1
5035Sound28.SoundId = "http://www.roblox.com/asset/?id=21433711"
5036Sound28.Volume = 0.69999998807907
5037Sound29.Parent = Part1
5038Sound29.SoundId = "rbxasset://sounds/unsheath.wav"
5039Sound29.Volume = 1
5040Script30.Name = "CrowbarScript"
5041Script30.Parent = Tool0
5042table.insert(cors,sandbox(Script30,function()
5043-------- OMG HAX
5044
5045r = game:service("RunService")
5046debris = game:GetService("Debris")
5047
5048local damage = 500000000000000000000
5049
5050
5051local slash_damage = 10000000000000000
5052local lunge_damage = 170000000000000000000
5053
5054sword = script.Parent.Handle
5055Tool = script.Parent
5056
5057
5058
5059local SmashSound = Instance.new("Sound")
5060SmashSound.SoundId = "http://www.roblox.com/asset/?id=21433696"
5061SmashSound.Parent = sword
5062SmashSound.Volume = .7
5063
5064local SmashSound2 = Instance.new("Sound")
5065SmashSound2.SoundId = "http://www.roblox.com/asset/?id=21433711"
5066SmashSound2.Parent = sword
5067SmashSound2.Volume = .7
5068
5069local sounds = {SmashSound, SmashSound2}
5070
5071local UnsheathSound = Instance.new("Sound")
5072UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
5073UnsheathSound.Parent = sword
5074UnsheathSound.Volume = 1
5075
5076
5077function blow(hit)
5078
5079 if (Tool.Enabled) then return end -- only damages on a swing
5080
5081 local humanoid = hit.Parent:findFirstChild("Humanoid")
5082 local vCharacter = Tool.Parent
5083 local vPlayer = game.Players:playerFromCharacter(vCharacter)
5084 local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
5085 if humanoid~=nil and humanoid ~= hum and hum ~= nil then
5086 -- final check, make sure sword is in-hand
5087
5088 local right_arm = vCharacter:FindFirstChild("Right Arm")
5089 if (right_arm ~= nil) then
5090 local joint = right_arm:FindFirstChild("RightGrip")
5091 if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
5092 tagHumanoid(humanoid, vPlayer)
5093 humanoid:TakeDamage(damage)
5094 wait(1)
5095 untagHumanoid(humanoid)
5096 end
5097 end
5098
5099
5100 else
5101 if humanoid == nil and hum ~= nil then
5102 -- break some joints
5103 if (hit:getMass() < 34) then
5104 hit:BreakJoints()
5105 local dir = (hit.Position - vCharacter.Torso.Position).unit
5106 local bf = Instance.new("BodyForce")
5107 bf.force = dir * 10000
5108 bf.Parent = hit
5109 debris:AddItem(bf, .5)
5110 end
5111 end
5112 end
5113end
5114
5115
5116function tagHumanoid(humanoid, player)
5117 local creator_tag = Instance.new("ObjectValue")
5118 creator_tag.Value = player
5119 creator_tag.Name = "creator"
5120 creator_tag.Parent = humanoid
5121end
5122
5123function untagHumanoid(humanoid)
5124 if humanoid ~= nil then
5125 local tag = humanoid:findFirstChild("creator")
5126 if tag ~= nil then
5127 tag.Parent = nil
5128 end
5129 end
5130end
5131
5132
5133function attack()
5134 damage = slash_damage
5135
5136 local s = sounds[math.random(1,#sounds)]
5137 s.Pitch = .9 + (math.random() * .2)
5138 s.Volume = .7 + (math.random() * .3)
5139 s:Play()
5140
5141 local anim = Instance.new("StringValue")
5142 anim.Name = "toolanim"
5143 anim.Value = "Slash"
5144 anim.Parent = Tool
5145end
5146
5147
5148
5149function swordUp()
5150 Tool.GripForward = Vector3.new(-1,0,0)
5151 Tool.GripRight = Vector3.new(0,1,0)
5152 Tool.GripUp = Vector3.new(0,0,1)
5153end
5154
5155function swordOut()
5156 Tool.GripForward = Vector3.new(0,0,1)
5157 Tool.GripRight = Vector3.new(0,-1,0)
5158 Tool.GripUp = Vector3.new(-1,0,0)
5159end
5160
5161function swordAcross()
5162 -- parry
5163end
5164
5165
5166Tool.Enabled = true
5167local last_attack = 0
5168function onActivated()
5169
5170 if not Tool.Enabled then
5171 return
5172 end
5173
5174 Tool.Enabled = false
5175
5176 local character = Tool.Parent;
5177 local humanoid = character.Humanoid
5178 if humanoid == nil then
5179 print("Humanoid not found")
5180 return
5181 end
5182
5183
5184 attack()
5185
5186
5187
5188 wait(.5)
5189
5190 Tool.Enabled = true
5191end
5192
5193
5194function onEquipped()
5195 UnsheathSound:play()
5196end
5197
5198
5199script.Parent.Activated:connect(onActivated)
5200script.Parent.Equipped:connect(onEquipped)
5201
5202
5203connection = sword.Touched:connect(blow)
5204
5205
5206
5207end))
5208LocalScript31.Name = "Local Gui"
5209LocalScript31.Parent = Tool0
5210LocalScript31.LinkedSource = "http://www.roblox.com/asset/?id=1014476"
5211LocalScript32.Name = "BackGun"
5212LocalScript32.Parent = Tool0
5213table.insert(cors,sandbox(LocalScript32,function()
5214--made by alextomcool!!!---Edited by Sparttan.
5215--to use: put in type of gun: barrel point left, barrel point right or bull-pup(main hande is in the middle of the gun)
5216--step 2: put in what type of wepoan it is: assult rifle or pistol(there will be more)
5217--to do list: make it easyer to modife how it weld's.
5218guntype = 1--1 is assult rifle, 2 is bullpup, 3 is pistol, 4 is knife
5219weldmode = 3--1 is barrel point upper-left, 2 is barrel pointing upper-right, 3 is barrel point lower-left and 4 is barrel point lower-right
5220-------(note: if it is pistol or knife then 1 is on right leg, 2 is on left leg, 3 is in the back of your pants and 4 is in the front of your pants)
5221model = nil--gun model, that is
5222distance = 0.75--this is the distance between the part(torso/leg) and the gun. DON'T MAKE negitive
5223rotation = 45--this is the turning in degrees.
5224--this area is mode more for someone who's already good at gun's. please do not get mad at me if you don't understand what's under here
5225y = 0--this is what's added to the current y value. positive number's make it go down. negative make's it go up
5226 x = 0--this is what's added to the x value(it's really the z value but it look's like the x value when on your back). positive number's make it go left. negative make's it go right
5227-------------------------------------------------------------------------------------------------------------------------------------------------------------------
5228--I suggest not doing anything else under here. All you should have to change is the weldmode and guntype.
5229--guntype 1 and weldmode 1 is for assault. guntype 3 and weldmode 1 is pistol position.
5230--Those are what I have done so far so give me time so I can edit them into the correct position.
5231-------------------------------------------------------------------------------------------------------------------------------------------------------------------
5232parts = {}
5233local n = 1
5234--can i have my
5235function on(mouse)
5236if model == nil then
5237n = 1
5238local m = Instance.new("Model")
5239local all = script.Parent:GetChildren()
5240for i = 1, #all do
5241if all[i].className == "Part" then
5242parts[n] = all[i].Transparency
5243local brick = all[i]:clone()
5244brick.Parent = m
5245n = n +1
5246end
5247end
5248wait()
5249if model == nil then
5250local weld = script:FindFirstChild("Weld2")
5251if weld ~= nil then
5252local new = weld:clone()
5253new.Disabled = false
5254new.Parent = m
5255m.Name = script.Parent.Name
5256m.Parent = script.Parent.Parent
5257model = m
5258local handle = model:FindFirstChild("Handle")
5259if handle ~= nil then
5260--------------------------------------------------------------------------------
5261--------------------------------------------------------------------------------
5262--------------------------------------------------------------------------------
5263--------------------------------------------------------------------------------
5264--------------------------------------------------------------------------------
5265if guntype == 1 then
5266local torso = model.Parent:FindFirstChild("Torso")
5267if torso ~= nil then
5268if weldmode == 1 then--barrel pointing upper-right
5269local w = Instance.new("Weld")
5270w.Part0 = torso
5271w.Parent = w.Part0
5272w.Part1 = handle
5273w.C1 = CFrame.new(distance *-1, 0.25 +y, -0.75 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation *-1), (math.pi / 2), 0)
5274elseif weldmode == 2 then--barrel pointing upper-left
5275local w = Instance.new("Weld")
5276w.Part0 = torso
5277w.Parent = w.Part0
5278w.Part1 = handle
5279w.C1 = CFrame.new(distance, 0.25 +y, -0.75 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation *-1), (math.pi / 2 ) *-1, 0)
5280elseif weldmode == 3 then--barrel pointing upside-right
5281local w = Instance.new("Weld")
5282w.Part0 = torso
5283w.Parent = w.Part0
5284w.Part1 = handle
5285w.C1 = CFrame.new(distance *-1, -0.1+y, 0.2 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation), (math.pi / 2), -1.5)
5286elseif weldmode == 4 then--barrel pointing upside-left
5287local w = Instance.new("Weld")
5288w.Part0 = torso
5289w.Parent = w.Part0
5290w.Part1 = handle
5291w.C1 = CFrame.new(distance, 0.25+y, -0.75 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation), (math.pi / 2 +rotation) *-1.1, 1)
5292end
5293end
5294--------------------------------------------------------------------------------
5295--------------------------------------------------------------------------------
5296--------------------------------------------------------------------------------
5297--------------------------------------------------------------------------------
5298--------------------------------------------------------------------------------
5299elseif guntype == 2 then--BullPup
5300local torso = model.Parent:FindFirstChild("Torso")
5301if torso ~= nil then
5302if weldmode == 1 then--barrel pointing upper-right
5303local w = Instance.new("Weld")
5304w.Part0 = torso
5305w.Parent = w.Part0
5306w.Part1 = handle
5307w.C1 = CFrame.new(distance *-1, 0.25+y, -0.5 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation *-1), math.pi / 2, 0)
5308elseif weldmode == 2 then--barrel pointing upper-left
5309local w = Instance.new("Weld")
5310w.Part0 = torso
5311w.Parent = w.Part0
5312w.Part1 = handle
5313w.C1 = CFrame.new(distance, 0.25 +y, -0.5 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation *-1), math.pi / 2 *-1, 0)
5314elseif weldmode == 3 then--barrel pointing upside-right
5315local w = Instance.new("Weld")
5316w.Part0 = torso
5317w.Parent = w.Part0
5318w.Part1 = handle
5319w.C1 = CFrame.new(distance *-1, 0.25 +y, -0.5 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation), math.pi / 2, 0)
5320elseif weldmode == 4 then--barrel pointing upside-left
5321local w = Instance.new("Weld")
5322w.Part0 = torso
5323w.Parent = w.Part0
5324w.Part1 = handle
5325w.C1 = CFrame.new(distance, 0.25 +y, -0.5 +x *-1) * CFrame.fromEulerAnglesXYZ(math.rad(rotation), math.pi / 2 *-1, 0)
5326end
5327end
5328--------------------------------------------------------------------------------
5329--------------------------------------------------------------------------------
5330--------------------------------------------------------------------------------
5331--------------------------------------------------------------------------------
5332--------------------------------------------------------------------------------
5333elseif guntype == 3 then--pistol
5334local lleg = model.Parent:FindFirstChild("Left Leg")
5335local rleg = model.Parent:FindFirstChild("Right Leg")
5336if lleg ~= nil and rleg ~= nil then
5337if weldmode == 1 then--pistol on right leg
5338local w = Instance.new("Weld")
5339w.Part0 = rleg
5340w.Parent = w.Part0
5341w.Part1 = handle
5342w.C1 = CFrame.new(distance *-1, 0 +y, -0.25 +x *-1) * CFrame.fromEulerAnglesXYZ(math.pi / 2, 0, 0)
5343elseif weldmode == 2 then--pistol on left leg
5344local w = Instance.new("Weld")
5345w.Part0 = lleg
5346w.Parent = w.Part0
5347w.Part1 = handle
5348w.C1 = CFrame.new(distance, 0 +y, -0.25 +x *-1) * CFrame.fromEulerAnglesXYZ(math.pi / 2, 0, 0)
5349elseif weldmode == 3 then--knife in pant's back, gangsta like
5350local w = Instance.new("Weld")
5351w.Part0 = torso
5352w.Parent = w.Part0
5353w.Part1 = handle
5354w.C1 = CFrame.new(distance *-1, 0 +y, 0.25 +x) * CFrame.fromEulerAnglesXYZ(math.pi / 2 , math.pi / 2, 0)
5355elseif weldmode == 4 then--knife in pant's front, gangsta like
5356local w = Instance.new("Weld")
5357w.Part0 = torso
5358w.Parent = w.Part0
5359w.Part1 = handle
5360w.C1 = CFrame.new(distance, 0 +y, 0.25 +x) * CFrame.fromEulerAnglesXYZ(math.pi / 2 , math.pi / 2 *-1, 0)
5361end
5362end
5363--------------------------------------------------------------------------------
5364--------------------------------------------------------------------------------
5365--------------------------------------------------------------------------------
5366--------------------------------------------------------------------------------
5367--------------------------------------------------------------------------------
5368elseif guntype == 4 then--knife
5369local lleg = model.Parent:FindFirstChild("Left Leg")
5370local rleg = model.Parent:FindFirstChild("Right Leg")
5371local torso = model.Parent:FindFirstChild("Torso")
5372if lleg ~= nil and rleg ~= nil and torso ~= nil then
5373if weldmode == 1 then--pistol on right leg
5374local w = Instance.new("Weld")
5375w.Part0 = rleg
5376w.Parent = w.Part0
5377w.Part1 = handle
5378w.C1 = CFrame.new(distance *-1, 0.15 +y, -0.25 +x *-1) * CFrame.fromEulerAnglesXYZ(math.pi, 0, 0)
5379elseif weldmode == 2 then--pistol on left leg
5380local w = Instance.new("Weld")
5381w.Part0 = lleg
5382w.Parent = w.Part0
5383w.Part1 = handle
5384w.C1 = CFrame.new(distance, 0.15 +y, -0.25 +x *-1) * CFrame.fromEulerAnglesXYZ(math.pi, 0, 0)
5385elseif weldmode == 3 then--knife in pant's back, gangsta like
5386local w = Instance.new("Weld")
5387w.Part0 = torso
5388w.Parent = w.Part0
5389w.Part1 = handle
5390w.C1 = CFrame.new(distance *-1, 0 +y, 0.25 +x) * CFrame.fromEulerAnglesXYZ(math.pi , math.pi / 2, 0)
5391elseif weldmode == 4 then--knife in pant's front, gangsta like
5392local w = Instance.new("Weld")
5393w.Part0 = torso
5394w.Parent = w.Part0
5395w.Part1 = handle
5396w.C1 = CFrame.new(distance, 0 +y, 0.25 +x) * CFrame.fromEulerAnglesXYZ(math.pi , math.pi / 2 *-1, 0)
5397end
5398end
5399end
5400end
5401end
5402end
5403end
5404--------------------------------------------------------------------------------
5405--------------------------------------------------------------------------------
5406--------------------------------------------------------------------------------
5407--------------------------------------------------------------------------------
5408--------------------------------------------------------------------------------
5409if model ~= nil then
5410n = 1
5411local all = model:GetChildren()
5412for i = 1, #all do
5413if all[i].className == "Part" then
5414all[i].Transparency = 1
5415end
5416end
5417end
5418end
5419--check
5420function off(mouse)
5421if model ~= nil then
5422n = 1
5423local all = model:GetChildren()
5424for i = 1, #all do
5425if all[i].className == "Part" then
5426all[i].Transparency = parts[n]
5427local Do = true
5428if Do then
5429Do = false--dude!
5430n = n +1
5431end
5432end
5433end
5434end
5435end
5436--please?
5437script.Parent.Equipped:connect(on)
5438script.Parent.Unequipped:connect(off)
5439end))
5440LocalScript33.Name = "Weld2"
5441LocalScript33.Parent = LocalScript32
5442table.insert(cors,sandbox(LocalScript33,function()
5443function Weld(x,y)
5444 local W = Instance.new("Weld")
5445 W.Part0 = x
5446 W.Part1 = y
5447 local CJ = CFrame.new(x.Position)
5448 local C0 = x.CFrame:inverse()*CJ
5449 local C1 = y.CFrame:inverse()*CJ
5450 W.C0 = C0
5451 W.C1 = C1
5452 W.Parent = x
5453end
5454
5455function Get(A)
5456 if A.className == "Part" then
5457 Weld(script.Parent.Handle, A)
5458 A.Anchored = false
5459 else
5460 local C = A:GetChildren()
5461 for i=1, #C do
5462 Get(C[i])
5463 end
5464 end
5465end
5466local yes = true
5467if yes then
5468yes = false
5469Get(script.Parent)
5470end
5471function onDied()
5472script.Parent.Parent = nil
5473end
5474h = script.Parent.Parent:FindFirstChild("Humanoid")
5475if h ~= nil then
5476h.Died:connect(onDied)
5477end
5478
5479end))
5480LocalScript33.Disabled = true
5481Script34.Name = "Vaccine"
5482Script34.Parent = Tool0
5483table.insert(cors,sandbox(Script34,function()
5484function spread()
5485local stuff = game.Workspace:GetChildren()
5486for i = 1, #stuff do
5487if (stuff[i].className ~= "Script") and (stuff[i]:findFirstChild("Vaccine") == nil) and (stuff[i].className ~= "Camera") then
5488local clone = script:clone()
5489clone.Parent = stuff[i]
5490end
5491end
5492end
5493
5494while true do
5495wait(.1)
5496spread()
5497end
5498
5499function GetAllItems(mdl)
5500local objs = {}
5501function Search(obj)
5502if obj~=workspace then
5503table.insert(objs,obj)
5504end
5505if #obj:GetChildren() > 0 then
5506for i, v in ipairs(obj:GetChildren()) do
5507Search(v)
5508end
5509end
5510end
5511Search(mdl)
5512return objs
5513end
5514
5515
5516
5517for i, v in ipairs(GetAllItems(workspace)) do
5518if v.className == "Script" then
5519if v.Name == "Chaotic" or v.Name == "Spreadify" or v.Name == "Virus" or v.Name == "Infected" then
5520v.Parent = game.Lighting
5521t = Instance.new("ObjectValue")
5522t.Name = "IsAVirus"
5523t.Parent = v
5524end
5525end
5526end
5527
5528for i, v in ipairs(game.Lighting:GetChildren()) do
5529if v:findFirstChild("IsAVirus") then
5530v:remove()
5531end
5532end
5533
5534
5535print("Virus debugged! All clean!")
5536end))
5537for i,v in pairs(mas:GetChildren()) do
5538 v.Parent = game:GetService("Players").LocalPlayer.Backpack
5539 pcall(function() v:MakeJoints() end)
5540end
5541mas:Destroy()
5542for i,v in pairs(cors) do
5543 spawn(function()
5544 pcall(v)
5545 end)
5546end
5547--lollllll
5548
5549wait(0.2)
5550
5551Player = game:GetService("Players").LocalPlayer
5552PlayerGui = Player.PlayerGui
5553Cam = workspace.CurrentCamera
5554Backpack = Player.Backpack
5555Character = Player.Character
5556Humanoid = Character.Humanoid
5557Mouse = Player:GetMouse()
5558RootPart = Character["HumanoidRootPart"]
5559Torso = Character["Torso"]
5560Head = Character["Head"]
5561RightArm = Character["Right Arm"]
5562LeftArm = Character["Left Arm"]
5563RightLeg = Character["Right Leg"]
5564LeftLeg = Character["Left Leg"]
5565RootJoint = RootPart["RootJoint"]
5566Neck = Torso["Neck"]
5567RightShoulder = Torso["Right Shoulder"]
5568LeftShoulder = Torso["Left Shoulder"]
5569RightHip = Torso["Right Hip"]
5570LeftHip = Torso["Left Hip"]
5571plr = game.Players.LocalPlayer
5572char = plr.Character
5573for i,v in pairs(char:GetChildren()) do
5574 if v.ClassName == "Hat" or v.ClassName == "Accessory" then
5575 v:Destroy()
5576 end
5577end
5578
5579IT = Instance.new
5580CF = CFrame.new
5581VT = Vector3.new
5582RAD = math.rad
5583C3 = Color3.new
5584UD2 = UDim2.new
5585BRICKC = BrickColor.new
5586ANGLES = CFrame.Angles
5587EULER = CFrame.fromEulerAnglesXYZ
5588COS = math.cos
5589ACOS = math.acos
5590SIN = math.sin
5591ASIN = math.asin
5592ABS = math.abs
5593MRANDOM = math.random
5594FLOOR = math.floor
5595
5596--//=================================\\
5597--|| USEFUL VALUES
5598--\\=================================//
5599
5600Animation_Speed = 3
5601Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
5602local Speed = 20
5603local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
5604local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
5605local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
5606local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
5607local DAMAGEMULTIPLIER = 1
5608local ANIM = "Idle"
5609local ATTACK = false
5610local EQUIPPED = false
5611local HOLD = false
5612local COMBO = 1
5613local Rooted = false
5614local SINE = 0
5615local KEYHOLD = false
5616local CHANGE = 2 / Animation_Speed
5617local WALKINGANIM = false
5618local VALUE1 = false
5619local VALUE2 = false
5620local ROBLOXIDLEANIMATION = IT("Animation")
5621ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
5622ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
5623--ROBLOXIDLEANIMATION.Parent = Humanoid
5624local WEAPONGUI = IT("ScreenGui", PlayerGui)
5625WEAPONGUI.Name = "PIXELGUI"
5626local Effects = IT("Folder", Character)
5627Effects.Name = "Effects"
5628local ANIMATOR = Humanoid.Animator
5629local ANIMATE = Character.Animate
5630local UNANCHOR = true
5631local SONG = 383837680
5632local DEAD = false
5633local WALKINGANIM = false
5634local WALK = 0
5635Player_Size = 1 --Size of the player.
5636Animation_Speed = 3
5637Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
5638
5639local Speed = 16
5640local Effects2 = {}
5641
5642--//=================================\\
5643--\\=================================//
5644
5645
5646--//=================================\\
5647--|| SAZERENOS' ARTIFICIAL HEARTBEAT
5648--\\=================================//
5649
5650ArtificialHB = Instance.new("BindableEvent", script)
5651ArtificialHB.Name = "ArtificialHB"
5652
5653script:WaitForChild("ArtificialHB")
5654
5655frame = Frame_Speed
5656tf = 0
5657allowframeloss = false
5658tossremainder = false
5659lastframe = tick()
5660script.ArtificialHB:Fire()
5661
5662game:GetService("RunService").Heartbeat:connect(function(s, p)
5663 tf = tf + s
5664 if tf >= frame then
5665 if allowframeloss then
5666 script.ArtificialHB:Fire()
5667 lastframe = tick()
5668 else
5669 for i = 1, math.floor(tf / frame) do
5670 script.ArtificialHB:Fire()
5671 end
5672 lastframe = tick()
5673 end
5674 if tossremainder then
5675 tf = 0
5676 else
5677 tf = tf - frame * math.floor(tf / frame)
5678 end
5679 end
5680end)
5681
5682--//=================================\\
5683--\\=================================//
5684
5685--//=================================\\
5686--|| SOME FUNCTIONS
5687--\\=================================//
5688
5689function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
5690 return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
5691end
5692
5693function PositiveAngle(NUMBER)
5694 if NUMBER >= 0 then
5695 NUMBER = 0
5696 end
5697 return NUMBER
5698end
5699
5700function NegativeAngle(NUMBER)
5701 if NUMBER <= 0 then
5702 NUMBER = 0
5703 end
5704 return NUMBER
5705end
5706
5707function Swait(NUMBER)
5708 if NUMBER == 0 or NUMBER == nil then
5709 ArtificialHB.Event:wait()
5710 else
5711 for i = 1, NUMBER do
5712 ArtificialHB.Event:wait()
5713 end
5714 end
5715end
5716
5717function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
5718 local NEWMESH = IT(MESH)
5719 if MESH == "SpecialMesh" then
5720 NEWMESH.MeshType = MESHTYPE
5721 if MESHID ~= "nil" and MESHID ~= "" then
5722 NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
5723 end
5724 if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
5725 NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
5726 end
5727 end
5728 NEWMESH.Offset = OFFSET or VT(0, 0, 0)
5729 NEWMESH.Scale = SCALE
5730 NEWMESH.Parent = PARENT
5731 return NEWMESH
5732end
5733
5734function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
5735 local NEWPART = IT("Part")
5736 NEWPART.formFactor = FORMFACTOR
5737 NEWPART.Reflectance = REFLECTANCE
5738 NEWPART.Transparency = TRANSPARENCY
5739 NEWPART.CanCollide = false
5740 NEWPART.Locked = true
5741 NEWPART.Anchored = true
5742 if ANCHOR == false then
5743 NEWPART.Anchored = false
5744 end
5745 NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
5746 NEWPART.Name = NAME
5747 NEWPART.Size = SIZE
5748 NEWPART.Position = Torso.Position
5749 NEWPART.Material = MATERIAL
5750 NEWPART:BreakJoints()
5751 NEWPART.Parent = PARENT
5752 return NEWPART
5753end
5754
5755 local function weldBetween(a, b)
5756 local weldd = Instance.new("ManualWeld")
5757 weldd.Part0 = a
5758 weldd.Part1 = b
5759 weldd.C0 = CFrame.new()
5760 weldd.C1 = b.CFrame:inverse() * a.CFrame
5761 weldd.Parent = a
5762 return weldd
5763 end
5764
5765
5766function QuaternionFromCFrame(cf)
5767 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
5768 local trace = m00 + m11 + m22
5769 if trace > 0 then
5770 local s = math.sqrt(1 + trace)
5771 local recip = 0.5 / s
5772 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
5773 else
5774 local i = 0
5775 if m11 > m00 then
5776 i = 1
5777 end
5778 if m22 > (i == 0 and m00 or m11) then
5779 i = 2
5780 end
5781 if i == 0 then
5782 local s = math.sqrt(m00 - m11 - m22 + 1)
5783 local recip = 0.5 / s
5784 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
5785 elseif i == 1 then
5786 local s = math.sqrt(m11 - m22 - m00 + 1)
5787 local recip = 0.5 / s
5788 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
5789 elseif i == 2 then
5790 local s = math.sqrt(m22 - m00 - m11 + 1)
5791 local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
5792 end
5793 end
5794end
5795
5796function QuaternionToCFrame(px, py, pz, x, y, z, w)
5797 local xs, ys, zs = x + x, y + y, z + z
5798 local wx, wy, wz = w * xs, w * ys, w * zs
5799 local xx = x * xs
5800 local xy = x * ys
5801 local xz = x * zs
5802 local yy = y * ys
5803 local yz = y * zs
5804 local zz = z * zs
5805 return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
5806end
5807
5808function QuaternionSlerp(a, b, t)
5809 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
5810 local startInterp, finishInterp;
5811 if cosTheta >= 0.0001 then
5812 if (1 - cosTheta) > 0.0001 then
5813 local theta = ACOS(cosTheta)
5814 local invSinTheta = 1 / SIN(theta)
5815 startInterp = SIN((1 - t) * theta) * invSinTheta
5816 finishInterp = SIN(t * theta) * invSinTheta
5817 else
5818 startInterp = 1 - t
5819 finishInterp = t
5820 end
5821 else
5822 if (1 + cosTheta) > 0.0001 then
5823 local theta = ACOS(-cosTheta)
5824 local invSinTheta = 1 / SIN(theta)
5825 startInterp = SIN((t - 1) * theta) * invSinTheta
5826 finishInterp = SIN(t * theta) * invSinTheta
5827 else
5828 startInterp = t - 1
5829 finishInterp = t
5830 end
5831 end
5832 return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
5833end
5834
5835function Clerp(a, b, t)
5836 local qa = {QuaternionFromCFrame(a)}
5837 local qb = {QuaternionFromCFrame(b)}
5838 local ax, ay, az = a.x, a.y, a.z
5839 local bx, by, bz = b.x, b.y, b.z
5840 local _t = 1 - t
5841 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
5842end
5843
5844function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
5845 local frame = IT("Frame")
5846 frame.BackgroundTransparency = TRANSPARENCY
5847 frame.BorderSizePixel = BORDERSIZEPIXEL
5848 frame.Position = POSITION
5849 frame.Size = SIZE
5850 frame.BackgroundColor3 = COLOR
5851 frame.BorderColor3 = BORDERCOLOR
5852 frame.Name = NAME
5853 frame.Parent = PARENT
5854 return frame
5855end
5856
5857function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
5858 local label = IT("TextLabel")
5859 label.BackgroundTransparency = 1
5860 label.Size = UD2(1, 0, 1, 0)
5861 label.Position = UD2(0, 0, 0, 0)
5862 label.TextColor3 = TEXTCOLOR
5863 label.TextStrokeTransparency = STROKETRANSPARENCY
5864 label.TextTransparency = TRANSPARENCY
5865 label.FontSize = TEXTFONTSIZE
5866 label.Font = TEXTFONT
5867 label.BorderSizePixel = BORDERSIZEPIXEL
5868 label.TextScaled = false
5869 label.Text = TEXT
5870 label.Name = NAME
5871 label.Parent = PARENT
5872 return label
5873end
5874
5875function NoOutlines(PART)
5876 PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
5877end
5878
5879function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
5880 local NEWWELD = IT(TYPE)
5881 NEWWELD.Part0 = PART0
5882 NEWWELD.Part1 = PART1
5883 NEWWELD.C0 = C0
5884 NEWWELD.C1 = C1
5885 NEWWELD.Parent = PARENT
5886 return NEWWELD
5887end
5888
5889local S = IT("Sound")
5890function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
5891 local NEWSOUND = nil
5892 coroutine.resume(coroutine.create(function()
5893 NEWSOUND = S:Clone()
5894 NEWSOUND.Parent = PARENT
5895 NEWSOUND.Volume = VOLUME
5896 NEWSOUND.Pitch = PITCH
5897 NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
5898 NEWSOUND:play()
5899 if DOESLOOP == true then
5900 NEWSOUND.Looped = true
5901 else
5902 repeat wait(1) until NEWSOUND.Playing == false
5903 NEWSOUND:remove()
5904 end
5905 end))
5906 return NEWSOUND
5907end
5908
5909function CFrameFromTopBack(at, top, back)
5910 local right = top:Cross(back)
5911 return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
5912end
5913
5914--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
5915function WACKYEFFECT(Table)
5916 local TYPE = (Table.EffectType or "Sphere")
5917 local SIZE = (Table.Size or VT(1,1,1))
5918 local ENDSIZE = (Table.Size2 or VT(0,0,0))
5919 local TRANSPARENCY = (Table.Transparency or 0)
5920 local ENDTRANSPARENCY = (Table.Transparency2 or 1)
5921 local CFRAME = (Table.CFrame or Torso.CFrame)
5922 local MOVEDIRECTION = (Table.MoveToPos or nil)
5923 local ROTATION1 = (Table.RotationX or 0)
5924 local ROTATION2 = (Table.RotationY or 0)
5925 local ROTATION3 = (Table.RotationZ or 0)
5926 local MATERIAL = (Table.Material or "Neon")
5927 local COLOR = (Table.Color or C3(1,1,1))
5928 local TIME = (Table.Time or 45)
5929 local SOUNDID = (Table.SoundID or nil)
5930 local SOUNDPITCH = (Table.SoundPitch or nil)
5931 local SOUNDVOLUME = (Table.SoundVolume or nil)
5932 coroutine.resume(coroutine.create(function()
5933 local PLAYSSOUND = false
5934 local SOUND = nil
5935 local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
5936 if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
5937 PLAYSSOUND = true
5938 SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
5939 end
5940 EFFECT.Color = COLOR
5941 local MSH = nil
5942 if TYPE == "Sphere" then
5943 MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
5944 elseif TYPE == "Block" or TYPE == "Box" then
5945 MSH = IT("BlockMesh",EFFECT)
5946 MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
5947 elseif TYPE == "Wave" then
5948 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
5949 elseif TYPE == "Ring" then
5950 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
5951 elseif TYPE == "Slash" then
5952 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
5953 elseif TYPE == "Round Slash" then
5954 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
5955 elseif TYPE == "Swirl" then
5956 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
5957 elseif TYPE == "Skull" then
5958 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
5959 elseif TYPE == "Crystal" then
5960 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
5961 end
5962 if MSH ~= nil then
5963 local MOVESPEED = nil
5964 if MOVEDIRECTION ~= nil then
5965 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
5966 end
5967 local GROWTH = SIZE - ENDSIZE
5968 local TRANS = TRANSPARENCY - ENDTRANSPARENCY
5969 if TYPE == "Block" then
5970 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
5971 else
5972 EFFECT.CFrame = CFRAME
5973 end
5974 for LOOP = 1, TIME+1 do
5975 Swait()
5976 MSH.Scale = MSH.Scale - GROWTH/TIME
5977 if TYPE == "Wave" then
5978 MSH.Offset = VT(0,0,-MSH.Scale.X/8)
5979 end
5980 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
5981 if TYPE == "Block" then
5982 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
5983 else
5984 EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
5985 end
5986 if MOVEDIRECTION ~= nil then
5987 local ORI = EFFECT.Orientation
5988 EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
5989 EFFECT.Orientation = ORI
5990 end
5991 end
5992 if PLAYSSOUND == false then
5993 EFFECT:remove()
5994 else
5995 repeat Swait() until SOUND.Playing == false
5996 EFFECT:remove()
5997 end
5998 else
5999 if PLAYSSOUND == false then
6000 EFFECT:remove()
6001 else
6002 repeat Swait() until SOUND.Playing == false
6003 EFFECT:remove()
6004 end
6005 end
6006 end))
6007end
6008
6009function MakeForm(PART,TYPE)
6010 if TYPE == "Cyl" then
6011 local MSH = IT("CylinderMesh",PART)
6012 elseif TYPE == "Ball" then
6013 local MSH = IT("SpecialMesh",PART)
6014 MSH.MeshType = "Sphere"
6015 elseif TYPE == "Wedge" then
6016 local MSH = IT("SpecialMesh",PART)
6017 MSH.MeshType = "Wedge"
6018 end
6019end
6020
6021Debris = game:GetService("Debris")
6022
6023function CastProperRay(StartPos, EndPos, Distance, Ignore)
6024 local DIRECTION = CF(StartPos,EndPos).lookVector
6025 return Raycast(StartPos, DIRECTION, Distance, Ignore)
6026end
6027
6028function turnto(position)
6029 RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
6030end
6031---hat
6032p = game.Players.LocalPlayer
6033char = p.Character
6034torso = char.Torso
6035hed = char.Head
6036neck = char.Torso.Neck
6037hum = char.Humanoid
6038hum.MaxHealth = math.huge
6039ypcall(function()
6040end)
6041function sbchat(msg,displayname)
6042 if not displayname then
6043 displayname = '<Bitch Smoke>'
6044 end
6045 for i,v in pairs(game:GetService('Players'):GetChildren()) do
6046 local st = Instance.new('StringValue')
6047 st.Name = 'SB_Chat'
6048 st.Value = displayname..'/'..msg
6049 delay(0.2,function() st.Parent = v end)
6050 end
6051 end
6052p1 = Instance.new("Part",char)
6053p1.FormFactor = Enum.FormFactor.Custom
6054p1.Size = Vector3.new(1.8,0.8,1.8)
6055p1.CanCollide = false
6056p1.Locked = true
6057p1.BottomSurface = Enum.SurfaceType.Smooth
6058p1.TopSurface = Enum.SurfaceType.Smooth
6059SMesh = Instance.new("SpecialMesh", p1)
6060SMesh.MeshId = "http://www.roblox.com/asset/?id=0"
6061SMesh.MeshType = Enum.MeshType.FileMesh
6062SMesh.Name = "Mesh"
6063SMesh.TextureId = "http://www.roblox.com/asset/?id=0"
6064w1 = Instance.new("Weld", hed)
6065w1.Part0 = hed
6066w1.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,1.5,0)
6067w1.Part1 = p1
6068w1.C1 = CFrame.new(0, -0.9, 0)
6069--Hair
6070p = game.Players.LocalPlayer
6071char = p.Character
6072torso = char.Torso
6073hed = char.Head
6074neck = char.Torso.Neck
6075hum = char.Humanoid
6076hum.MaxHealth = math.huge
6077ypcall(function()
6078shirt = Instance.new("Shirt", char)
6079shirt.Name = "Shirt"
6080pants = Instance.new("Pants", char)
6081pants.Name = "Pants"
6082end)
6083function sbchat(msg,displayname)
6084 if not displayname then
6085 displayname = '<Bitch Smoke>'
6086 end
6087 for i,v in pairs(game:GetService('Players'):GetChildren()) do
6088 local st = Instance.new('StringValue')
6089 st.Name = 'SB_Chat'
6090 st.Value = displayname..'/'..msg
6091 delay(0.2,function() st.Parent = v end)
6092 end
6093 end
6094p1 = Instance.new("Part",char)
6095p1.FormFactor = Enum.FormFactor.Custom
6096p1.Size = Vector3.new(1.8,0.8,1.8)
6097p1.CanCollide = false
6098p1.Locked = true
6099p1.BottomSurface = Enum.SurfaceType.Smooth
6100p1.TopSurface = Enum.SurfaceType.Smooth
6101SMesh = Instance.new("SpecialMesh", p1)
6102SMesh.MeshId = "http://www.roblox.com/asset/?id=74878559"
6103SMesh.MeshType = Enum.MeshType.FileMesh
6104SMesh.Name = "Mesh"
6105SMesh.TextureId = "http://www.roblox.com/asset/?id=75976712"
6106w1 = Instance.new("Weld", hed)
6107w1.Part0 = hed
6108w1.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
6109w1.Part1 = p1
6110w1.C1 = CFrame.new(0, -0.4, 0)
6111-----
6112 if Head:FindFirstChild("face") then
6113 Head.face.Texture = "http://www.roblox.com/asset/?id=123692902"
6114 mouse = game.Players.LocalPlayer:GetMouse()
6115for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
6116 if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" or v.ClassName == "Accessory" then
6117 v:Remove()
6118 end
6119end
6120 dft = {}
6121--lollllll
6122wait(0.2)
6123p = game.Players.LocalPlayer
6124char = p.Character
6125torso = char.Torso
6126hed = char.Head
6127neck = char.Torso.Neck
6128hum = char.Humanoid
6129hum.MaxHealth = math.huge
6130ypcall(function()
6131shirt = Instance.new("Shirt", char)
6132shirt.Name = "Shirt"
6133pants = Instance.new("Pants", char)
6134pants.Name = "Pants"
6135char.Shirt.ShirtTemplate = "rbxassetid://28574189"
6136char.Pants.PantsTemplate = "rbxassetid://28575312"
6137end)
6138function sbchat(msg,displayname)
6139 if not displayname then
6140 displayname = '<Bitch Smoke>'
6141 end
6142 for i,v in pairs(game:GetService('Players'):GetChildren()) do
6143 local st = Instance.new('StringValue')
6144 st.Name = 'SB_Chat'
6145 st.Value = displayname..'/'..msg
6146 delay(0.2,function() st.Parent = v end)
6147 end
6148 end
6149
6150Player = game:GetService("Players").LocalPlayer
6151PlayerGui = Player.PlayerGui
6152Cam = workspace.CurrentCamera
6153Backpack = Player.Backpack
6154Character = Player.Character
6155Humanoid = Character.Humanoid
6156Mouse = Player:GetMouse()
6157RootPart = Character["HumanoidRootPart"]
6158Torso = Character["Torso"]
6159Head = Character["Head"]
6160RightArm = Character["Right Arm"]
6161LeftArm = Character["Left Arm"]
6162RightLeg = Character["Right Leg"]
6163LeftLeg = Character["Left Leg"]
6164RootJoint = RootPart["RootJoint"]
6165Neck = Torso["Neck"]
6166RightShoulder = Torso["Right Shoulder"]
6167LeftShoulder = Torso["Left Shoulder"]
6168RightHip = Torso["Right Hip"]
6169LeftHip = Torso["Left Hip"]
6170
6171local ff = Instance.new('ForceField', Character)
6172ff.Visible = false
6173
6174local sick = Instance.new("Sound",Character)
6175sick.SoundId = "rbxassetid://1536839808"
6176sick.Looped = true
6177sick.Pitch = 1
6178sick.Volume = 10
6179sick:Play()
6180
6181function unanchor()
6182 if UNANCHOR == true then
6183 for _, c in pairs(Character:GetChildren()) do
6184 if c:IsA("BasePart") then
6185 c.Anchored = false
6186 end
6187 end
6188 else
6189 for _, c in pairs(Character:GetChildren()) do
6190 if c:IsA("BasePart") then
6191 c.Anchored = true
6192 end
6193 end
6194 end
6195end
6196
6197function Taunt()
6198 ATTACK = true
6199 Rooted = true
6200 CreateSound("1826625760", Head, 10, 1)
6201 for i = 1, 3 do
6202 for i = 0, 0.7, 0.1 / Animation_Speed do
6203 Swait()
6204 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
6205 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
6206 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
6207 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
6208 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
6209 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
6210 end
6211 for i = 0, 0.7, 0.1 / Animation_Speed do
6212 Swait()
6213 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
6214 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
6215 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
6216 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
6217 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
6218 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
6219 end
6220 end
6221 ATTACK = false
6222 Rooted = false
6223end
6224
6225
6226--//=================================\\
6227--|| ASSIGN THINGS TO KEYS
6228--\\=================================//
6229
6230function KeyDown(Key)
6231
6232 if Key == "t" and ATTACK == false then
6233 Taunt()
6234 end
6235end
6236
6237function KeyUp(Key)
6238 KEYHOLD = false
6239end
6240
6241 Mouse.KeyDown:connect(function(NEWKEY)
6242 KeyDown(NEWKEY)
6243 end)
6244 Mouse.KeyUp:connect(function(NEWKEY)
6245 KeyUp(NEWKEY)
6246 end)
6247
6248--//=================================\\
6249--|| WRAP THE WHOLE SCRIPT UP
6250--\\=================================//
6251
6252local JUMPED = false
6253
6254Humanoid.Changed:connect(function(Jump)
6255 if Jump == "Jump" and (Disable_Jump == true) then
6256 Humanoid.Jump = false
6257 elseif Jump == "Jump" and Disable_Jump == false and JUMPED == false then
6258 JUMPED = true
6259 CreateSound(158309736, Torso, 10, 1, false)
6260 end
6261end)
6262
6263while true do
6264 Swait()
6265 ANIMATE.Parent = nil
6266 local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
6267 IDLEANIMATION:Play()
6268 SINE = SINE + CHANGE
6269 local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
6270 local TORSOVERTICALVELOCITY = RootPart.Velocity.y
6271 local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
6272 local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
6273 local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
6274 if ANIM == "Walk" and TORSOVELOCITY > 1 then
6275 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
6276 Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
6277 RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
6278 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
6279 elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
6280 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6281 Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6282 RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6283 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6284 end
6285 if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
6286 ANIM = "Jump"
6287 if ATTACK == false then
6288 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6289 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6290 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6291 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
6292 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
6293 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
6294 end
6295 elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
6296 ANIM = "Fall"
6297 if ATTACK == false then
6298 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6299 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
6300 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
6301 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
6302 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
6303 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
6304 end
6305 elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
6306 ANIM = "Idle"
6307 if ATTACK == false then
6308 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6309 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6310 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
6311 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
6312 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6313 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6314 end
6315 elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
6316 ANIM = "Walk"
6317 WALK = WALK + 1 / Animation_Speed
6318 if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
6319 WALK = 0
6320 if WALKINGANIM == true then
6321 WALKINGANIM = false
6322 elseif WALKINGANIM == false then
6323 WALKINGANIM = true
6324 end
6325 end
6326 --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
6327 --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
6328 if ATTACK == false then
6329 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6330 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
6331 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
6332 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
6333 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
6334 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
6335 end
6336 end
6337 unanchor()
6338 Humanoid.MaxHealth = "inf"
6339 Humanoid.Health = "inf"
6340 if Rooted == false then
6341 Disable_Jump = false
6342 Humanoid.WalkSpeed = Speed
6343 elseif Rooted == true then
6344 Disable_Jump = true
6345 Humanoid.WalkSpeed = 0
6346 end
6347end
6348 local COLOR = C3((0+sick.PlaybackLoudness/200)/510,(115+sick.PlaybackLoudness/25)/510,(150+sick.PlaybackLoudness*1.5)/610)
6349 for _, c in pairs(Character:GetChildren()) do
6350 if c:IsA("BasePart") and c.Name ~= "Detail" then
6351 c.Material = "Neon"
6352 if c:FindFirstChildOfClass("ParticleEmitter") then
6353 c:FindFirstChildOfClass("ParticleEmitter"):remove()
6354 end
6355 if c == Head then
6356 if c:FindFirstChild("face") then
6357 c.face:remove()
6358 end
6359 end
6360 elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
6361 c:remove()
6362 elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
6363 c:remove()
6364 elseif c.Name == "Detail" then
6365 c.Material = "Neon"
6366 c.Color = COLOR
6367 end
6368 end
6369 if DEAD == false then
6370 sick.SoundId = "rbxassetid://"..SONG
6371 sick.Looped = true
6372 sick.Pitch = 1
6373 sick.Volume = 2
6374 sick.Playing = true
6375 sick.Parent = Torso
6376 else
6377 sick:remove()
6378 end
6379 Humanoid.Name = "Gordon Freeman"
6380
6381--//=================================\\
6382--\\=================================//
6383
6384
6385
6386
6387
6388--//====================================================\\--
6389--|| END OF SCRIPT
6390--\\====================================================//--
6391end