SHOW:
|
|
- or go back to the newest paste.
1 | CV="White" | |
2 | -- This script has been converted to FE by iPxter | |
3 | ||
4 | ||
5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
6 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
7 | do | |
8 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
9 | script.Parent = Player.Character | |
10 | ||
11 | --RemoteEvent for communicating | |
12 | local Event = Instance.new("RemoteEvent") | |
13 | Event.Name = "UserInput_Event" | |
14 | ||
15 | --Fake event to make stuff like Mouse.KeyDown work | |
16 | local function fakeEvent() | |
17 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
18 | t.connect = t.Connect | |
19 | return t | |
20 | end | |
21 | ||
22 | --Creating fake input objects with fake variables | |
23 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
24 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
25 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
26 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
27 | end} | |
28 | --Merged 2 functions into one by checking amount of arguments | |
29 | CAS.UnbindAction = CAS.BindAction | |
30 | ||
31 | --This function will trigger the events that have been :Connect()'ed | |
32 | local function te(self,ev,...) | |
33 | local t = m[ev] | |
34 | if t and t._fakeEvent and t.Function then | |
35 | t.Function(...) | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=Player then return end | |
43 | if io.isMouse then | |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | else | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | for _,t in pairs(CAS.Actions) do | |
52 | for _,k in pairs(t.Keys) do | |
53 | if k==io.KeyCode then | |
54 | t.Function(t.Name,io.UserInputState,io) | |
55 | end | |
56 | end | |
57 | end | |
58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
60 | end | |
61 | end) | |
62 | Event.Parent = NLS([==[ | |
63 | local Player = game:GetService("Players").LocalPlayer | |
64 | local Event = script:WaitForChild("UserInput_Event") | |
65 | ||
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local Mouse = Player:GetMouse() | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
86 | end | |
87 | ||
88 | p = owner | |
89 | char = p.Character | |
90 | local txt = Instance.new("BillboardGui", char) | |
91 | txt.Adornee = char .Head | |
92 | txt.Name = "_status" | |
93 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
94 | txt.StudsOffset = Vector3.new(-9, 6, 0) | |
95 | local text = Instance.new("TextLabel", txt) | |
96 | text.Size = UDim2.new(10, 0, 7, 0) | |
97 | text.FontSize = "Size24" | |
98 | text.TextScaled = true | |
99 | text.TextTransparency = 0 | |
100 | text.BackgroundTransparency = 1 | |
101 | text.TextTransparency = 0 | |
102 | text.TextStrokeTransparency = 1 | |
103 | text.Font = "Code" | |
104 | text.TextStrokeColor3 = Color3.new(40,0,0) | |
105 | ||
106 | v=Instance.new("Part") | |
107 | v.Name = "ColorBrick" | |
108 | v.Parent=p.Character | |
109 | v.FormFactor="Symmetric" | |
110 | v.Anchored=true | |
111 | v.CanCollide=false | |
112 | v.BottomSurface="Smooth" | |
113 | v.TopSurface="Smooth" | |
114 | v.Size=Vector3.new(10,5,3) | |
115 | v.Transparency=1 | |
116 | v.CFrame=char.Torso.CFrame | |
117 | v.BrickColor=BrickColor.new(CV) | |
118 | v.Transparency=1 | |
119 | text.TextColor3 = Color3.fromRGB(255,140,0) | |
120 | v.Shape="Block" | |
121 | text.Text = "Nine Tailed Fox Heavy Unit" | |
122 | coroutine.wrap(function() | |
123 | while wait() do | |
124 | wait(3) | |
125 | text.Text = "Kill" | |
126 | wait() | |
127 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
128 | wait(2) | |
129 | local str = "" | |
130 | for i = 1, math.random(3,25) do | |
131 | str = str..string.char(math.random(65,122)) | |
132 | end | |
133 | text.Text = str | |
134 | wait() | |
135 | str = "" | |
136 | for i = 1, math.random(12,25) do | |
137 | str = str..string.char(math.random(48,122)) | |
138 | end | |
139 | wait() | |
140 | text.Text = str | |
141 | wait() | |
142 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
143 | wait(1) | |
144 | text.Text = "THE PAIN" | |
145 | wait() | |
146 | text.Text = "What do you want?" | |
147 | wait() | |
148 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
149 | wait(2) | |
150 | text.Text = "You made me do this."; | |
151 | wait() | |
152 | text.Text = "Kill"; | |
153 | wait() | |
154 | for i = 1, math.random(12,25) do | |
155 | str = str..string.char(math.random(48,57)) | |
156 | end | |
157 | text.Text = str | |
158 | wait() | |
159 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
160 | wait(2) | |
161 | end | |
162 | end)() | |
163 | local Player = owner | |
164 | local Character = Player.Character | |
165 | local Torso = Character.Torso | |
166 | local hum = Character.Humanoid | |
167 | hum.MaxHealth = 1000 | |
168 | wait(0.1) | |
169 | hum.Health = 1000 | |
170 | ||
171 | local Music = Instance.new("Sound") | |
172 | ||
173 | Music.Name = "Sound" | |
174 | Music.SoundId = "http://roblox.com/asset/?id=714974960" | |
175 | Music.Volume = 4 | |
176 | Music.Looped = false | |
177 | Music.Parent = Character | |
178 | Music:play() | |
179 | ||
180 | GasMask = true | |
181 | ||
182 | if GasMask == true then | |
183 | o1 = Instance.new("Model") | |
184 | o2 = Instance.new("Part") | |
185 | o3 = Instance.new("SpecialMesh") | |
186 | o4 = Instance.new("Part") | |
187 | o5 = Instance.new("Part") | |
188 | o6 = Instance.new("Part") | |
189 | o7 = Instance.new("SpecialMesh") | |
190 | o8 = Instance.new("Part") | |
191 | o9 = Instance.new("Part") | |
192 | o10 = Instance.new("SpecialMesh") | |
193 | o11 = Instance.new("Part") | |
194 | o12 = Instance.new("Part") | |
195 | o13 = Instance.new("SpecialMesh") | |
196 | o14 = Instance.new("Part") | |
197 | o15 = Instance.new("Part") | |
198 | o16 = Instance.new("Part") | |
199 | o17 = Instance.new("Part") | |
200 | o1.Name = "MODEL" | |
201 | o2.Name = "Middle" | |
202 | o2.Parent = o1 | |
203 | o2.BrickColor = BrickColor.new("Pastel brown") | |
204 | o2.Transparency = 1 | |
205 | o2.Position = Vector3.new(-13.5356159, 3.71991396, 50.2649117) | |
206 | o2.Rotation = Vector3.new(-5.66336393, -89.7626114, -5.66246414) | |
207 | o2.Anchored = true | |
208 | o2.FormFactor = Enum.FormFactor.Custom | |
209 | o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
210 | o2.CFrame = CFrame.new(-13.5356159, 3.71991396, 50.2649117, 1.75646369e-006, 1.74156298e-007, -0.999991417, -1.04150445e-007, 1, 1.60883403e-007, 0.999999762, 9.62157287e-008, 1.6223396e-006) | |
211 | o2.BottomSurface = Enum.SurfaceType.Smooth | |
212 | o2.TopSurface = Enum.SurfaceType.Smooth | |
213 | o2.Color = Color3.new(1, 0.8, 0.6) | |
214 | o3.Parent = o2 | |
215 | o3.Scale = Vector3.new(6.25, 6.25, 6.25) | |
216 | o3.MeshType = Enum.MeshType.FileMesh | |
217 | o4.Name = "Lense 1" | |
218 | o4.Parent = o1 | |
219 | o4.Material = Enum.Material.Metal | |
220 | o4.Transparency = 0.050000011920929 | |
221 | o4.Position = Vector3.new(-12.900528, 3.77991295, 50.5080605) | |
222 | o4.Rotation = Vector3.new(-180, 20.6807137, -179.999985) | |
223 | o4.Anchored = true | |
224 | o4.CanCollide = false | |
225 | o4.FormFactor = Enum.FormFactor.Custom | |
226 | o4.Shape = Enum.PartType.Cylinder | |
227 | o4.Size = Vector3.new(0.200000003, 0.320000023, 0.939999998) | |
228 | o4.CFrame = CFrame.new(-12.900528, 3.77991295, 50.5080605, -0.935553849, 3.06141374e-007, 0.353159934, 3.19927466e-007, 1, 2.01617603e-008, -0.353163034, 1.1997561e-007, -0.935561478) | |
229 | o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
230 | o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
231 | o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
232 | o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
233 | o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
234 | o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
235 | o5.Name = "Lense2" | |
236 | o5.Parent = o1 | |
237 | o5.Material = Enum.Material.Metal | |
238 | o5.Transparency = 0.050000011920929 | |
239 | o5.Position = Vector3.new(-12.8961124, 3.77492094, 50.0302277) | |
240 | o5.Rotation = Vector3.new(-180, -23.8323021, -179.999985) | |
241 | o5.Anchored = true | |
242 | o5.CanCollide = false | |
243 | o5.FormFactor = Enum.FormFactor.Custom | |
244 | o5.Shape = Enum.PartType.Cylinder | |
245 | o5.Size = Vector3.new(0.200000003, 0.330000043, 0.99000001) | |
246 | o5.CFrame = CFrame.new(-12.8961124, 3.77492094, 50.0302277, -0.914722979, 2.85652249e-007, -0.404061079, 2.36339361e-007, 1, 1.37493373e-007, 0.404064298, 2.15865228e-008, -0.914730668) | |
247 | o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
248 | o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
249 | o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
250 | o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
251 | o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
252 | o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
253 | o6.Name = "Handle" | |
254 | o6.Parent = o1 | |
255 | o6.Material = Enum.Material.Metal | |
256 | o6.BrickColor = BrickColor.new("Really black") | |
257 | o6.Position = Vector3.new(-12.8799381, 3.69992495, 50.2599869) | |
258 | o6.Rotation = Vector3.new(-90, 9.97842108e-006, -89.9999008) | |
259 | o6.Anchored = true | |
260 | o6.CanCollide = false | |
261 | o6.FormFactor = Enum.FormFactor.Plate | |
262 | o6.Size = Vector3.new(1, 0.400000006, 1) | |
263 | o6.CFrame = CFrame.new(-12.8799381, 3.69992495, 50.2599869, 1.75646369e-006, 0.999991417, 1.74156298e-007, -1.04150445e-007, -1.60883403e-007, 1, 0.999999762, -1.6223396e-006, 9.62157287e-008) | |
264 | o6.BottomSurface = Enum.SurfaceType.Weld | |
265 | o6.TopSurface = Enum.SurfaceType.Smooth | |
266 | o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
267 | o7.Parent = o6 | |
268 | o7.MeshId = "http://www.roblox.com/asset/?id=5158270" | |
269 | o7.Scale = Vector3.new(0.140000001, 0.170000002, 0.100000001) | |
270 | o7.MeshType = Enum.MeshType.FileMesh | |
271 | o8.Name = "Straps" | |
272 | o8.Parent = o1 | |
273 | o8.Material = Enum.Material.Fabric | |
274 | o8.BrickColor = BrickColor.new("Really black") | |
275 | o8.Position = Vector3.new(-13.5199518, 3.48991394, 50.2599869) | |
276 | o8.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924) | |
277 | o8.Anchored = true | |
278 | o8.CanCollide = false | |
279 | o8.FormFactor = Enum.FormFactor.Custom | |
280 | o8.Shape = Enum.PartType.Cylinder | |
281 | o8.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999) | |
282 | o8.CFrame = CFrame.new(-13.5199518, 3.48991394, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762) | |
283 | o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
284 | o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
285 | o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
286 | o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
287 | o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
288 | o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
289 | o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
290 | o9.Name = "Ring2" | |
291 | o9.Parent = o1 | |
292 | o9.BrickColor = BrickColor.new("Dark stone grey") | |
293 | o9.Position = Vector3.new(-12.8061161, 3.77991295, 49.9993477) | |
294 | o9.Rotation = Vector3.new(-1.48261315e-005, -66.1664276, -2.4695395e-005) | |
295 | o9.Anchored = true | |
296 | o9.CanCollide = false | |
297 | o9.FormFactor = Enum.FormFactor.Custom | |
298 | o9.Size = Vector3.new(0.600000024, 0.200000003, 1) | |
299 | o9.CFrame = CFrame.new(-12.8061161, 3.77991295, 49.9993477, 0.404059976, 1.74156298e-007, -0.914723039, -1.6136562e-007, 1, 1.0455733e-007, 0.914730787, 9.62157287e-008, 0.404063195) | |
300 | o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
301 | o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
302 | o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
303 | o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
304 | o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
305 | o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
306 | o9.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
307 | o10.Parent = o9 | |
308 | o10.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
309 | o10.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012) | |
310 | o10.MeshType = Enum.MeshType.FileMesh | |
311 | o11.Name = "Straps" | |
312 | o11.Parent = o1 | |
313 | o11.Material = Enum.Material.Fabric | |
314 | o11.BrickColor = BrickColor.new("Really black") | |
315 | o11.Position = Vector3.new(-13.5199518, 4.00991392, 50.2599869) | |
316 | o11.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924) | |
317 | o11.Anchored = true | |
318 | o11.CanCollide = false | |
319 | o11.FormFactor = Enum.FormFactor.Custom | |
320 | o11.Shape = Enum.PartType.Cylinder | |
321 | o11.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999) | |
322 | o11.CFrame = CFrame.new(-13.5199518, 4.00991392, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762) | |
323 | o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
324 | o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
325 | o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
326 | o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
327 | o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
328 | o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
329 | o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
330 | o12.Name = "Ring1" | |
331 | o12.Parent = o1 | |
332 | o12.BrickColor = BrickColor.new("Dark stone grey") | |
333 | o12.Position = Vector3.new(-12.7999144, 3.76992106, 50.5299988) | |
334 | o12.Rotation = Vector3.new(-179.999969, -69.3177338, -179.999985) | |
335 | o12.Anchored = true | |
336 | o12.CanCollide = false | |
337 | o12.FormFactor = Enum.FormFactor.Custom | |
338 | o12.Size = Vector3.new(0.600000024, 0.200000003, 1) | |
339 | o12.CFrame = CFrame.new(-12.7999144, 3.76992106, 50.5299988, -0.353160918, 1.74156298e-007, -0.935553372, -4.22077129e-008, 1, 1.87534141e-007, 0.935561061, 9.62157287e-008, -0.353164017) | |
340 | o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
341 | o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
342 | o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
343 | o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
344 | o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
345 | o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
346 | o12.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
347 | o13.Parent = o12 | |
348 | o13.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
349 | o13.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012) | |
350 | o13.MeshType = Enum.MeshType.FileMesh | |
351 | o14.Name = "Breather" | |
352 | o14.Parent = o1 | |
353 | o14.Material = Enum.Material.Metal | |
354 | o14.BrickColor = BrickColor.new("Really black") | |
355 | o14.Position = Vector3.new(-12.7419596, 3.69627094, 50.2550011) | |
356 | o14.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521) | |
357 | o14.Anchored = true | |
358 | o14.CanCollide = false | |
359 | o14.FormFactor = Enum.FormFactor.Custom | |
360 | o14.Shape = Enum.PartType.Cylinder | |
361 | o14.Size = Vector3.new(0.600000024, 0.340000093, 0.25000003) | |
362 | o14.CFrame = CFrame.new(-12.7419596, 3.69627094, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762) | |
363 | o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
364 | o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
365 | o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
366 | o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
367 | o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
368 | o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
369 | o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
370 | o15.Name = "Breather" | |
371 | o15.Parent = o1 | |
372 | o15.Material = Enum.Material.Metal | |
373 | o15.BrickColor = BrickColor.new("Really black") | |
374 | o15.Position = Vector3.new(-12.5337915, 3.51434994, 50.2550011) | |
375 | o15.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521) | |
376 | o15.Anchored = true | |
377 | o15.CanCollide = false | |
378 | o15.FormFactor = Enum.FormFactor.Custom | |
379 | o15.Shape = Enum.PartType.Cylinder | |
380 | o15.Size = Vector3.new(0.200000003, 0.340000093, 0.350000024) | |
381 | o15.CFrame = CFrame.new(-12.5337915, 3.51434994, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762) | |
382 | o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
383 | o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
384 | o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
385 | o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
386 | o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
387 | o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
388 | o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
389 | o16.Name = "Breather" | |
390 | o16.Parent = o1 | |
391 | o16.Material = Enum.Material.Metal | |
392 | o16.BrickColor = BrickColor.new("Really black") | |
393 | o16.Position = Vector3.new(-12.7920103, 3.39220095, 49.784256) | |
394 | o16.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548) | |
395 | o16.Anchored = true | |
396 | o16.CanCollide = false | |
397 | o16.FormFactor = Enum.FormFactor.Custom | |
398 | o16.Shape = Enum.PartType.Cylinder | |
399 | o16.Size = Vector3.new(0.230000019, 0.540000081, 0.75) | |
400 | o16.CFrame = CFrame.new(-12.7920103, 3.39220095, 49.784256, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967) | |
401 | o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
402 | o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
403 | o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
404 | o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
405 | o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
406 | o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
407 | o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
408 | o17.Name = "Breather" | |
409 | o17.Parent = o1 | |
410 | o17.Material = Enum.Material.Metal | |
411 | o17.BrickColor = BrickColor.new("Really black") | |
412 | o17.Position = Vector3.new(-12.8723783, 3.42192006, 49.8816109) | |
413 | o17.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548) | |
414 | o17.Anchored = true | |
415 | o17.CanCollide = false | |
416 | o17.FormFactor = Enum.FormFactor.Custom | |
417 | o17.Shape = Enum.PartType.Cylinder | |
418 | o17.Size = Vector3.new(0.370000005, 0.540000081, 0.310000002) | |
419 | o17.CFrame = CFrame.new(-12.8723783, 3.42192006, 49.8816109, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967) | |
420 | o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
421 | o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
422 | o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
423 | o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
424 | o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
425 | o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
426 | o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
427 | function onTouched(hit) | |
428 | local d = hit.Parent:GetChildren() | |
429 | for i=1, #d do | |
430 | if (d[i].className == "Hat") then | |
431 | d[i]:remove() | |
432 | end | |
433 | end | |
434 | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Face") == nil then | |
435 | local g = o1:clone() | |
436 | g.Parent = hit.Parent | |
437 | local C = g:GetChildren() | |
438 | for i=1, #C do | |
439 | if C[i].className == "Part" then | |
440 | local W = Instance.new("Weld") | |
441 | W.Part0 = g.Middle | |
442 | W.Part1 = C[i] | |
443 | local CJ = CFrame.new(g.Middle.Position) | |
444 | local C0 = g.Middle.CFrame:inverse()*CJ | |
445 | local C1 = C[i].CFrame:inverse()*CJ | |
446 | W.C0 = C0 | |
447 | W.C1 = C1 | |
448 | W.Parent = g.Middle | |
449 | g.Middle.Transparency = 1 | |
450 | end | |
451 | local Y = Instance.new("Weld") | |
452 | Y.Part0 = hit.Parent.Head | |
453 | Y.Part1 = g.Middle | |
454 | Y.C0 = CFrame.new(0, 0, 0) | |
455 | Y.Parent = Y.Part0 | |
456 | end | |
457 | ||
458 | local h = g:GetChildren() | |
459 | for i = 1, # h do | |
460 | h[i].Anchored = false | |
461 | h[i].CanCollide = false | |
462 | end | |
463 | ||
464 | end | |
465 | end | |
466 | ||
467 | onTouched(game.Players.LocalPlayer.Character.Head) | |
468 | end | |
469 | local Player = owner | |
470 | local chara = Player.Character | |
471 | ||
472 | shirt= Instance.new("Shirt", Character) | |
473 | shirt.Name = "Shirt" | |
474 | pants = Instance.new("Pants", Character) | |
475 | pants.Name = "Pants" | |
476 | chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=245656735" | |
477 | chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=245656766" | |
478 | ||
479 | local Player = owner | |
480 | local chara = Player.Character | |
481 | local Character = Player.Character | |
482 | torso = chara.Torso | |
483 | ||
484 | New = function(Object, Parent, Name, Data) | |
485 | local Object = Instance.new(Object) | |
486 | for Index, Value in pairs(Data or {}) do | |
487 | Object[Index] = Value | |
488 | end | |
489 | Object.Parent = Parent | |
490 | Object.Name = Name | |
491 | return Object | |
492 | end | |
493 | - | local LoPa = game:GetService("Players").LocalPlayer |
493 | + | local LoPa = owner |
494 | local C = LoPa.Character | |
495 | ||
496 | ||
497 | LaserMinigun = New("Model",C,"LaserMinigun",{}) | |
498 | Gunpart = New("Model",LaserMinigun,"Gunpart",{}) | |
499 | FrontHandle = New("Part",Gunpart,"FrontHandle",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.334096551, 0.668193102, 0.334096551),CFrame = CFrame.new(30.8316956, 0.787470937, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
500 | Mesh = New("CylinderMesh",FrontHandle,"Mesh",{}) | |
501 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
502 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
503 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
504 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
505 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
506 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
507 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
508 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
509 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
510 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
511 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.556827545, 0.111365512, 0.556827545),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
512 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
513 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
514 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
515 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
516 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
517 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
518 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
519 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
520 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{}) | |
521 | gun4 = New("Part",Gunpart,"gun4",{BrickColor = BrickColor.new("Pastel blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
522 | Mesh = New("CylinderMesh",gun4,"Mesh",{}) | |
523 | gun1 = New("Part",Gunpart,"gun1",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
524 | Mesh = New("CylinderMesh",gun1,"Mesh",{}) | |
525 | gun3 = New("Part",Gunpart,"gun3",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
526 | Mesh = New("CylinderMesh",gun3,"Mesh",{}) | |
527 | gun2 = New("Part",Gunpart,"gun2",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
528 | Mesh = New("CylinderMesh",gun2,"Mesh",{}) | |
529 | PowerHolder = New("Model",LaserMinigun,"PowerHolder",{}) | |
530 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(27.7135086, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
531 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
532 | Model = New("Model",Part,"Model",{}) | |
533 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
534 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
535 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
536 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
537 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
538 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
539 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
540 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
541 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
542 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
543 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
544 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
545 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
546 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
547 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
548 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
549 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
550 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
551 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
552 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
553 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
554 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
555 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
556 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
557 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
558 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
559 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
560 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
561 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(29.4953289, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
562 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
563 | Model = New("Model",Part,"Model",{}) | |
564 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
565 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
566 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
567 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
568 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
569 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
570 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
571 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
572 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
573 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
574 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
575 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
576 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
577 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
578 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
579 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
580 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
581 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
582 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
583 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
584 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
585 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
586 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
587 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
588 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
589 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
590 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
591 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
592 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.222731024, 0.890924096),CFrame = CFrame.new(29.7180557, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
593 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
594 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
595 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
596 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
597 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
598 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
599 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
600 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
601 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
602 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
603 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
604 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
605 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
606 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
607 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
608 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
609 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
610 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(29.9407845, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
611 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
612 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
613 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
614 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.38624, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
615 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
616 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.668193102, 0.445462048),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
617 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
618 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(30.6089668, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
619 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
620 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.0498734, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
621 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
622 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000644, 0.707109809, 0.70710659, 0, 0.707112432, -0.707108617, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
623 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 2.00457907, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787482023, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
624 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
625 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.500002861, 0.866023839, 0, 0.866023839, -0.500002861, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
626 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.86602217, 0.500005305, 0, 0.500005305, -0.86602217, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
627 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.965924263, 0.258825034, 0, 0.258825064, -0.965924263, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
628 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.25882262, 0.965924919, 0, 0.965924919, -0.25882262, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
629 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
630 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.8271465, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
631 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
632 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.381691, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
633 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
634 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(28.1589584, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
635 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
636 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.222731024),CFrame = CFrame.new(26.9784832, 0.787473083, -52.2899971, -5.52762662e-11, 1.00582838e-05, 1.00000024, -3.50170376e-06, -1.00000024, 1.00582838e-05, 1, -3.50170421e-06, 9.06084097e-11),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
637 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.512281358, 0.111365512),CFrame = CFrame.new(26.7446499, 1.07702565, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
638 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(26.7111912, 0.787473083, -52.2899971, -5.53331096e-11, -0.258809268, 0.965928495, -3.50170376e-06, -0.965928495, -0.258809268, 1, -3.38240966e-06, -9.06219896e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
639 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.111365512),CFrame = CFrame.new(26.6666946, 0.475645214, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
640 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.579100668, 0.111365512),CFrame = CFrame.new(26.4769592, 0.766716778, -52.2899971, -5.52867474e-11, -0.258809447, 0.96592921, -3.50170421e-06, -0.96592921, -0.258809447, 1, -3.38241125e-06, -9.06220293e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
641 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.289550334, 0.111365512),CFrame = CFrame.new(26.8782501, 0.787470937, -52.2899971, -5.69528105e-11, -1, 1.04902101e-05, -3.50170967e-06, -1.04902101e-05, -1, 1, -9.36864822e-11, -3.50170967e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
642 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
643 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -52.7354622, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
644 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -51.8445435, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
645 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.178184807, 0.890924096, 0.178184807),CFrame = CFrame.new(29.4285202, 1.67839265, -52.2899971, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
646 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
647 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -51.9559135, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
648 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
649 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -52.6240959, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
650 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
651 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.779558599, 0.222731024),CFrame = CFrame.new(29.4285202, 1.67839491, -52.2900124, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
652 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
653 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.4907551, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
654 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
655 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
656 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
657 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
658 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
659 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
660 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
661 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
662 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
663 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
664 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
665 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
666 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
667 | ||
668 | ||
669 | ||
670 | ||
671 | ||
672 | ||
673 | ||
674 | ||
675 | ||
676 | ||
677 | ||
678 | Handle = New("Part",LaserMinigun,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.22300005, 4.51200008, 1.11099994),CFrame = CFrame.new(28.6618481, 0.8217237, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
679 | ||
680 | ||
681 | ||
682 | ||
683 | ||
684 | ||
685 | ||
686 | ||
687 | ||
688 | ||
689 | ||
690 | ||
691 | MiniDroid = New("Model",C,"MiniDroid",{}) | |
692 | armor = New("Model",MiniDroid,"armor",{}) | |
693 | Main = New("Model",armor,"Main",{}) | |
694 | Part = New("Part",Main,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.800000012, 0.800000012),CFrame = CFrame.new(30.9500008, 1.7000351, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
695 | Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.899999976, 0.699999988, 0.899999976),CFrame = CFrame.new(30.9499989, 1.80003405, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
696 | Mesh = New("SpecialMesh",Part,"Mesh",{}) | |
697 | Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.50999999, 1),CFrame = CFrame.new(30.9499989, 1.90003407, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
698 | Mesh = New("SpecialMesh",Part,"Mesh",{}) | |
699 | Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.5, 1),CFrame = CFrame.new(30.9499989, 1.70003402, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
700 | Mesh = New("SpecialMesh",Part,"Mesh",{}) | |
701 | Neon = New("Model",MiniDroid,"Neon",{}) | |
702 | LaPart = New("Part",Neon,"LaPart",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.100000001, 0.949999988, 0.949999988),CFrame = CFrame.new(30.9500008, 1.80000031, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
703 | FirePart = New("Part",Neon,"FirePart",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Transparency = 0.5,Shape = Enum.PartType.Ball,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(30.9499989, 1.65004444, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
704 | miniHandle = New("Part",MiniDroid,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(30.9500008, 1.80504608, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
705 | ||
706 | ||
707 | ||
708 | ||
709 | ||
710 | Glow1 = Color3.fromRGB(174,198,207) | |
711 | Glow2 = Color3.fromRGB(119,158,203) | |
712 | ||
713 | GlowParticle = Instance.new("ParticleEmitter",FirePart) | |
714 | GlowParticle.LightEmission = 1 | |
715 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
716 | GlowParticle.Size = NumberSequence.new(0,20) | |
717 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985" | |
718 | GlowParticle.Transparency = NumberSequence.new(0,1) | |
719 | GlowParticle.LockedToPart = true | |
720 | GlowParticle.Lifetime = NumberRange.new(1) | |
721 | GlowParticle.Rate= 1 | |
722 | GlowParticle.Speed =NumberRange.new(0) | |
723 | GlowParticle.Enabled = false | |
724 | ||
725 | ||
726 | ||
727 | ||
728 | GlowParticle2 = Instance.new("ParticleEmitter",FirePart) | |
729 | GlowParticle2.LightEmission = .7 | |
730 | GlowParticle2.Color = ColorSequence.new(Glow1,Glow2) | |
731 | GlowParticle2.Size = NumberSequence.new(0,1) | |
732 | GlowParticle2.Texture = "http://www.roblox.com/asset/?id=589325350" | |
733 | GlowParticle2.Transparency = NumberSequence.new(0,1) | |
734 | GlowParticle2.LockedToPart = false | |
735 | GlowParticle2.Lifetime = NumberRange.new(0.2) | |
736 | GlowParticle2.Rate= 150 | |
737 | GlowParticle2.Speed =NumberRange.new(3) | |
738 | GlowParticle2.Acceleration = Vector3.new(0, -10.5, 0) | |
739 | ||
740 | ||
741 | ||
742 | ||
743 | ||
744 | local all,last = {} | |
745 | function scan(p) | |
746 | for _,v in pairs(p:GetChildren()) do | |
747 | if (v:IsA("BasePart")) then | |
748 | if (last) then | |
749 | local w = Instance.new("Weld") | |
750 | w.Part0,w.Part1 = last,v | |
751 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
752 | w.Parent = last | |
753 | end | |
754 | table.insert(all,v) | |
755 | last = v | |
756 | end | |
757 | scan(v) | |
758 | end | |
759 | end | |
760 | scan(LaserMinigun) | |
761 | ||
762 | scan(MiniDroid) | |
763 | for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end | |
764 | MiniDroid.Parent = C | |
765 | LaserMinigun.Parent = C | |
766 | ||
767 | ||
768 | Main:Destroy() | |
769 | ||
770 | Effects = { } | |
771 | Rapid = false | |
772 | local Player = owner | |
773 | local Character = Player.Character | |
774 | local Humanoid = Character.Humanoid | |
775 | local LeftArm = Character["Left Arm"] | |
776 | local RightArm = Character["Right Arm"] | |
777 | local LeftLeg = Character["Left Leg"] | |
778 | local RightLeg = Character["Right Leg"] | |
779 | local Head = Character.Head | |
780 | local Torso = Character.Torso | |
781 | local cam = game.Workspace.CurrentCamera | |
782 | local RootPart = Character.HumanoidRootPart | |
783 | local RootJoint = RootPart.RootJoint | |
784 | local equipped = false | |
785 | local attack = false | |
786 | local Anim = 'Idle' | |
787 | local idle = 0 | |
788 | local attacktype = 1 | |
789 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
790 | local velocity = RootPart.Velocity.y | |
791 | local sine = 0 | |
792 | local change = 1 | |
793 | local grabbed = false | |
794 | local cn = CFrame.new | |
795 | local mr = math.rad | |
796 | local angles = CFrame.Angles | |
797 | local ud = UDim2.new | |
798 | local c3 = Color3.new | |
799 | local slashDamage = 15 | |
800 | local dir = {w = 0, s = 0, a = 0, d = 0} | |
801 | local dir2 = {w = 0, s = 0, a = 0, d = 0} | |
802 | killcom=true | |
803 | trans = 1 | |
804 | sentrymode = false | |
805 | sentrywait = false | |
806 | local LightMod = Instance.new("Model", Character) | |
807 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
808 | Humanoid.Animator:Destroy() | |
809 | npcanim = Character.Animate:Clone() | |
810 | ultwait=false | |
811 | ||
812 | ||
813 | ||
814 | ||
815 | Character.Animate:Destroy() | |
816 | ||
817 | ||
818 | local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1) | |
819 | local oldParts = {} | |
820 | for _,v in pairs(Par:GetChildren()) do | |
821 | v.CFrame = CFrame.new(5e5, 5e5, 5e5) | |
822 | table.insert(oldParts, v) | |
823 | end | |
824 | local Distance = (Start-End).Magnitude | |
825 | local ArcScale = ArcScale or 1 | |
826 | local RandomScale = RandomScale or 0 | |
827 | local Last = Start | |
828 | local IterNum = 0 | |
829 | ||
830 | while Par.Parent do | |
831 | IterNum = IterNum + 1 | |
832 | local New = nil | |
833 | if (Last-End).Magnitude < Length then | |
834 | New = CFrame.new(End) | |
835 | else | |
836 | if (End-Last).Magnitude < Length*2 then | |
837 | RandomScale = RandomScale*0.1 | |
838 | ArcScale = ArcScale*0.5 | |
839 | end | |
840 | local Direct = CFrame.new(Last,End) | |
841 | New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale))) | |
842 | New = New*CFrame.new(0,0,-Length) | |
843 | end | |
844 | local Trail = nil | |
845 | if oldParts[IterNum] then | |
846 | Trail = oldParts[IterNum] | |
847 | Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Pastel Blue")) or BrickColor.new("Pastel Blue") | |
848 | Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width) | |
849 | Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0) | |
850 | oldParts[IterNum] = nil | |
851 | game:GetService("Debris"):AddItem(Trail, .03) | |
852 | else | |
853 | Trail = Instance.new("Part") | |
854 | Trail.Name = "Part" | |
855 | Trail.FormFactor = "Custom" | |
856 | Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Pastel Blue")) or BrickColor.new("Pastel Blue") | |
857 | Trail.Transparency = 0 | |
858 | Trail.Anchored = true | |
859 | Trail.CanCollide = false | |
860 | Trail.Locked = true | |
861 | Trail.BackSurface = "SmoothNoOutlines" | |
862 | Trail.BottomSurface = "SmoothNoOutlines" | |
863 | Trail.FrontSurface = "SmoothNoOutlines" | |
864 | Trail.LeftSurface = "SmoothNoOutlines" | |
865 | Trail.RightSurface = "SmoothNoOutlines" | |
866 | Trail.TopSurface = "SmoothNoOutlines" | |
867 | Trail.Material = "Neon" | |
868 | Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width) | |
869 | Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0) | |
870 | Trail.Parent = Par | |
871 | game:GetService("Debris"):AddItem(Trail, .03) | |
872 | end | |
873 | Last = New.p | |
874 | if (Last-End).Magnitude < 1 then | |
875 | break | |
876 | end | |
877 | end | |
878 | for _,v in pairs(oldParts) do | |
879 | v:Destroy() | |
880 | end | |
881 | end | |
882 | ||
883 | ||
884 | ||
885 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
886 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
887 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
888 | ||
889 | RSH, LSH = nil, nil | |
890 | ||
891 | ||
892 | DW = Instance.new("Weld") | |
893 | DW.Name = "GuW" | |
894 | DW.Part0 = Torso | |
895 | DW.C0 = cn(0, 50, 0) | |
896 | DW.C1 = cn(0, 0, 0) | |
897 | DW.Part1 = miniHandle | |
898 | DW.Parent = Torso | |
899 | ||
900 | ||
901 | GuW = Instance.new("Weld") | |
902 | GuW.Name = "GuW" | |
903 | GuW.Part0 = RightArm | |
904 | GuW.C0 = cn(0, -1, -1) | |
905 | GuW.C1 = cn(0, 0, 0) | |
906 | GuW.Part1 = Handle | |
907 | GuW.Parent = RightArm | |
908 | ||
909 | RW = Instance.new("Weld") | |
910 | LW = Instance.new("Weld") | |
911 | ||
912 | ||
913 | RH = Torso["Right Hip"] | |
914 | LH = Torso["Left Hip"] | |
915 | ||
916 | RSH = Torso["Right Shoulder"] | |
917 | LSH = Torso["Left Shoulder"] | |
918 | ||
919 | RSH.Parent = nil | |
920 | LSH.Parent = nil | |
921 | ||
922 | RW.Name = "RW" | |
923 | RW.Part0 = Torso | |
924 | RW.C0 = cn(1.5, 0.5, 0) | |
925 | RW.C1 = cn(0, 0.5, 0) | |
926 | RW.Part1 = RightArm | |
927 | RW.Parent = Torso | |
928 | ||
929 | LW.Name = "LW" | |
930 | LW.Part0 = Torso | |
931 | LW.C0 = cn(-1.5, 0.5, 0) | |
932 | LW.C1 = cn(0, 0.5, 0) | |
933 | LW.Part1 = LeftArm | |
934 | LW.Parent = Torso | |
935 | ||
936 | function clerp(a, b, t) | |
937 | local qa = { | |
938 | QuaternionFromCFrame(a) | |
939 | } | |
940 | local qb = { | |
941 | QuaternionFromCFrame(b) | |
942 | } | |
943 | local ax, ay, az = a.x, a.y, a.z | |
944 | local bx, by, bz = b.x, b.y, b.z | |
945 | local _t = 1 - t | |
946 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
947 | end | |
948 | ||
949 | function QuaternionFromCFrame(cf) | |
950 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
951 | local trace = m00 + m11 + m22 | |
952 | if trace > 0 then | |
953 | local s = math.sqrt(1 + trace) | |
954 | local recip = 0.5 / s | |
955 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
956 | else | |
957 | local i = 0 | |
958 | if m11 > m00 then | |
959 | i = 1 | |
960 | end | |
961 | if m22 > (i == 0 and m00 or m11) then | |
962 | i = 2 | |
963 | end | |
964 | if i == 0 then | |
965 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
966 | local recip = 0.5 / s | |
967 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
968 | elseif i == 1 then | |
969 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
970 | local recip = 0.5 / s | |
971 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
972 | elseif i == 2 then | |
973 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
974 | local recip = 0.5 / s | |
975 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
976 | end | |
977 | end | |
978 | end | |
979 | ||
980 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
981 | local xs, ys, zs = x + x, y + y, z + z | |
982 | local wx, wy, wz = w * xs, w * ys, w * zs | |
983 | local xx = x * xs | |
984 | local xy = x * ys | |
985 | local xz = x * zs | |
986 | local yy = y * ys | |
987 | local yz = y * zs | |
988 | local zz = z * zs | |
989 | 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)) | |
990 | end | |
991 | ||
992 | function QuaternionSlerp(a, b, t) | |
993 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
994 | local startInterp, finishInterp; | |
995 | if cosTheta >= 0.0001 then | |
996 | if (1 - cosTheta) > 0.0001 then | |
997 | local theta = math.acos(cosTheta) | |
998 | local invSinTheta = 1 / math.sin(theta) | |
999 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
1000 | finishInterp = math.sin(t * theta) * invSinTheta | |
1001 | else | |
1002 | startInterp = 1 - t | |
1003 | finishInterp = t | |
1004 | end | |
1005 | else | |
1006 | if (1 + cosTheta) > 0.0001 then | |
1007 | local theta = math.acos(-cosTheta) | |
1008 | local invSinTheta = 1 / math.sin(theta) | |
1009 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
1010 | finishInterp = math.sin(t * theta) * invSinTheta | |
1011 | else | |
1012 | startInterp = t - 1 | |
1013 | finishInterp = t | |
1014 | end | |
1015 | end | |
1016 | 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 | |
1017 | end | |
1018 | ||
1019 | function swait(num) | |
1020 | if num == 0 or num == nil then | |
1021 | game:service'RunService'.RenderStepped:wait(0) | |
1022 | else | |
1023 | for i = 0, num do | |
1024 | game:service'RunService'.RenderStepped:wait(0) | |
1025 | end | |
1026 | end | |
1027 | end | |
1028 | ||
1029 | local RbxUtility = LoadLibrary("RbxUtility") | |
1030 | local Create = RbxUtility.Create | |
1031 | ||
1032 | function RemoveOutlines(part) | |
1033 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1034 | end | |
1035 | ||
1036 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1037 | local Part = Create("Part"){ | |
1038 | formFactor = FormFactor, | |
1039 | Parent = Parent, | |
1040 | Reflectance = Reflectance, | |
1041 | Transparency = Transparency, | |
1042 | CanCollide = false, | |
1043 | Locked = true, | |
1044 | BrickColor = BrickColor.new(tostring(BColor)), | |
1045 | Name = Name, | |
1046 | Size = Size, | |
1047 | Material = Material, | |
1048 | } | |
1049 | RemoveOutlines(Part) | |
1050 | return Part | |
1051 | end | |
1052 | ||
1053 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1054 | local Msh = Create(Mesh){ | |
1055 | Parent = Part, | |
1056 | Offset = OffSet, | |
1057 | Scale = Scale, | |
1058 | } | |
1059 | if Mesh == "SpecialMesh" then | |
1060 | Msh.MeshType = MeshType | |
1061 | Msh.MeshId = MeshId | |
1062 | end | |
1063 | return Msh | |
1064 | end | |
1065 | ||
1066 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1067 | local Weld = Create("Weld"){ | |
1068 | Parent = Parent, | |
1069 | Part0 = Part0, | |
1070 | Part1 = Part1, | |
1071 | C0 = C0, | |
1072 | C1 = C1, | |
1073 | } | |
1074 | return Weld | |
1075 | end | |
1076 | ||
1077 | function rayCast(Position, Direction, Range, Ignore) | |
1078 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
1079 | end | |
1080 | ||
1081 | function CreateSound(id, par, vol, pit) | |
1082 | coroutine.resume(coroutine.create(function() | |
1083 | local sou = Instance.new("Sound", par or workspace) | |
1084 | sou.Volume = vol | |
1085 | sou.Pitch = pit or 1 | |
1086 | sou.SoundId = id | |
1087 | wait() | |
1088 | sou:play() | |
1089 | game:GetService("Debris"):AddItem(sou, 6) | |
1090 | end)) | |
1091 | end | |
1092 | ||
1093 | local function getclosest(obj, distance) | |
1094 | local last, lastx = distance + 1 | |
1095 | for i, v in pairs(workspace:GetChildren()) do | |
1096 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
1097 | local t = v.Torso | |
1098 | local dist = (t.Position - obj.Position).magnitude | |
1099 | if dist <= distance then | |
1100 | if dist < last then | |
1101 | last = dist | |
1102 | lastx = v | |
1103 | end | |
1104 | end | |
1105 | end | |
1106 | end | |
1107 | return lastx | |
1108 | end | |
1109 | ||
1110 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
1111 | for i, v in pairs(hit:GetChildren()) do | |
1112 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then | |
1113 | local find = v:FindFirstChild("Hitz") | |
1114 | if not find then | |
1115 | if v.Parent:findFirstChild("Head") then | |
1116 | local BillG = Create("BillboardGui"){ | |
1117 | Parent = v.Parent.Head, | |
1118 | Size = UDim2.new(1, 0, 1, 0), | |
1119 | Adornee = v.Parent.Head, | |
1120 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
1121 | } | |
1122 | local TL = Create("TextLabel"){ | |
1123 | Parent = BillG, | |
1124 | Size = UDim2.new(3, 3, 3, 3), | |
1125 | BackgroundTransparency = 1, | |
1126 | Text = tostring(damage).."-", | |
1127 | TextColor3 = Color1.Color, | |
1128 | TextStrokeColor3 = Color2.Color, | |
1129 | TextStrokeTransparency = 0, | |
1130 | TextXAlignment = Enum.TextXAlignment.Center, | |
1131 | TextYAlignment = Enum.TextYAlignment.Center, | |
1132 | FontSize = Enum.FontSize.Size18, | |
1133 | Font = "ArialBold", | |
1134 | } | |
1135 | coroutine.resume(coroutine.create(function() | |
1136 | wait(1) | |
1137 | for i = 0, 1, .1 do | |
1138 | wait(.1) | |
1139 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
1140 | end | |
1141 | BillG:Destroy() | |
1142 | end)) | |
1143 | end | |
1144 | v.Health = v.Health - damage | |
1145 | local bool = Create("BoolValue"){ | |
1146 | Parent = v, | |
1147 | Name = 'Hitz', | |
1148 | } | |
1149 | if HSound ~= nil and HPitch ~= nil then | |
1150 | CreateSound(HSound, hit, 1, HPitch) | |
1151 | end | |
1152 | game:GetService("Debris"):AddItem(bool, cooldown) | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | end | |
1157 | ||
1158 | ||
1159 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1160 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1161 | prt.Anchored = true | |
1162 | prt.CFrame = cframe | |
1163 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1164 | game:GetService("Debris"):AddItem(prt, 10) | |
1165 | if Type == 1 or Type == nil then | |
1166 | table.insert(Effects, { | |
1167 | prt, | |
1168 | "Block1", | |
1169 | delay, | |
1170 | x3, | |
1171 | y3, | |
1172 | z3, | |
1173 | msh | |
1174 | }) | |
1175 | elseif Type == 2 then | |
1176 | table.insert(Effects, { | |
1177 | prt, | |
1178 | "Block2", | |
1179 | delay, | |
1180 | x3, | |
1181 | y3, | |
1182 | z3, | |
1183 | msh | |
1184 | }) | |
1185 | end | |
1186 | end | |
1187 | ||
1188 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1189 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1190 | prt.Anchored = true | |
1191 | prt.CFrame = cframe | |
1192 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1193 | game:GetService("Debris"):AddItem(prt, 10) | |
1194 | table.insert(Effects, { | |
1195 | prt, | |
1196 | "Cylinder", | |
1197 | delay, | |
1198 | x3, | |
1199 | y3, | |
1200 | z3, | |
1201 | msh | |
1202 | }) | |
1203 | end | |
1204 | ||
1205 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1206 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1207 | prt.Anchored = true | |
1208 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
1209 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1210 | game:GetService("Debris"):AddItem(prt, 10) | |
1211 | table.insert(Effects, { | |
1212 | prt, | |
1213 | "Cylinder", | |
1214 | delay, | |
1215 | x3, | |
1216 | y3, | |
1217 | z3, | |
1218 | msh | |
1219 | }) | |
1220 | end | |
1221 | ||
1222 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1223 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1224 | prt.Anchored = true | |
1225 | prt.CFrame = cframe | |
1226 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1227 | game:GetService("Debris"):AddItem(prt, 10) | |
1228 | table.insert(Effects, { | |
1229 | prt, | |
1230 | "Cylinder", | |
1231 | delay, | |
1232 | x3, | |
1233 | y3, | |
1234 | z3, | |
1235 | msh | |
1236 | }) | |
1237 | end | |
1238 | ||
1239 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1240 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1241 | prt.Anchored = true | |
1242 | prt.CFrame = cframe | |
1243 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1244 | game:GetService("Debris"):AddItem(prt, 10) | |
1245 | table.insert(Effects, { | |
1246 | prt, | |
1247 | "Cylinder", | |
1248 | delay, | |
1249 | x3, | |
1250 | y3, | |
1251 | z3, | |
1252 | msh | |
1253 | }) | |
1254 | end | |
1255 | ||
1256 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1257 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1258 | prt.Anchored = true | |
1259 | prt.CFrame = cframe | |
1260 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1261 | game:GetService("Debris"):AddItem(prt, 10) | |
1262 | table.insert(Effects, { | |
1263 | prt, | |
1264 | "Cylinder", | |
1265 | delay, | |
1266 | x3, | |
1267 | y3, | |
1268 | z3, | |
1269 | msh | |
1270 | }) | |
1271 | end | |
1272 | ||
1273 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
1274 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1275 | prt.Anchored = true | |
1276 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1277 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1278 | local num = math.random(10, 50) / 1000 | |
1279 | game:GetService("Debris"):AddItem(prt, 10) | |
1280 | table.insert(Effects, { | |
1281 | prt, | |
1282 | "Shatter", | |
1283 | num, | |
1284 | prt.CFrame, | |
1285 | math.random() - math.random(), | |
1286 | 0, | |
1287 | math.random(50, 100) / 100 | |
1288 | }) | |
1289 | end | |
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | for i = 0, 1, 0.05 do | |
1295 | swait() | |
1296 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
1297 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
1298 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
1299 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1300 | if Torsovelocity > 2 then | |
1301 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
1302 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
1303 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
1304 | elseif Torsovelocity < 1 then | |
1305 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
1306 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
1307 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
1308 | end | |
1309 | end | |
1310 | attack = false | |
1311 | ||
1312 | ||
1313 | ||
1314 | game:GetService'RunService'.Stepped:connect(function() | |
1315 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1316 | velocity = RootPart.Velocity.y | |
1317 | sine = sine + change | |
1318 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1319 | if equipped == true or equipped == false then | |
1320 | if RootPart.Velocity.y > 1 and hit == nil then | |
1321 | Anim = "Jump" | |
1322 | if attack == false then | |
1323 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1324 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1325 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
1326 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
1327 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
1328 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
1329 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
1330 | DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,0 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
1331 | end | |
1332 | elseif RootPart.Velocity.y < 1 and hit == nil then | |
1333 | Anim = "Fall" | |
1334 | if attack == false then | |
1335 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1336 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1337 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(65), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
1338 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(55 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
1339 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1340 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1341 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
1342 | DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,8 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
1343 | end | |
1344 | elseif Torsovelocity < 1 and hit ~= nil then | |
1345 | Anim = "Idle" | |
1346 | if attack == false then | |
1347 | change = 1 | |
1348 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1) | |
1349 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
1350 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
1351 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
1352 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
1353 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
1354 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
1355 | ||
1356 | DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
1357 | end | |
1358 | elseif Torsovelocity > 1 and hit ~= nil then | |
1359 | Anim = "Walk" | |
1360 | if attack == false then | |
1361 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2) | |
1362 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2) | |
1363 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3) | |
1364 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2) | |
1365 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
1366 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
1367 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
1368 | DW.C0 = clerp(DW.C0, CFrame.new(3+.1 * math.cos(sine / 5) , 3.05 - .1 * math.cos(sine / 3), 2.5 + .5 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
1369 | end | |
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | ||
1388 | end | |
1389 | end | |
1390 | if #Effects > 0 then | |
1391 | for e = 1, #Effects do | |
1392 | if Effects[e] ~= nil then | |
1393 | local Thing = Effects[e] | |
1394 | if Thing ~= nil then | |
1395 | local Part = Thing[1] | |
1396 | local Mode = Thing[2] | |
1397 | local Delay = Thing[3] | |
1398 | local IncX = Thing[4] | |
1399 | local IncY = Thing[5] | |
1400 | local IncZ = Thing[6] | |
1401 | if Thing[1].Transparency <= 1 then | |
1402 | if Thing[2] == "Block1" then | |
1403 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1404 | local Mesh = Thing[1].Mesh | |
1405 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1406 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1407 | elseif Thing[2] == "Block2" then | |
1408 | Thing[1].CFrame = Thing[1].CFrame | |
1409 | local Mesh = Thing[7] | |
1410 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1411 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1412 | elseif Thing[2] == "Cylinder" then | |
1413 | local Mesh = Thing[1].Mesh | |
1414 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1415 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1416 | elseif Thing[2] == "Blood" then | |
1417 | local Mesh = Thing[7] | |
1418 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
1419 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1420 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1421 | elseif Thing[2] == "Elec" then | |
1422 | local Mesh = Thing[1].Mesh | |
1423 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1424 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1425 | elseif Thing[2] == "Disappear" then | |
1426 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1427 | elseif Thing[2] == "Shatter" then | |
1428 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1429 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1430 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1431 | Thing[6] = Thing[6] + Thing[5] | |
1432 | end | |
1433 | else | |
1434 | Part.Parent = nil | |
1435 | table.remove(Effects, e) | |
1436 | end | |
1437 | end | |
1438 | end | |
1439 | end | |
1440 | end | |
1441 | end) | |
1442 | ||
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | ||
1448 | ||
1449 | ||
1450 | ||
1451 | ||
1452 | ||
1453 | ||
1454 | ||
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | RemoveOutlines = function(part) | |
1471 | ||
1472 | part.TopSurface = 10 | |
1473 | end | |
1474 | ||
1475 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1476 | ||
1477 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
1478 | RemoveOutlines(Part) | |
1479 | return Part | |
1480 | end | |
1481 | ||
1482 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1483 | ||
1484 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
1485 | if Mesh == "SpecialMesh" then | |
1486 | Msh.MeshType = MeshType | |
1487 | Msh.MeshId = MeshId | |
1488 | end | |
1489 | return Msh | |
1490 | end | |
1491 | ||
1492 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
1493 | ||
1494 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
1495 | return Weld | |
1496 | end | |
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | CFuncs = { | |
1514 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1515 | ||
1516 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
1517 | RemoveOutlines(Part) | |
1518 | return Part | |
1519 | end | |
1520 | } | |
1521 | , | |
1522 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1523 | ||
1524 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
1525 | if Mesh == "SpecialMesh" then | |
1526 | Msh.MeshType = MeshType | |
1527 | Msh.MeshId = MeshId | |
1528 | end | |
1529 | return Msh | |
1530 | end | |
1531 | } | |
1532 | , | |
1533 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1534 | ||
1535 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
1536 | if Mesh == "SpecialMesh" then | |
1537 | Msh.MeshType = MeshType | |
1538 | Msh.MeshId = MeshId | |
1539 | end | |
1540 | return Msh | |
1541 | end | |
1542 | } | |
1543 | , | |
1544 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
1545 | ||
1546 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
1547 | return Weld | |
1548 | end | |
1549 | } | |
1550 | , | |
1551 | Sound = {Create = function(id, par, vol, pit) | |
1552 | ||
1553 | coroutine.resume(coroutine.create(function() | |
1554 | ||
1555 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace}) | |
1556 | wait() | |
1557 | S:play() | |
1558 | game:GetService("Debris"):AddItem(S, 6) | |
1559 | end | |
1560 | )) | |
1561 | end | |
1562 | } | |
1563 | , | |
1564 | articleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
1565 | ||
1566 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) | |
1567 | return fp | |
1568 | end | |
1569 | } | |
1570 | } | |
1571 | ||
1572 | ||
1573 | ||
1574 | ||
1575 | ||
1576 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1577 | ||
1578 | if hit.Parent == nil then | |
1579 | return | |
1580 | end | |
1581 | local h = hit.Parent:FindFirstChild("Humanoid") | |
1582 | for _,v in pairs(hit.Parent:children()) do | |
1583 | if v:IsA("Humanoid") then | |
1584 | h = v | |
1585 | end | |
1586 | end | |
1587 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then | |
1588 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1589 | return | |
1590 | end | |
1591 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) | |
1592 | game:GetService("Debris"):AddItem(c, 0.5) | |
1593 | if HitSound ~= nil and HitPitch ~= nil then | |
1594 | CreateSound(HitSound, hit, 1, HitPitch) | |
1595 | end | |
1596 | local Damage = math.random(minim, maxim) | |
1597 | local blocked = false | |
1598 | local block = hit.Parent:findFirstChild("Block") | |
1599 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1600 | blocked = true | |
1601 | block.Value = block.Value - 1 | |
1602 | print(block.Value) | |
1603 | end | |
1604 | if blocked == false then | |
1605 | h.Health = h.Health - Damage | |
1606 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1607 | else | |
1608 | h.Health = h.Health - Damage / 2 | |
1609 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1610 | end | |
1611 | if Type == "Knockdown" then | |
1612 | local hum = hit.Parent.Humanoid | |
1613 | hum.PlatformStand = true | |
1614 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1615 | ||
1616 | swait(1) | |
1617 | HHumanoid.PlatformStand = false | |
1618 | end | |
1619 | ), hum) | |
1620 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1621 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
1622 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
1623 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1624 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1625 | elseif Type == "Normal" then | |
1626 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05}) | |
1627 | if knockback > 0 then | |
1628 | vp.Parent = hit.Parent.HumanoidRootPart | |
1629 | end | |
1630 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1631 | elseif Type == "Up" then | |
1632 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
1633 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1634 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
1635 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1636 | elseif Type == "Snare" then | |
1637 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1638 | local bp = Create("BodyPosition")({P = 200, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position + Vector3.new(0, -5, 0), Parent = hit.Parent.HumanoidRootPart}) | |
1639 | local rl2 = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500, 500, 500) * 10, angularvelocity = Vector3.new(math.random(-15,15), math.random(-0, 0), math.random(-15,15)), Parent = hit}) | |
1640 | game:GetService("Debris"):AddItem(rl2, 0.01) | |
1641 | game:GetService("Debris"):AddItem(bp, .1) | |
1642 | hit.Parent.Humanoid.PlatformStand = true | |
1643 | ||
1644 | ||
1645 | wait(.1) | |
1646 | hit.Parent.Humanoid.PlatformStand = false | |
1647 | elseif Type == "Freeze" then | |
1648 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position, Parent = hit.Parent.HumanoidRootPart}) | |
1649 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.HumanoidRootPart, cframe = hit.Parent.HumanoidRootPart.CFrame}) | |
1650 | hit.Parent.HumanoidRootPart.Anchored = true | |
1651 | coroutine.resume(coroutine.create(function(Part) | |
1652 | ||
1653 | swait(1.5) | |
1654 | Part.Anchored = false | |
1655 | end | |
1656 | ), hit.Parent.HumanoidRootPart) | |
1657 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1658 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1659 | end | |
1660 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
1661 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1662 | c = Instance.new("ObjectValue") | |
1663 | c.Name = "creator" | |
1664 | c.Value = Player | |
1665 | c.Parent = h | |
1666 | game:GetService("Debris"):AddItem(c, 0.5) | |
1667 | end | |
1668 | end | |
1669 | ||
1670 | ShowDamage = function(Pos, Text, Time, Color) | |
1671 | ||
1672 | local Rate = 0.033333333333333 | |
1673 | if not Pos then | |
1674 | local Pos = Vector3.new(0, 0, 0) | |
1675 | end | |
1676 | local Text = Text or "" | |
1677 | local Time = Time or 2 | |
1678 | if not Color then | |
1679 | local Color = Color3.new(1, 0, 1) | |
1680 | end | |
1681 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1682 | EffectPart.Anchored = true | |
1683 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) | |
1684 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
1685 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1686 | EffectPart.Parent = game:GetService("Workspace") | |
1687 | delay(0, function() | |
1688 | ||
1689 | local Frames = Time / Rate | |
1690 | for Frame = 1, Frames do | |
1691 | wait(Rate) | |
1692 | local Percent = Frame / Frames | |
1693 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1694 | TextLabel.TextTransparency = Percent | |
1695 | end | |
1696 | if EffectPart and EffectPart.Parent then | |
1697 | EffectPart:Destroy() | |
1698 | end | |
1699 | end | |
1700 | ) | |
1701 | end | |
1702 | ||
1703 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
1704 | ||
1705 | for _,c in pairs(workspace:children()) do | |
1706 | local hum = c:findFirstChild("Humanoid") | |
1707 | if hum ~= nil then | |
1708 | local head = c:findFirstChild("HumanoidRootPart") | |
1709 | if head ~= nil then | |
1710 | local targ = head.Position - Part.Position | |
1711 | local mag = targ.magnitude | |
1712 | if mag <= magni and c.Name ~= Player.Name then | |
1713 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
1714 | end | |
1715 | end | |
1716 | end | |
1717 | end | |
1718 | end | |
1719 | MagniKILL = function(Part, magni, knock, Type) | |
1720 | ||
1721 | for _,c in pairs(workspace:children()) do | |
1722 | local hum = c:findFirstChild("Humanoid") | |
1723 | if hum ~= nil then | |
1724 | local head = c:findFirstChild("Head") | |
1725 | if head ~= nil then | |
1726 | local targ = head.Position - Part.Position | |
1727 | local mag = targ.magnitude | |
1728 | if mag <= magni and c.Name ~= Player.Name then | |
1729 | hum.Health = 0 | |
1730 | end | |
1731 | end | |
1732 | end | |
1733 | end | |
1734 | end | |
1735 | ||
1736 | EffectModel = Instance.new("Model", Character) | |
1737 | EffectModel.Name = "Effects" | |
1738 | Effects = { | |
1739 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1740 | ||
1741 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1742 | prt.Anchored = true | |
1743 | prt.CFrame = cframe | |
1744 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1745 | game:GetService("Debris"):AddItem(prt, 10) | |
1746 | if Type == 1 or Type == nil then | |
1747 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
1748 | else | |
1749 | if Type == 2 then | |
1750 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
1751 | end | |
1752 | end | |
1753 | end | |
1754 | } | |
1755 | , | |
1756 | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1757 | ||
1758 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1759 | prt.Anchored = true | |
1760 | prt.CFrame = cframe | |
1761 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1762 | game:GetService("Debris"):AddItem(prt, 10) | |
1763 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1764 | end | |
1765 | } | |
1766 | , | |
1767 | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1768 | ||
1769 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1770 | prt.Anchored = true | |
1771 | prt.CFrame = cframe | |
1772 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1773 | game:GetService("Debris"):AddItem(prt, 10) | |
1774 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1775 | end | |
1776 | } | |
1777 | , | |
1778 | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1779 | ||
1780 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1781 | prt.Anchored = true | |
1782 | prt.CFrame = cframe | |
1783 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1784 | game:GetService("Debris"):AddItem(prt, 10) | |
1785 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1786 | end | |
1787 | } | |
1788 | , | |
1789 | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1790 | ||
1791 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1792 | prt.Anchored = true | |
1793 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1794 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1795 | game:GetService("Debris"):AddItem(prt, 10) | |
1796 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1797 | end | |
1798 | } | |
1799 | , | |
1800 | Break = {Create = function(brickcolor, cframe, x1, y1, z1) | |
1801 | ||
1802 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1803 | prt.Anchored = true | |
1804 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1805 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1806 | local num = math.random(10, 50) / 1000 | |
1807 | game:GetService("Debris"):AddItem(prt, 10) | |
1808 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100}) | |
1809 | end | |
1810 | } | |
1811 | } | |
1812 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1813 | ||
1814 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1815 | prt.Anchored = true | |
1816 | prt.CFrame = cframe | |
1817 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1818 | game:GetService("Debris"):AddItem(prt, 10) | |
1819 | if Type == 1 or Type == nil then | |
1820 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
1821 | else | |
1822 | if Type == 2 then | |
1823 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
1824 | end | |
1825 | end | |
1826 | end | |
1827 | ||
1828 | CreateSound = function(id, par, vol, pit) | |
1829 | ||
1830 | coroutine.resume(coroutine.create(function() | |
1831 | ||
1832 | local sou = Instance.new("Sound", par or workspace) | |
1833 | sou.Volume = vol | |
1834 | sou.Pitch = pit or 1 | |
1835 | sou.SoundId = id | |
1836 | swait() | |
1837 | sou:play() | |
1838 | game:GetService("Debris"):AddItem(sou, 6) | |
1839 | end | |
1840 | )) | |
1841 | end | |
1842 | ||
1843 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1844 | ||
1845 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1846 | prt.Anchored = true | |
1847 | prt.CFrame = cframe | |
1848 | prt.Material = "Neon" | |
1849 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1850 | game:GetService("Debris"):AddItem(prt, 10) | |
1851 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1852 | ||
1853 | for i = 0, 6, delay do | |
1854 | swait() | |
1855 | Part.Transparency = i | |
1856 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1857 | end | |
1858 | Part.Parent = nil | |
1859 | end | |
1860 | ), prt, msh) | |
1861 | end | |
1862 | LigLaser = function(mouse, partt, SpreadAmount) | |
1863 | ||
1864 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1865 | local MainPos = partt.Position | |
1866 | local MainPos2 = mouse + SpreadVectors | |
1867 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1868 | local speed = 1000 | |
1869 | local num = 1 | |
1870 | coroutine.resume(coroutine.create(function() | |
1871 | ||
1872 | repeat | |
1873 | swait() | |
1874 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1875 | local mag = (MainPos - pos).magnitude | |
1876 | ||
1877 | MainPos = MainPos + MouseLook.lookVector * speed | |
1878 | num = num - 1 | |
1879 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1880 | if hit ~= nil then | |
1881 | num = 0 | |
1882 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1883 | refpart.Anchored = true | |
1884 | refpart.CFrame = CFrame.new(pos) | |
1885 | game:GetService("Debris"):AddItem(refpart, 2) | |
1886 | end | |
1887 | ||
1888 | do | |
1889 | if num <= 0 then | |
1890 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1891 | refpart.Anchored = true | |
1892 | refpart.CFrame = CFrame.new(pos) | |
1893 | if hit ~= nil then | |
1894 | for i = 0,5 do | |
1895 | ||
1896 | makeLightning(LightMod, partt.Position, refpart.Position, 0.17, 4, 30, 1, 10) | |
1897 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) | |
1898 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2) | |
1899 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2) | |
1900 | MagniDamage(refpart, 3, .05, .2, 6, "Normal") | |
1901 | swait() | |
1902 | end | |
1903 | ||
1904 | ||
1905 | end | |
1906 | game:GetService("Debris"):AddItem(refpart, 0) | |
1907 | end | |
1908 | end | |
1909 | until num <= 0 | |
1910 | end | |
1911 | )) | |
1912 | end | |
1913 | bigLigLaser = function(mouse, partt, SpreadAmount) | |
1914 | ||
1915 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1916 | local MainPos = partt.Position | |
1917 | local MainPos2 = mouse + SpreadVectors | |
1918 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1919 | local speed = 1000 | |
1920 | local num = 1 | |
1921 | coroutine.resume(coroutine.create(function() | |
1922 | ||
1923 | repeat | |
1924 | swait() | |
1925 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1926 | local mag = (MainPos - pos).magnitude | |
1927 | ||
1928 | MainPos = MainPos + MouseLook.lookVector * speed | |
1929 | num = num - 1 | |
1930 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1931 | if hit ~= nil then | |
1932 | num = 0 | |
1933 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1934 | refpart.Anchored = true | |
1935 | refpart.CFrame = CFrame.new(pos) | |
1936 | game:GetService("Debris"):AddItem(refpart, 2) | |
1937 | end | |
1938 | ||
1939 | do | |
1940 | if num <= 0 then | |
1941 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1942 | refpart.Anchored = true | |
1943 | refpart.CFrame = CFrame.new(pos) | |
1944 | if hit ~= nil then | |
1945 | for i = 0,1 do | |
1946 | ||
1947 | makeLightning(LightMod, partt.Position, refpart.Position, 0.3, 4, 20, 1, 10) | |
1948 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) | |
1949 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2) | |
1950 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2) | |
1951 | MagniDamage(refpart, 3, 5, 10, 8, "Snare") | |
1952 | swait() | |
1953 | end | |
1954 | ||
1955 | ||
1956 | end | |
1957 | game:GetService("Debris"):AddItem(refpart, 0) | |
1958 | end | |
1959 | end | |
1960 | until num <= 0 | |
1961 | end | |
1962 | )) | |
1963 | end | |
1964 | ||
1965 | ||
1966 | shoottraildd = function(mouse, partt, SpreadAmount) | |
1967 | ||
1968 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1969 | local MainPos = partt.Position | |
1970 | local MainPos2 = mouse + SpreadVectors | |
1971 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1972 | local speed = 1000 | |
1973 | local num = 1 | |
1974 | coroutine.resume(coroutine.create(function() | |
1975 | ||
1976 | repeat | |
1977 | swait() | |
1978 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1979 | local mag = (MainPos - pos).magnitude | |
1980 | Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.195, 0, -0.195, 0.15) | |
1981 | MainPos = MainPos + MouseLook.lookVector * speed | |
1982 | num = num - 1 | |
1983 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1984 | if hit ~= nil then | |
1985 | num = 0 | |
1986 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1987 | refpart.Anchored = true | |
1988 | refpart.CFrame = CFrame.new(pos) | |
1989 | game:GetService("Debris"):AddItem(refpart, 2) | |
1990 | end | |
1991 | do | |
1992 | if num <= 0 then | |
1993 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1994 | refpart.Anchored = true | |
1995 | refpart.CFrame = CFrame.new(pos) | |
1996 | if hit ~= nil then | |
1997 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) | |
1998 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1) | |
1999 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1) | |
2000 | MagniDamage(refpart, 3, 10, 15, 0, "Normal") | |
2001 | end | |
2002 | game:GetService("Debris"):AddItem(refpart, 0) | |
2003 | end | |
2004 | end | |
2005 | until num <= 0 | |
2006 | end | |
2007 | )) | |
2008 | end | |
2009 | ||
2010 | shoottraildd2 = function(mouse, partt, SpreadAmount) | |
2011 | ||
2012 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
2013 | local MainPos = partt.Position | |
2014 | local MainPos2 = mouse + SpreadVectors | |
2015 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
2016 | local speed = 1000 | |
2017 | local num = 1 | |
2018 | coroutine.resume(coroutine.create(function() | |
2019 | ||
2020 | repeat | |
2021 | swait() | |
2022 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
2023 | local mag = (MainPos - pos).magnitude | |
2024 | Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.5, 0, -0.5, .5) | |
2025 | MainPos = MainPos + MouseLook.lookVector * speed | |
2026 | num = num - 1 | |
2027 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
2028 | if hit ~= nil then | |
2029 | num = 0 | |
2030 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
2031 | refpart.Anchored = true | |
2032 | refpart.CFrame = CFrame.new(pos) | |
2033 | game:GetService("Debris"):AddItem(refpart, 2) | |
2034 | end | |
2035 | do | |
2036 | if num <= 0 then | |
2037 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
2038 | refpart.Anchored = true | |
2039 | refpart.CFrame = CFrame.new(pos) | |
2040 | if hit ~= nil then | |
2041 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) | |
2042 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1) | |
2043 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1) | |
2044 | MagniDamage(refpart, 3, 20, 40, 0, "Snare") | |
2045 | end | |
2046 | game:GetService("Debris"):AddItem(refpart, 0) | |
2047 | end | |
2048 | end | |
2049 | until num <= 0 | |
2050 | end | |
2051 | )) | |
2052 | end | |
2053 | ||
2054 | ||
2055 | function idleanim2() | |
2056 | for i = 0, 1, 0.1 do | |
2057 | swait() | |
2058 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1) * angles(math.rad(0), math.rad(0), math.rad(10)), .2) | |
2059 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0 + 0.7 * math.cos(sine / 25)), math.rad(0), math.rad(-10)), .2) | |
2060 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.0) * angles(math.rad(0), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2061 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(0 - 1 * math.cos(sine / 25))), 0.2) | |
2062 | RH.C0 = clerp(RH.C0, cn(1, -.7 - 0.0 * math.cos(sine / 25), -.3) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(50 + 1.1 * math.cos(sine / 25))), .2) | |
2063 | LH.C0 = clerp(LH.C0, cn(-1, -.6 - 0.0 * math.cos(sine / 25), -.3) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(-40 + 1.1 * math.cos(sine / 25))), .2) | |
2064 | GuW.C0 = clerp(GuW.C0, CFrame.new(-1.4,-1.5,0) * angles(math.rad(-0), math.rad(0), math.rad(90)), 0.1) | |
2065 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2066 | end | |
2067 | end | |
2068 | ||
2069 | function MinShotAttackAnim1() | |
2070 | ||
2071 | for i = 0, 1, 0.3 do | |
2072 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z)) | |
2073 | swait() | |
2074 | ||
2075 | if Torsovelocity > 1 then | |
2076 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0), math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
2077 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5))), .2) | |
2078 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2079 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2080 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4)+ RootPart.RotVelocity.Y / 10)), .3) | |
2081 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4))), .3) | |
2082 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2083 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2084 | elseif Torsovelocity < 1 then | |
2085 | ||
2086 | ||
2087 | ||
2088 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2089 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
2090 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2091 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2092 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2093 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2094 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2095 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2096 | end | |
2097 | end | |
2098 | ||
2099 | ||
2100 | ||
2101 | ||
2102 | ||
2103 | ||
2104 | ||
2105 | ||
2106 | end | |
2107 | ||
2108 | ||
2109 | function ShotAttackAnim1() | |
2110 | for i = 0, 1, 0.3 do | |
2111 | ||
2112 | swait() | |
2113 | ||
2114 | if Torsovelocity > 1 then | |
2115 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
2116 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2) | |
2117 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2118 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2119 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2120 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2121 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2122 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2123 | elseif Torsovelocity < 1 then | |
2124 | ||
2125 | ||
2126 | ||
2127 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2128 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
2129 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2130 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2131 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2132 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2133 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2134 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2135 | end | |
2136 | end | |
2137 | ||
2138 | ||
2139 | ||
2140 | ||
2141 | ||
2142 | ||
2143 | ||
2144 | ||
2145 | end | |
2146 | ||
2147 | ||
2148 | function ShotAttackAnim2() | |
2149 | for i = 0, 2, 0.1 do | |
2150 | swait() | |
2151 | ||
2152 | if Torsovelocity > 2 then | |
2153 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2) | |
2154 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
2155 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3) | |
2156 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2) | |
2157 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2158 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2159 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2160 | DW.C0 = clerp(DW.C0, CFrame.new(4+.1 * math.cos(sine / 5) , 7.05 - .1 * math.cos(sine / 3), 2.5 + .1 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
2161 | elseif Torsovelocity < 1 then | |
2162 | ||
2163 | ||
2164 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1) | |
2165 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
2166 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
2167 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
2168 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
2169 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
2170 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
2171 | ||
2172 | DW.C0 = clerp(DW.C0, CFrame.new(2 + .1 * math.cos(sine / 5) ,7 + -.2 * math.cos(sine / 20), 0 + .1 * math.cos(sine / 5)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
2173 | end | |
2174 | end | |
2175 | end | |
2176 | ||
2177 | function ShotAttackAnim3() | |
2178 | for i = 0, 2, 0.1 do | |
2179 | swait() | |
2180 | ||
2181 | if Torsovelocity > 2 then | |
2182 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
2183 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
2184 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2185 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2186 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2187 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2188 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2189 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2190 | elseif Torsovelocity < 1 then | |
2191 | ||
2192 | ||
2193 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2194 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
2195 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2196 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2197 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), .2) | |
2198 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), .2) | |
2199 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2200 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2201 | end | |
2202 | end | |
2203 | ||
2204 | ||
2205 | ||
2206 | for i = 0, 1, 0.4 do | |
2207 | swait() | |
2208 | ||
2209 | if Torsovelocity > 2 then | |
2210 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
2211 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
2212 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1) | |
2213 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1) | |
2214 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2215 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
2216 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2217 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2218 | elseif Torsovelocity < 1 then | |
2219 | ||
2220 | ||
2221 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2222 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
2223 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1) | |
2224 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1) | |
2225 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2) | |
2226 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2) | |
2227 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2228 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2229 | end | |
2230 | end | |
2231 | end | |
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | ||
2237 | ||
2238 | ||
2239 | ||
2240 | function holding() | |
2241 | ||
2242 | ||
2243 | ||
2244 | ||
2245 | while Rapid == true and attack==true and sentrymode == false do | |
2246 | ||
2247 | attack = true | |
2248 | ||
2249 | ||
2250 | MinShotAttackAnim1() | |
2251 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2252 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5) | |
2253 | shoottraildd(mouse.Hit.p, gun1, .55) | |
2254 | ||
2255 | MinShotAttackAnim1() | |
2256 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2257 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5) | |
2258 | shoottraildd(mouse.Hit.p, gun2, .55) | |
2259 | MinShotAttackAnim1() | |
2260 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2261 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5) | |
2262 | shoottraildd(mouse.Hit.p, gun3, .55) | |
2263 | MinShotAttackAnim1() | |
2264 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2265 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5) | |
2266 | shoottraildd(mouse.Hit.p, gun4, .55) | |
2267 | end | |
2268 | ||
2269 | ||
2270 | ||
2271 | attack = false | |
2272 | end | |
2273 | ||
2274 | mouse.KeyDown:connect(function(k) | |
2275 | if k == "t" then | |
2276 | CreateSound("171014742", Torso, 10, 1) | |
2277 | end | |
2278 | end) | |
2279 | ||
2280 | mouse.KeyUp:connect(function(k) | |
2281 | if k == "z" and Rapid == true then | |
2282 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2) | |
2283 | Rapid = false | |
2284 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.08) | |
2285 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.1) | |
2286 | ||
2287 | end | |
2288 | end) | |
2289 | ||
2290 | ||
2291 | ||
2292 | mouse.KeyDown:connect(function(k) | |
2293 | if k == "z" and sentrymode == false and attack == false then | |
2294 | attack = true | |
2295 | Rapid = true | |
2296 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1) | |
2297 | MinShotAttackAnim1() | |
2298 | MinShotAttackAnim1() | |
2299 | for i = 0,10 do | |
2300 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2301 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2302 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2303 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1) | |
2304 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, 2.1, 2.1, .1, -.3,-.3,0,0.07) | |
2305 | MinShotAttackAnim1() | |
2306 | end | |
2307 | holding() | |
2308 | end | |
2309 | end) | |
2310 | ||
2311 | ||
2312 | ||
2313 | ||
2314 | mouse.KeyDown:connect(function(k) | |
2315 | ||
2316 | ||
2317 | if attack == false and k == "x" and sentrymode == false then | |
2318 | ||
2319 | ||
2320 | ||
2321 | ||
2322 | attack = true | |
2323 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3) | |
2324 | for i=1,5 do | |
2325 | ||
2326 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2327 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2328 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2329 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2330 | ShotAttackAnim1() | |
2331 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2332 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2333 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2334 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2335 | ShotAttackAnim1() | |
2336 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2337 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2338 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2339 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2340 | ||
2341 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4) | |
2342 | ShotAttackAnim1() | |
2343 | end | |
2344 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1) | |
2345 | for i=1,2 do | |
2346 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12) | |
2347 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09) | |
2348 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06) | |
2349 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045) | |
2350 | end | |
2351 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2352 | ||
2353 | ||
2354 | MagniDamage(gun1, 15, 20, 69, 99, "Normal") | |
2355 | ShotAttackAnim3() | |
2356 | ||
2357 | ||
2358 | ||
2359 | ||
2360 | for i=1,2 do | |
2361 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2362 | ShotAttackAnim1() | |
2363 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2364 | ShotAttackAnim1() | |
2365 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045) | |
2366 | ShotAttackAnim1() | |
2367 | end | |
2368 | ||
2369 | attack = false | |
2370 | ||
2371 | end | |
2372 | ||
2373 | ||
2374 | ||
2375 | if k == "r" and attack == false then | |
2376 | attack=true | |
2377 | while Torsovelocity < 1 do | |
2378 | attack=true | |
2379 | idleanim2() | |
2380 | ||
2381 | ||
2382 | ||
2383 | end | |
2384 | attack=false | |
2385 | ||
2386 | end | |
2387 | ||
2388 | ||
2389 | ||
2390 | ||
2391 | ||
2392 | ||
2393 | ||
2394 | ||
2395 | if k == "v" and sentrymode == false and attack == false and ultwait==false then | |
2396 | ultwait=true | |
2397 | attack = true | |
2398 | Humanoid.WalkSpeed = 0 | |
2399 | local Sond = Create("Sound")({Volume = 1.5, Pitch = 1.2, SoundId = "http://www.roblox.com/asset/?id=195322948", Parent = Character or workspace}) | |
2400 | wait() | |
2401 | Sond:play() | |
2402 | ||
2403 | for i = 0, 1, 0.1 do | |
2404 | swait() | |
2405 | ||
2406 | ||
2407 | ||
2408 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2409 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
2410 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2411 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2412 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2413 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2414 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2415 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2416 | ||
2417 | end | |
2418 | ||
2419 | ||
2420 | for i = 0, 2, 0.1 do | |
2421 | swait() | |
2422 | ||
2423 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1) | |
2424 | ||
2425 | ||
2426 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2427 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
2428 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2429 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2) | |
2430 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .2) | |
2431 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2) | |
2432 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
2433 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2434 | ||
2435 | end | |
2436 | ||
2437 | ||
2438 | for i = 0, 58, 0.1 do | |
2439 | swait() | |
2440 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.08) | |
2441 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.1) | |
2442 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 21, 41, 21, -.5, -.5, -.5, 0.1,2) | |
2443 | ||
2444 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2445 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
2446 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1) | |
2447 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1) | |
2448 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1) | |
2449 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2) | |
2450 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
2451 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2452 | ||
2453 | end | |
2454 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 0, 0, 0, 20,20,20, 0.05,1) | |
2455 | for i = 0, 55, 0.1 do | |
2456 | swait() | |
2457 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.08) | |
2458 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1) | |
2459 | Effects.Break.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, 6, .1, .1) | |
2460 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 21, 41, 21, .1, .1, .1, 0.05,2) | |
2461 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), .01) | |
2462 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
2463 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2464 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2) | |
2465 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.2 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1) | |
2466 | LH.C0 = clerp(LH.C0, cn(-.9, -.7 - 0.2 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2467 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
2468 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2469 | ||
2470 | end | |
2471 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 0, 0, 0, 30,30,30, 0.05,1) | |
2472 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, .7) | |
2473 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2) | |
2474 | for i = 0, 10, 0.1 do | |
2475 | swait() | |
2476 | ||
2477 | Effects.Wave.Create (BrickColor.new("Pastel Blue"), Torso.CFrame, .1, .1, .1, .5,10000,.5,0.08) | |
2478 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.08) | |
2479 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.1) | |
2480 | Effects.Break.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, 76, .1, .1) | |
2481 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 40, 40, 40, 70,70,70, 0.05,1) | |
2482 | ||
2483 | ||
2484 | MagniKILL(Torso, 80,99,99999999, 0, "Normal") | |
2485 | ||
2486 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2487 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
2488 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2489 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-0 - 1 * math.cos(sine / 25))), 0.2) | |
2490 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1) | |
2491 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2) | |
2492 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
2493 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2494 | ||
2495 | end | |
2496 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, .7) | |
2497 | ||
2498 | for i = 0, 1, 0.1 do | |
2499 | swait() | |
2500 | ||
2501 | ||
2502 | ||
2503 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
2504 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
2505 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
2506 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
2507 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2508 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
2509 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
2510 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2511 | ||
2512 | end | |
2513 | Humanoid.WalkSpeed = 16 | |
2514 | Sond:Destroy() | |
2515 | ||
2516 | attack = false | |
2517 | wait(30) | |
2518 | ultwait=false | |
2519 | end | |
2520 | ||
2521 | if k == "e" then | |
2522 | ||
2523 | if sentrymode== false then | |
2524 | if attack == false then | |
2525 | GlowParticle.Enabled = true | |
2526 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5) | |
2527 | sentrymode= true | |
2528 | end | |
2529 | else | |
2530 | sentrymode=false | |
2531 | GlowParticle.Enabled = false | |
2532 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5) | |
2533 | end | |
2534 | end | |
2535 | ||
2536 | end) | |
2537 | mouse.Button1Down:connect(function(key) | |
2538 | if attack == false and sentrymode == false then | |
2539 | attack = true | |
2540 | ShotAttackAnim2() | |
2541 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18) | |
2542 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12) | |
2543 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6) | |
2544 | bigLigLaser(mouse.Hit.p, LaPart, 0) | |
2545 | ShotAttackAnim2() | |
2546 | attack = false | |
2547 | end | |
2548 | end) | |
2549 | ||
2550 | ||
2551 | ||
2552 | ||
2553 | ------------------------------------------------------------------------------------------------ | |
2554 | local HiveMind = {} | |
2555 | ||
2556 | function HiveMind:new(owner) | |
2557 | self.__index = self | |
2558 | local o = {mind = {}, mindState = "FOLLOW", victimObject = nil} | |
2559 | o.owner = owner | |
2560 | setmetatable(o, self) | |
2561 | return o | |
2562 | end | |
2563 | ||
2564 | function HiveMind:add(model, humanoid, torso) | |
2565 | if model and humanoid and torso then | |
2566 | table.insert(self.mind, {model = model, humanoid = humanoid, | |
2567 | torso = torso}) | |
2568 | local hiv = self | |
2569 | local lastJump = 0 | |
2570 | torso.Touched:connect(function(object) | |
2571 | local hive = false | |
2572 | if hiv.owner.Character | |
2573 | and object:IsDescendantOf(hiv.owner.Character) == false | |
2574 | then | |
2575 | for i = 1, #hiv.mind do | |
2576 | if object:IsDescendantOf(hiv.mind[i].model) then | |
2577 | hive = true | |
2578 | break | |
2579 | end | |
2580 | end | |
2581 | if not hive then | |
2582 | local hum = object.Parent | |
2583 | and object.Parent:FindFirstChild("Humanoid") | |
2584 | if hum then | |
2585 | hum:TakeDamage(1) | |
2586 | end | |
2587 | elseif time() - lastJump > 2 then | |
2588 | lastJump = time(0) + math.random()*1 | |
2589 | humanoid.Jump = true | |
2590 | end | |
2591 | end | |
2592 | end) | |
2593 | end | |
2594 | end | |
2595 | ||
2596 | function HiveMind:cleanupHive() | |
2597 | local i = 1 | |
2598 | while i <= #self.mind do | |
2599 | if self.mind[i].model:IsDescendantOf(game) == false | |
2600 | or self.mind[i].humanoid.Health == 0 then | |
2601 | table.remove(self.mind, i) | |
2602 | else | |
2603 | i = i + 1 | |
2604 | end | |
2605 | end | |
2606 | end | |
2607 | ||
2608 | function HiveMind:getOrbitNumberFromUnitNumber(i) | |
2609 | local circleNumber = 0 | |
2610 | while self:getUnitsInOrbit(circleNumber) < i do | |
2611 | i = i - self:getUnitsInOrbit(circleNumber) | |
2612 | circleNumber = circleNumber + 1 | |
2613 | end | |
2614 | return circleNumber, i | |
2615 | end | |
2616 | ||
2617 | function HiveMind:getOrbitDiameter(orbitNumber) | |
2618 | return math.pi*(orbitNumber*14) | |
2619 | end | |
2620 | ||
2621 | function HiveMind:getUnitsInOrbit(orbitNumber) | |
2622 | return math.floor(self:getOrbitDiameter(orbitNumber)/5) | |
2623 | end | |
2624 | ||
2625 | function HiveMind:lineup(location) | |
2626 | for i = 1, #self.mind do | |
2627 | local row = (i - 1) % 3 | |
2628 | local column = math.floor((i - 1) / 3) | |
2629 | local xOffset, yOffset | |
2630 | if row == 0 then | |
2631 | xOffset = -7 | |
2632 | elseif row == 1 then | |
2633 | xOffset = 0 | |
2634 | else | |
2635 | xOffset = 7 | |
2636 | end | |
2637 | yOffset = column * 7 | |
2638 | local position = location * CFrame.new(xOffset, 0, yOffset) | |
2639 | self.mind[i].humanoid:MoveTo(position.p, workspace.Base) | |
2640 | end | |
2641 | end | |
2642 | ||
2643 | function HiveMind:ownerTorso() | |
2644 | return self.owner.Character | |
2645 | and self.owner.Character:FindFirstChild("Torso") | |
2646 | end | |
2647 | function HiveMind:update() | |
2648 | self:cleanupHive() | |
2649 | if self.owner.Character then | |
2650 | local ownerTorso = self.owner.Character:FindFirstChild("Torso") | |
2651 | if ownerTorso then | |
2652 | if (self.mindState == "FOLLOW") then | |
2653 | local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9) | |
2654 | self:lineup(hiveSpawn) | |
2655 | elseif (self.mindState == "CIRCLE") then | |
2656 | self:circle(ownerTorso.Position) | |
2657 | elseif (self.mindState == "ATTACK") then | |
2658 | self:crowdAttack() | |
2659 | elseif (self.mindState == "Deffend") then | |
2660 | self:deffend() | |
2661 | elseif (self.mindState == "GOTO") then | |
2662 | self:pushToTarget() | |
2663 | end | |
2664 | end | |
2665 | end | |
2666 | end | |
2667 | local me = game:GetService("Players").LocalPlayer | |
2668 | local hiveMind = HiveMind:new(me) | |
2669 | ||
2670 | ------------------------------------------------------------------------------------------------ | |
2671 | ||
2672 | function findNearestTorso(pos,dist2) | |
2673 | local list = game.Workspace:children() | |
2674 | local torso = nil | |
2675 | if dist2 == nil then | |
2676 | dist2=50 | |
2677 | ||
2678 | end | |
2679 | local dist = dist2 | |
2680 | local temp = nil | |
2681 | local human = nil | |
2682 | local temp2 = nil | |
2683 | for x = 1, #list do | |
2684 | temp2 = list[x] | |
2685 | if (temp2.className == "Model") and (temp2 ~= Character) then | |
2686 | temp = temp2:findFirstChild("HumanoidRootPart") | |
2687 | human = temp2:findFirstChild("Humanoid") | |
2688 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
2689 | if (temp.Position - pos).magnitude < dist then | |
2690 | torso = temp | |
2691 | ||
2692 | dist = (temp.Position - pos).magnitude | |
2693 | else | |
2694 | ||
2695 | end | |
2696 | ||
2697 | ||
2698 | ||
2699 | ||
2700 | end | |
2701 | end | |
2702 | end | |
2703 | return torso | |
2704 | end | |
2705 | ||
2706 | ||
2707 | game:GetService("RunService"):BindToRenderStep("ew", 0, function() | |
2708 | ||
2709 | ||
2710 | ||
2711 | ||
2712 | ||
2713 | if sentrymode == true and sonarwait == false then | |
2714 | sonarwait = true | |
2715 | ||
2716 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8) | |
2717 | ||
2718 | wait(1) | |
2719 | sonarwait = false | |
2720 | end | |
2721 | ||
2722 | ||
2723 | ||
2724 | ||
2725 | wait() | |
2726 | if sentrymode == true then | |
2727 | ||
2728 | local target = findNearestTorso(Character.HumanoidRootPart.Position,30) | |
2729 | if target ~= nil then | |
2730 | ShotAttackAnim2() | |
2731 | if sentrywait == false then | |
2732 | sentrywait = true | |
2733 | attack= true | |
2734 | ||
2735 | ||
2736 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18) | |
2737 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12) | |
2738 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, .8) | |
2739 | LigLaser(target.Position, LaPart, 0) | |
2740 | wait() | |
2741 | attack= false | |
2742 | sentrywait = false | |
2743 | end | |
2744 | ||
2745 | ||
2746 | end | |
2747 | ||
2748 | end | |
2749 | end) | |
2750 | ||
2751 | ||
2752 | sonarwait = false | |
2753 | ||
2754 | ||
2755 | ||
2756 | ||
2757 | ||
2758 | ||
2759 | ||
2760 | ||
2761 | ||
2762 | ||
2763 | FaceIdList = {'117930174'} | |
2764 | FaceId = FaceIdList[math.random(1,#FaceIdList)] | |
2765 | ||
2766 | ||
2767 | ||
2768 | ||
2769 | ||
2770 | local YourName = game.Players.LocalPlayer.Name | |
2771 | Character = Player.Character | |
2772 | ||
2773 | ||
2774 | Heartbeat = Instance.new("BindableEvent") | |
2775 | Heartbeat.Name = "Heartbeat" | |
2776 | Heartbeat.Parent = script | |
2777 | frame = 0.03333333333333333 | |
2778 | tf = 0 | |
2779 | ||
2780 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
2781 | tf = tf + s | |
2782 | if tf >= frame then | |
2783 | for i = 1, math.floor(tf / frame) do | |
2784 | Heartbeat:Fire() | |
2785 | end | |
2786 | tf = tf - frame * math.floor(tf / frame) | |
2787 | end | |
2788 | end) | |
2789 | local nscale = Instance.new("NumberValue") | |
2790 | nscale.Value = 1 | |
2791 | nscale.Parent = nil | |
2792 | nscale.Changed:connect(function() | |
2793 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2794 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2795 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2796 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2797 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2798 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2799 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2800 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2801 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2802 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2803 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2804 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2805 | end) | |
2806 | ||
2807 | function makegloo(paren, co, ci, parto, parti, nam) | |
2808 | local gloo = Instance.new("Glue") | |
2809 | gloo.Name = nam | |
2810 | gloo.C0 = co | |
2811 | gloo.C1 = ci | |
2812 | gloo.Part0 = parto | |
2813 | gloo.Part1 = parti | |
2814 | gloo.Parent = paren | |
2815 | end | |
2816 | function makejoint(paren, co, ci, parto, parti, nam) | |
2817 | local gloo = Instance.new("Motor6D") | |
2818 | gloo.Name = nam | |
2819 | gloo.C0 = co | |
2820 | gloo.C1 = ci | |
2821 | gloo.Part0 = parto | |
2822 | gloo.Part1 = parti | |
2823 | gloo.Parent = paren | |
2824 | end | |
2825 | function maketouchy(parent, limb, cframe) | |
2826 | local pr = Instance.new("Part") | |
2827 | pr.Name = "touchy" | |
2828 | pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
2829 | pr.Transparency = 1 | |
2830 | pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) | |
2831 | pr.CanCollide = true | |
2832 | pr.Anchored = false | |
2833 | pr.Parent = parent | |
2834 | local w = Instance.new("Weld") | |
2835 | w.Part0 = pr | |
2836 | w.Part1 = limb | |
2837 | w.C0 = cframe | |
2838 | w.Parent = pr | |
2839 | end | |
2840 | --[[ function swait(num) | |
2841 | if num == 0 or num == nil then | |
2842 | Heartbeat.Event:wait() | |
2843 | else | |
2844 | for i = 1, num do | |
2845 | Heartbeat.Event:wait() | |
2846 | end | |
2847 | end | |
2848 | end | |
2849 | --]] | |
2850 | modz = Instance.new("Model") | |
2851 | modz.Name = "efx" | |
2852 | modz.Parent = Character | |
2853 | ||
2854 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2855 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2856 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2857 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2858 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2859 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2860 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2861 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2862 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2863 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2864 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2865 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2866 | local nscale = Instance.new("NumberValue") | |
2867 | nscale.Value = 1 | |
2868 | nscale.Parent = nil | |
2869 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2870 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2871 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2872 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2873 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2874 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
2875 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2876 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
2877 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2878 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2879 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2880 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2881 | ||
2882 | ||
2883 | ||
2884 | ||
2885 | ||
2886 | ||
2887 | ||
2888 | ||
2889 | ||
2890 | ||
2891 | ||
2892 | ||
2893 | ||
2894 | sWaiting=false | |
2895 | wait3=false | |
2896 | shotval = 0 | |
2897 | ||
2898 | npcname = ""..Character.Name.."'s Combine" | |
2899 | ||
2900 | ||
2901 | Character.ChildAdded:connect(function(object) | |
2902 | if object.Name == npcname then | |
2903 | hiveMind:add(object, object:WaitForChild("Humanoid"), | |
2904 | object:WaitForChild("Torso")) | |
2905 | end | |
2906 | end) | |
2907 | game:GetService("RunService").Stepped:connect(function() | |
2908 | hiveMind:update() | |
2909 | end) | |
2910 | ||
2911 | function makenoob(cfrem, scalo, rags) | |
2912 | nscale.Value = scalo | |
2913 | local md = Instance.new("Model") | |
2914 | md.Name = ""..Character.Name.."'s Combine" | |
2915 | md.Parent = Character | |
2916 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1) | |
2917 | wait(.5) | |
2918 | local hu = Instance.new("Humanoid") | |
2919 | hu.RigType = "R6" | |
2920 | hu.MaxHealth = 150 * scalo | |
2921 | hu.Health = 150 * scalo | |
2922 | hu.Parent = md | |
2923 | hu.DisplayDistanceType="Viewer" | |
2924 | hu.HealthDisplayDistance=100 | |
2925 | hu.NameDisplayDistance=100 | |
2926 | hu.NameOcclusion="EnemyOcclusion" | |
2927 | local anm = Instance.new("Animator") | |
2928 | anm.Parent = hu | |
2929 | local forthisnpcanim = npcanim:Clone() | |
2930 | forthisnpcanim.Parent = md | |
2931 | hu.PlatformStand = true | |
2932 | local light = function(part) | |
2933 | part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5) | |
2934 | end | |
2935 | local hd = Instance.new("Part") | |
2936 | hd.Name = "Head" | |
2937 | hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
2938 | hd.TopSurface = "Smooth" | |
2939 | hd.BottomSurface = "Inlet" | |
2940 | hd.Locked = true | |
2941 | hd.BrickColor = BrickColor.new("Pastel brown") | |
2942 | hd.CanCollide = true | |
2943 | hd.Anchored = false | |
2944 | light(hd) | |
2945 | hd.Parent = md | |
2946 | local hm = Instance.new("SpecialMesh") | |
2947 | hm.MeshType = "Head" | |
2948 | hm.Scale = Vector3.new(1.25, 1.25, 1.25) | |
2949 | hm.Parent = hd | |
2950 | ||
2951 | ||
2952 | ||
2953 | shirt = Instance.new("Shirt", md) | |
2954 | shirt.Name = "Shirt" | |
2955 | pants = Instance.new("Pants", md) | |
2956 | pants.Name = "Pants" | |
2957 | md.Shirt.ShirtTemplate = "rbxassetid://245656735" | |
2958 | md.Pants.PantsTemplate = "rbxassetid://245656766" | |
2959 | function loada(anim) | |
2960 | local loaded = md.Humanoid:LoadAnimation(anim) | |
2961 | return loaded | |
2962 | end | |
2963 | IdleA = New("Animation",md,"Idle",{AnimationId = "rbxassetid://243282565"}) | |
2964 | IdleAnim = loada(IdleA) | |
2965 | ||
2966 | local hf = Instance.new("Decal") | |
2967 | ||
2968 | ||
2969 | ||
2970 | ||
2971 | ||
2972 | ||
2973 | ||
2974 | FaceId = FaceIdList[math.random(1,#FaceIdList)] | |
2975 | ||
2976 | ||
2977 | ||
2978 | ||
2979 | ||
2980 | hf.Texture = "rbxassetid://"..FaceId | |
2981 | ||
2982 | hf.Face = "Front" | |
2983 | hf.Parent = hd | |
2984 | local hrpa = Instance.new("Part") | |
2985 | hrpa.Name = "HumanoidRootPart" | |
2986 | hrpa.TopSurface, hrpa.BottomSurface = 0, 0 | |
2987 | hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
2988 | hrpa.Transparency = 1 | |
2989 | hrpa.CanCollide = false | |
2990 | hrpa.Locked = true | |
2991 | light(hrpa) | |
2992 | hrpa.Parent = md | |
2993 | local tagbomb = Instance.new("BoolValue") | |
2994 | tagbomb.Name = "tagbomb" | |
2995 | tagbomb.Value = false | |
2996 | tagbomb.Parent = hrpa | |
2997 | local learm = Instance.new("Part") | |
2998 | learm.Name = "Left Arm" | |
2999 | learm.BrickColor = BrickColor.new("Pastel brown") | |
3000 | learm.CanCollide = false | |
3001 | learm.Locked = true | |
3002 | learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
3003 | light(learm) | |
3004 | learm.Parent = md | |
3005 | local riarm = Instance.new("Part") | |
3006 | riarm.Name = "Right Arm" | |
3007 | riarm.BrickColor = BrickColor.new("Pastel brown") | |
3008 | riarm.CanCollide = false | |
3009 | riarm.Locked = true | |
3010 | light(riarm) | |
3011 | riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
3012 | riarm.Parent = md | |
3013 | local leleg = Instance.new("Part") | |
3014 | leleg.Name = "Left Leg" | |
3015 | leleg.BrickColor = BrickColor.new("Navy blue") | |
3016 | leleg.CanCollide = false | |
3017 | leleg.Locked = true | |
3018 | light(leleg) | |
3019 | leleg.BottomSurface = 0 | |
3020 | leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
3021 | leleg.Parent = md | |
3022 | local rileg = Instance.new("Part") | |
3023 | rileg.Name = "Right Leg" | |
3024 | rileg.BrickColor = BrickColor.new("Navy blue") | |
3025 | rileg.CanCollide = false | |
3026 | rileg.Locked = true | |
3027 | light(rileg) | |
3028 | rileg.BottomSurface = 0 | |
3029 | rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
3030 | rileg.Parent = md | |
3031 | local tor = Instance.new("Part") | |
3032 | tor.Name = "Torso" | |
3033 | tor.BrickColor = BrickColor.new("Pastel Blue") | |
3034 | tor.Locked = true | |
3035 | light(tor) | |
3036 | tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
3037 | tor.LeftSurface, tor.RightSurface = "Weld", "Weld" | |
3038 | tor.Parent = md | |
3039 | md.PrimaryPart = hrpa | |
3040 | md:SetPrimaryPartCFrame(cfrem) | |
3041 | md:makeJoints() | |
3042 | makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint") | |
3043 | makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck") | |
3044 | ||
3045 | if rags == true then | |
3046 | makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
3047 | makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
3048 | makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
3049 | makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
3050 | maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
3051 | maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
3052 | maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
3053 | maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
3054 | elseif rags == false then | |
3055 | makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
3056 | makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
3057 | makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
3058 | makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
3059 | hu.PlatformStand = false | |
3060 | ||
3061 | end | |
3062 | ||
3063 | ||
3064 | local Solhat = Instance.new("Accessory") | |
3065 | Solhat.AttachmentPos = Vector3.new(0, .3, 0) | |
3066 | local SHH = Instance.new("Part",Solhat) | |
3067 | SHH.Name = "Handle" | |
3068 | SHH.CanCollide=false | |
3069 | local SHHMesh = Instance.new("SpecialMesh",SHH) | |
3070 | SHHMesh.Parent = SHH | |
3071 | SHHMesh.MeshId = "rbxassetid://31152467" | |
3072 | SHHMesh.TextureId = "rbxassetid://32002857" | |
3073 | SHHMesh.Scale = Vector3.new(1, 1, 1) | |
3074 | SHHMesh.VertexColor = Vector3.new(1, 1, 1) | |
3075 | ||
3076 | ||
3077 | ||
3078 | nscale.Value = 1 | |
3079 | ||
3080 | wait() | |
3081 | Solhat.Parent = md | |
3082 | Thegun = Instance.new("Part",riarm) | |
3083 | Thegun.CanCollide=false | |
3084 | Thegun.Size = Vector3.new(1,1,1) | |
3085 | ThegunW = Instance.new("Weld") | |
3086 | ThegunW.Name = "GuW" | |
3087 | ThegunW.Part0 = riarm | |
3088 | ThegunW.C0 = cn(-.5, -2.4, -.4)*angles(0,0,3.2) | |
3089 | ThegunW.C1 = cn(0, 0, 0) | |
3090 | ThegunW.Part1 = Thegun | |
3091 | ThegunW.Parent = riarm | |
3092 | local ThegunMesh = Instance.new("SpecialMesh",Thegun) | |
3093 | ThegunMesh.Parent = Thegun | |
3094 | ThegunMesh.MeshId = "rbxassetid://477158943" | |
3095 | ThegunMesh.TextureId = "rbxassetid://477158949" | |
3096 | ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04) | |
3097 | ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0) | |
3098 | Thegun2 = Instance.new("Part",md) | |
3099 | Thegun2.CanCollide=false | |
3100 | Thegun2.Size = Vector3.new(.1,.1,.1) | |
3101 | Thegun2.Name = "Shoot" | |
3102 | ThegunW2 = Instance.new("Weld") | |
3103 | ThegunW2.Name = "GuW" | |
3104 | ThegunW2.Part0 = riarm | |
3105 | ThegunW2.C0 = cn(-0.4,-4.6,-.45)*angles(0,0,0) | |
3106 | ThegunW2.C1 = cn(0, 0, 0) | |
3107 | ThegunW2.Part1 = Thegun2 | |
3108 | ThegunW2.Parent = riarm | |
3109 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04) | |
3110 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04) | |
3111 | ||
3112 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06) | |
3113 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06) | |
3114 | wait(0.5) | |
3115 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1) | |
3116 | IdleAnim:Play() | |
3117 | wait(2.5) | |
3118 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1) | |
3119 | game:GetService("RunService"):BindToRenderStep("ew", 0, function() | |
3120 | if md ~= nil and hu.Health > 0 and sentrymode == false then | |
3121 | if md ~= nil and hu.Health > 0 and sentrymode == false then | |
3122 | ||
3123 | if killcom==true or sentrymode == true and sWaiting==false then | |
3124 | ||
3125 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, .5, 1) | |
3126 | ||
3127 | ||
3128 | ||
3129 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04) | |
3130 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04) | |
3131 | ||
3132 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06) | |
3133 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06) | |
3134 | ||
3135 | ||
3136 | ||
3137 | hu.Health = 0 | |
3138 | game:service'Debris':AddItem(md, .0); | |
3139 | end | |
3140 | ||
3141 | ||
3142 | ||
3143 | ||
3144 | ||
3145 | hu.WalkSpeed = 16.5 | |
3146 | local target2 = findNearestTorso(hrpa.Position,60) | |
3147 | if target2 ~= nil then | |
3148 | hu:MoveTo(target2.Position, target2) | |
3149 | ||
3150 | end | |
3151 | ||
3152 | local target3 = findNearestTorso(hrpa.Position,45) | |
3153 | ||
3154 | if target3 ~= nil then | |
3155 | hu.WalkSpeed = 0 | |
3156 | tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir2.s)) | |
3157 | end | |
3158 | ||
3159 | if target3 ~= nil and wait3==false and sentrymode == false then | |
3160 | wait3=true | |
3161 | ||
3162 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, .7) | |
3163 | shoottraildd2(target3.Position, Thegun2, 1) | |
3164 | local PointLight = Instance.new("PointLight", Thegun2); | |
3165 | PointLight.Color = Color3.new(1,0,0) | |
3166 | PointLight.Brightness = 50; | |
3167 | PointLight.Range = 10 | |
3168 | game:service'Debris':AddItem(PointLight, .02); | |
3169 | wait(2.2) | |
3170 | wait3=false | |
3171 | ||
3172 | ||
3173 | ||
3174 | --Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir.s)) | |
3175 | ||
3176 | ||
3177 | end | |
3178 | ||
3179 | end | |
3180 | ||
3181 | for i,v in pairs(Character:GetChildren()) do | |
3182 | if ""..Character.Name.."'s Combine" then | |
3183 | ||
3184 | ||
3185 | ||
3186 | if hu.Health == 0 and md ~= nil and killcom==false and sWaiting==false then | |
3187 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, .6, 1) | |
3188 | ||
3189 | ||
3190 | game:service'Debris':AddItem(md, 3); | |
3191 | ||
3192 | end | |
3193 | end | |
3194 | return md | |
3195 | ||
3196 | end | |
3197 | end | |
3198 | end) | |
3199 | ||
3200 | ||
3201 | ||
3202 | end | |
3203 | ||
3204 | ||
3205 | ||
3206 | ||
3207 | ||
3208 | ||
3209 | ||
3210 | ||
3211 | ||
3212 | ||
3213 | ||
3214 | ||
3215 | ||
3216 | ||
3217 | ||
3218 | function makecircle(cfrem, scalo) | |
3219 | local mcir1 = Instance.new("Part") | |
3220 | mcir1.Anchored = true | |
3221 | mcir1.CanCollide = false | |
3222 | mcir1.Size = Vector3.new(0.2, 0.2, 0.2) | |
3223 | mcir1.Transparency = 1 | |
3224 | mcir1.CFrame = cfrem | |
3225 | mcir1.Parent = modz | |
3226 | game.Debris:AddItem(mcir1, 8) | |
3227 | local d1 = Instance.new("Decal") | |
3228 | d1.Texture = "rbxassetid://0" | |
3229 | d1.Face = "Front" | |
3230 | d1.Parent = mcir1 | |
3231 | local d2 = Instance.new("Decal") | |
3232 | d2.Texture = "rbxassetid://0" | |
3233 | d2.Face = "Back" | |
3234 | d2.Parent = mcir1 | |
3235 | local bme = Instance.new("BlockMesh") | |
3236 | bme.Parent = mcir1 | |
3237 | for _ = 1, 9 do | |
3238 | swait() | |
3239 | bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3) | |
3240 | end | |
3241 | coroutine.resume(coroutine.create(function() | |
3242 | swait(15) | |
3243 | for _ = 1, 12 do | |
3244 | swait() | |
3245 | d1.Transparency = d1.Transparency + 0.08 | |
3246 | d2.Transparency = d2.Transparency + 0.08 | |
3247 | end | |
3248 | mcir1:Destroy() | |
3249 | end)) | |
3250 | return mcir1 | |
3251 | end | |
3252 | function spawnnoob(circlecf, noobcf, scalez, ragd) | |
3253 | local aearae = makecircle(circlecf, scalez) | |
3254 | local nananb | |
3255 | ||
3256 | nananb = makenoob(aearae.CFrame * noobcf, scalez, false) | |
3257 | ||
3258 | return nananb | |
3259 | end | |
3260 | mouse.KeyDown:connect(function(k) | |
3261 | if k == "c" and attack == false and sentrymode == false then | |
3262 | if killcom==false then | |
3263 | killcom=true | |
3264 | else | |
3265 | killcom=false | |
3266 | spawnnoob(RootPart.CFrame * cn((math.random(-5,5)), 10, (math.random(-0,5))) * angles(mr(90), 0, 0), cn(0, 0, 0) * angles(mr(-90), 0, 0), 1, false) | |
3267 | ||
3268 | end | |
3269 | ||
3270 | ||
3271 | end | |
3272 | end) | |
3273 | ||
3274 | --[[ | |
3275 | BlockEffect(BrickColor.new("Royal purple"), Firepart1.CFrame, 1, 1, 1, 3, 3, 3, 0.06) | |
3276 | BlockEffect(BrickColor.new("Eggplant"), Firepart1.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06) | |
3277 | BlockEffect(BrickColor.new("Royal purple"), Firepart2.CFrame, 1, 1, 1, 3, 3, 3, 0.06) | |
3278 | BlockEffect(BrickColor.new("Eggplant"), Firepart2.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06) | |
3279 | --]] |