SHOW:
|
|
- or go back to the newest paste.
1 | --[[Baby Nefl created by Brannon1964802]]-- | |
2 | - | --[[Mini King Neflhelm edited by Zalgo_exe]]-- |
2 | + | --[[Mini King Neflhelm edited by Goldmaster119]]-- |
3 | --[[Accurate design of King Neflhelm from Strife]]-- | |
4 | Player = game.Players.LocalPlayer | |
5 | Character = Player.Character | |
6 | local txt = Instance.new("BillboardGui", Character) | |
7 | txt.Adornee = Character.Head | |
8 | txt.Name = "_status" | |
9 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
10 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
11 | local text = Instance.new("TextLabel", txt) | |
12 | text.Size = UDim2.new(10, 0, 7, 0) | |
13 | text.FontSize = "Size24" | |
14 | text.TextScaled = true | |
15 | text.TextTransparency = 0 | |
16 | text.BackgroundTransparency = 10 | |
17 | text.TextTransparency = 0 | |
18 | text.TextStrokeTransparency = 0 | |
19 | text.Font = "Antique" | |
20 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
21 | text.Text = "DEADLOCKED" | |
22 | ||
23 | Player=game:GetService("Players").LocalPlayer | |
24 | Character=Player.Character | |
25 | PlayerGui=Player.PlayerGui | |
26 | Backpack=Player.Backpack | |
27 | Torso=Character.Torso | |
28 | Head=Character.Head | |
29 | Humanoid=Character.Humanoid | |
30 | m=Instance.new('Model',Character) | |
31 | LeftArm=Character["Left Arm"] | |
32 | LeftLeg=Character["Left Leg"] | |
33 | RightArm=Character["Right Arm"] | |
34 | RightLeg=Character["Right Leg"] | |
35 | LS=Torso["Left Shoulder"] | |
36 | LH=Torso["Left Hip"] | |
37 | RS=Torso["Right Shoulder"] | |
38 | RH=Torso["Right Hip"] | |
39 | Face = Head.face | |
40 | Neck=Torso.Neck | |
41 | it=Instance.new | |
42 | attacktype=1 | |
43 | vt=Vector3.new | |
44 | cf=CFrame.new | |
45 | euler=CFrame.fromEulerAnglesXYZ | |
46 | angles=CFrame.Angles | |
47 | cloaked=false | |
48 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
49 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
50 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
51 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
52 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
53 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
54 | RootPart=Character.HumanoidRootPart | |
55 | RootJoint=RootPart.RootJoint | |
56 | RootCF=euler(-1.57,0,3.14) | |
57 | attack = false | |
58 | attackdebounce = false | |
59 | deb=false | |
60 | equipped=true | |
61 | hand=false | |
62 | MMouse=nil | |
63 | combo=0 | |
64 | mana=0 | |
65 | trispeed=.2 | |
66 | attackmode='none' | |
67 | local idle=0 | |
68 | - | Humanoid.MaxHealth = 9999999 |
68 | + | |
69 | local Effects={} | |
70 | - | Humanoid.Health = 9999999 |
70 | + | |
71 | local shoot=false | |
72 | player=nil | |
73 | mana=0 | |
74 | sphere=true | |
75 | aura=false | |
76 | blinking=true | |
77 | rest=false | |
78 | sleep=false | |
79 | ||
80 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) | |
81 | if jump == "Jump" then | |
82 | Humanoid.Jump = false | |
83 | end | |
84 | end) | |
85 | ||
86 | Humanoid.MaxHealth = 9999999999999999999999999999999999999999999 | |
87 | wait(0.1) | |
88 | Humanoid.Health = 9999999999999999999999999999999999999999999 | |
89 | ||
90 | print("Giant Snowman loaded.") | |
91 | print("Baby Nefl by Brannon1964802") | |
92 | print("Edited Baby King Neflhelm by Zalgo_exe") | |
93 | ||
94 | RootPart.Transparency = 1 | |
95 | ||
96 | Humanoid.CameraOffset = Vector3.new(0, 12.5, 0) | |
97 | ||
98 | Humanoid:findFirstChild("Animator"):Destroy() | |
99 | ||
100 | Torso.Transparency = 1 | |
101 | Head.Transparency = 1 | |
102 | LeftLeg.Transparency = 1 | |
103 | RightLeg.Transparency = 1 | |
104 | LeftArm.Transparency = 1 | |
105 | RightArm.Transparency = 1 | |
106 | ||
107 | mouse=Player:GetMouse() | |
108 | --save shoulders | |
109 | RSH, LSH=nil, nil | |
110 | --welds | |
111 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
112 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
113 | LH=Torso["Left Hip"] | |
114 | RH=Torso["Right Hip"] | |
115 | TorsoColor=Torso.BrickColor | |
116 | function NoOutline(Part) | |
117 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
118 | end | |
119 | player=Player | |
120 | ch=Character | |
121 | RSH=ch.Torso["Right Shoulder"] | |
122 | LSH=ch.Torso["Left Shoulder"] | |
123 | -- | |
124 | RSH.Parent=nil | |
125 | LSH.Parent=nil | |
126 | -- | |
127 | RW.Name="Right Shoulder" | |
128 | RW.Part0=ch.Torso | |
129 | - | music.SoundId = "http://www.roblox.com/asset/?id=340106561" |
129 | + | |
130 | - | music.Volume = 0.5 |
130 | + | |
131 | RW.Part1=ch["Right Arm"] | |
132 | RW.Parent=ch.Torso | |
133 | -- | |
134 | LW.Name="Left Shoulder" | |
135 | LW.Part0=ch.Torso | |
136 | - | music2.SoundId = "http://www.roblox.com/asset/?id=340106807" |
136 | + | |
137 | - | music2.Volume = 0.7 |
137 | + | |
138 | LW.Part1=ch["Left Arm"] | |
139 | LW.Parent=ch.Torso | |
140 | ||
141 | - | rawr.SoundId = "http://www.roblox.com/asset/?id=297472596" |
141 | + | |
142 | - | rawr.Volume = 0.7 |
142 | + | |
143 | Mouse=Player:GetMouse() | |
144 | m=Instance.new('Model',Character) | |
145 | ||
146 | music = Instance.new("Sound", Character) | |
147 | music.SoundId = "http://www.roblox.com/asset/?id=328573277" | |
148 | music.Volume = 0.7 | |
149 | music.Looped = true | |
150 | wait(0.1) | |
151 | music:Play() | |
152 | ||
153 | - | torsop.BrickColor = BrickColor.new("Institutional white") |
153 | + | |
154 | music2.SoundId = "http://www.roblox.com/asset/?id=328573277" | |
155 | music2.Volume = 1000000000000000000000000000000000 | |
156 | music2.Looped = true | |
157 | ||
158 | rawr = Instance.new("Sound", Character) | |
159 | rawr.SoundId = "http://www.roblox.com/asset/?id=865772398" | |
160 | rawr.Volume = 100000000000000000000000000000000000 | |
161 | rawr.Looped = false | |
162 | ||
163 | Beast = Instance.new("Model",Character) | |
164 | Beast.Name = "The Beast from The Depths" | |
165 | ||
166 | torsop=Instance.new("Part",Character) | |
167 | torsop.FormFactor="Custom" | |
168 | torsop.Size=Vector3.new(.2,.2,.2) | |
169 | torsop.Transparency=0 | |
170 | torsop.CanCollide=false | |
171 | torsop.BrickColor = BrickColor.new("Black") | |
172 | torsop.Material="Sand" | |
173 | - | torsop.BrickColor = BrickColor.new("Institutional white") |
173 | + | |
174 | torsop.BottomSurface="Smooth" | |
175 | torsop.RightSurface="Smooth" | |
176 | torsop.LeftSurface="Smooth" | |
177 | torsopw=Instance.new("Weld",Character) | |
178 | torsopw.Part0=Character.Torso | |
179 | torsopw.Part1=torsop | |
180 | torsopw.C0=CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(0)) | |
181 | ||
182 | torsop = Instance.new("SpecialMesh",torsop) | |
183 | torsop.MeshType = "Sphere" | |
184 | torsop.Scale = Vector3.new(45,45,45) | |
185 | ||
186 | torsop=Instance.new("Part",Character) | |
187 | torsop.FormFactor="Custom" | |
188 | torsop.Size=Vector3.new(.2,.2,.2) | |
189 | torsop.Transparency=0 | |
190 | torsop.CanCollide=false | |
191 | torsop.BrickColor = BrickColor.new("Black") | |
192 | torsop.Material="Sand" | |
193 | - | torsop.BrickColor = BrickColor.new("Institutional white") |
193 | + | |
194 | torsop.BottomSurface="Smooth" | |
195 | torsop.RightSurface="Smooth" | |
196 | torsop.LeftSurface="Smooth" | |
197 | torsopw=Instance.new("Weld",Character) | |
198 | torsopw.Part0=Character.Torso | |
199 | torsopw.Part1=torsop | |
200 | torsopw.C0=CFrame.new(0,0,2)*CFrame.Angles(0,math.rad(-90),math.rad(0)) | |
201 | ||
202 | torsop = Instance.new("SpecialMesh",torsop) | |
203 | torsop.MeshType = "Sphere" | |
204 | torsop.Scale = Vector3.new(45,45,45) | |
205 | ||
206 | torsop=Instance.new("Part",Character) | |
207 | torsop.FormFactor="Custom" | |
208 | torsop.Size=Vector3.new(.2,.2,.2) | |
209 | torsop.Transparency=0 | |
210 | torsop.CanCollide=false | |
211 | torsop.BrickColor = BrickColor.new("Black") | |
212 | torsop.Material="Sand" | |
213 | - | torsop.BrickColor = BrickColor.new("Institutional white") |
213 | + | |
214 | torsop.BottomSurface="Smooth" | |
215 | torsop.RightSurface="Smooth" | |
216 | torsop.LeftSurface="Smooth" | |
217 | torsopw=Instance.new("Weld",Character) | |
218 | torsopw.Part0=Character.Torso | |
219 | torsopw.Part1=torsop | |
220 | torsopw.C0=CFrame.new(0,-4,0)*CFrame.Angles(0,math.rad(-90),math.rad(0)) | |
221 | ||
222 | torsop = Instance.new("SpecialMesh",torsop) | |
223 | torsop.MeshType = "Sphere" | |
224 | torsop.Scale = Vector3.new(35,35,35) | |
225 | ||
226 | torsop=Instance.new("Part",Character) | |
227 | torsop.FormFactor="Custom" | |
228 | torsop.Size=Vector3.new(.2,.2,.2) | |
229 | torsop.Transparency=0 | |
230 | torsop.CanCollide=false | |
231 | torsop.BrickColor = BrickColor.new("Black") | |
232 | torsop.Material="Sand" | |
233 | - | torsop.BrickColor = BrickColor.new("Institutional white") |
233 | + | |
234 | torsop.BottomSurface="Smooth" | |
235 | torsop.RightSurface="Smooth" | |
236 | torsop.LeftSurface="Smooth" | |
237 | torsopw=Instance.new("Weld",Character) | |
238 | torsopw.Part0=Character.Torso | |
239 | torsopw.Part1=torsop | |
240 | torsopw.C0=CFrame.new(0,-0.5,-4.53)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
241 | ||
242 | crystalmesh = Instance.new("FileMesh",torsop) | |
243 | crystalmesh.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
244 | crystalmesh.Scale = Vector3.new(0.017,0.047,0.017) | |
245 | ||
246 | torsop=Instance.new("Part",Character) | |
247 | torsop.FormFactor="Custom" | |
248 | torsop.Size=Vector3.new(.2,.2,.2) | |
249 | torsop.Transparency=0 | |
250 | torsop.CanCollide=false | |
251 | torsop.BrickColor = BrickColor.new("Black") | |
252 | torsop.Material="Sand" | |
253 | - | torsopaa.BrickColor = BrickColor.new("Pastel light blue") |
253 | + | |
254 | torsop.BottomSurface="Smooth" | |
255 | torsop.RightSurface="Smooth" | |
256 | torsop.LeftSurface="Smooth" | |
257 | torsopw=Instance.new("Weld",Character) | |
258 | torsopw.Part0=Character.Torso | |
259 | torsopw.Part1=torsop | |
260 | torsopw.C0=CFrame.new(0.15,5,-4.53)*CFrame.Angles(-90,math.rad(0),math.rad(0)) | |
261 | ||
262 | crystalmesh = Instance.new("FileMesh",torsop) | |
263 | crystalmesh.MeshId = "http://www.roblox.com/asset/?id=444893999" | |
264 | crystalmesh.Scale = Vector3.new(0.03,0.020,0.04) | |
265 | ||
266 | torsopaa=Instance.new("Part",Character) | |
267 | torsopaa.FormFactor="Custom" | |
268 | torsopaa.Size=Vector3.new(.2,.2,.2) | |
269 | torsopaa.Transparency=0 | |
270 | torsopaa.CanCollide=false | |
271 | torsopaa.BrickColor = BrickColor.new("Maroon") | |
272 | torsopaa.Material="Sand" | |
273 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
273 | + | |
274 | torsopaa.BottomSurface="Smooth" | |
275 | torsopaa.RightSurface="Smooth" | |
276 | torsopaa.LeftSurface="Smooth" | |
277 | torsopwaa=Instance.new("Weld",Character) | |
278 | torsopwaa.Part0=Character.Torso | |
279 | torsopwaa.Part1=torsopaa | |
280 | torsopwaa.C0=CFrame.new(0,-0.5,-4.53)*CFrame.Angles(0,math.rad(45),math.rad(0)) | |
281 | ||
282 | crystalmeshaa = Instance.new("FileMesh",torsopaa) | |
283 | crystalmeshaa.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
284 | crystalmeshaa.Scale = Vector3.new(0.017,0.047,0.017) | |
285 | ||
286 | torsopad=Instance.new("Part",Character) | |
287 | torsopad.FormFactor="Custom" | |
288 | torsopad.Size=Vector3.new(.2,.2,.2) | |
289 | torsopad.Transparency=0 | |
290 | torsopad.CanCollide=false | |
291 | torsopad.BrickColor = BrickColor.new("Black") | |
292 | torsopad.Material="Sand" | |
293 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
293 | + | |
294 | torsopad.BottomSurface="Smooth" | |
295 | torsopad.RightSurface="Smooth" | |
296 | torsopad.LeftSurface="Smooth" | |
297 | torsopwa=Instance.new("Weld",Character) | |
298 | torsopwa.Part0=Character.Torso | |
299 | torsopwa.Part1=torsopad | |
300 | torsopwa.C0=CFrame.new(0,-5,0)*CFrame.Angles(0,math.rad(0),math.rad(180)) | |
301 | ||
302 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
303 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
304 | crystalmeshad.Scale = Vector3.new(5,5,5) | |
305 | ||
306 | torsopad=Instance.new("Part",Character) | |
307 | torsopad.FormFactor="Custom" | |
308 | torsopad.Size=Vector3.new(.2,.2,.2) | |
309 | torsopad.Transparency=0 | |
310 | torsopad.CanCollide=false | |
311 | torsopad.BrickColor = BrickColor.new("Black") | |
312 | torsopad.Material="Sand" | |
313 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
313 | + | |
314 | torsopad.BottomSurface="Smooth" | |
315 | torsopad.RightSurface="Smooth" | |
316 | torsopad.LeftSurface="Smooth" | |
317 | torsopwa=Instance.new("Weld",Character) | |
318 | torsopwa.Part0=Character.Torso | |
319 | torsopwa.Part1=torsopad | |
320 | torsopwa.C0=CFrame.new(0,2.5,6)*CFrame.Angles(1,math.rad(0),math.rad(0)) | |
321 | ||
322 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
323 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
324 | crystalmeshad.Scale = Vector3.new(7,5,7) | |
325 | ||
326 | torsopad=Instance.new("Part",Character) | |
327 | torsopad.FormFactor="Custom" | |
328 | torsopad.Size=Vector3.new(.2,.2,.2) | |
329 | torsopad.Transparency=0 | |
330 | torsopad.CanCollide=false | |
331 | torsopad.BrickColor = BrickColor.new("Black") | |
332 | torsopad.Material="Sand" | |
333 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
333 | + | |
334 | torsopad.BottomSurface="Smooth" | |
335 | torsopad.RightSurface="Smooth" | |
336 | torsopad.LeftSurface="Smooth" | |
337 | torsopwa=Instance.new("Weld",Character) | |
338 | torsopwa.Part0=Character.Torso | |
339 | torsopwa.Part1=torsopad | |
340 | torsopwa.C0=CFrame.new(-2,-0.8,-4)*CFrame.Angles(-1.5,math.rad(1.5),math.rad(45)) | |
341 | ||
342 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
343 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
344 | crystalmeshad.Scale = Vector3.new(0.01,0.05,0.01) | |
345 | ||
346 | torsopad=Instance.new("Part",Character) | |
347 | torsopad.FormFactor="Custom" | |
348 | torsopad.Size=Vector3.new(.2,.2,.2) | |
349 | torsopad.Transparency=0 | |
350 | torsopad.CanCollide=false | |
351 | torsopad.BrickColor = BrickColor.new("Black") | |
352 | torsopad.Material="Sand" | |
353 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
353 | + | |
354 | torsopad.BottomSurface="Smooth" | |
355 | torsopad.RightSurface="Smooth" | |
356 | torsopad.LeftSurface="Smooth" | |
357 | torsopwa=Instance.new("Weld",Character) | |
358 | torsopwa.Part0=Character.Torso | |
359 | torsopwa.Part1=torsopad | |
360 | torsopwa.C0=CFrame.new(2,-0.8,-4)*CFrame.Angles(-1.5,math.rad(1.5),math.rad(-45)) | |
361 | ||
362 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
363 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
364 | crystalmeshad.Scale = Vector3.new(0.01,0.05,0.01) | |
365 | ||
366 | torsopad=Instance.new("Part",Character) | |
367 | torsopad.FormFactor="Custom" | |
368 | torsopad.Size=Vector3.new(.2,.2,.2) | |
369 | torsopad.Transparency=0 | |
370 | torsopad.CanCollide=false | |
371 | torsopad.BrickColor = BrickColor.new("Black") | |
372 | torsopad.Material="Sand" | |
373 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
373 | + | |
374 | torsopad.BottomSurface="Smooth" | |
375 | torsopad.RightSurface="Smooth" | |
376 | torsopad.LeftSurface="Smooth" | |
377 | torsopwa=Instance.new("Weld",Character) | |
378 | torsopwa.Part0=Character.Torso | |
379 | torsopwa.Part1=torsopad | |
380 | torsopwa.C0=CFrame.new(1.5,1,-4)*CFrame.Angles(-0.5,math.rad(-1.5),math.rad(-45)) | |
381 | ||
382 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
383 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
384 | crystalmeshad.Scale = Vector3.new(0.01,0.05,0.01) | |
385 | ||
386 | torsopad=Instance.new("Part",Character) | |
387 | torsopad.FormFactor="Custom" | |
388 | torsopad.Size=Vector3.new(.2,.2,.2) | |
389 | torsopad.Transparency=0 | |
390 | torsopad.CanCollide=false | |
391 | torsopad.BrickColor = BrickColor.new("Black") | |
392 | torsopad.Material="Sand" | |
393 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
393 | + | |
394 | torsopad.BottomSurface="Smooth" | |
395 | torsopad.RightSurface="Smooth" | |
396 | torsopad.LeftSurface="Smooth" | |
397 | torsopwa=Instance.new("Weld",Character) | |
398 | torsopwa.Part0=Character.Torso | |
399 | torsopwa.Part1=torsopad | |
400 | torsopwa.C0=CFrame.new(-1.5,1,-4)*CFrame.Angles(-0.5,math.rad(-1.5),math.rad(45)) | |
401 | ||
402 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
403 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
404 | crystalmeshad.Scale = Vector3.new(0.01,0.05,0.01) | |
405 | ||
406 | torsopad=Instance.new("Part",Character) | |
407 | torsopad.FormFactor="Custom" | |
408 | torsopad.Size=Vector3.new(.2,.2,.2) | |
409 | torsopad.Transparency=0 | |
410 | torsopad.CanCollide=false | |
411 | torsopad.BrickColor = BrickColor.new("Black") | |
412 | torsopad.Material="Sand" | |
413 | - | torsopad.BrickColor = BrickColor.new("Institutional white") |
413 | + | |
414 | torsopad.BottomSurface="Smooth" | |
415 | torsopad.RightSurface="Smooth" | |
416 | torsopad.LeftSurface="Smooth" | |
417 | torsopwa=Instance.new("Weld",Character) | |
418 | torsopwa.Part0=Character.Torso | |
419 | torsopwa.Part1=torsopad | |
420 | torsopwa.C0=CFrame.new(-1,-2.5,-4)*CFrame.Angles(-2,math.rad(1.5),math.rad(45)) | |
421 | ||
422 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
423 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
424 | crystalmeshad.Scale = Vector3.new(0.01,0.05,0.01) | |
425 | ||
426 | torsopad=Instance.new("Part",Character) | |
427 | torsopad.FormFactor="Custom" | |
428 | torsopad.Size=Vector3.new(.2,.2,.2) | |
429 | torsopad.Transparency=0 | |
430 | torsopad.CanCollide=false | |
431 | torsopad.BrickColor = BrickColor.new("Black") | |
432 | torsopad.Material="Sand" | |
433 | - | headsp.BrickColor = BrickColor.new("Institutional white") |
433 | + | |
434 | torsopad.BottomSurface="Smooth" | |
435 | torsopad.RightSurface="Smooth" | |
436 | torsopad.LeftSurface="Smooth" | |
437 | torsopwa=Instance.new("Weld",Character) | |
438 | torsopwa.Part0=Character.Torso | |
439 | torsopwa.Part1=torsopad | |
440 | torsopwa.C0=CFrame.new(1,-2.5,-4)*CFrame.Angles(-2,math.rad(1.5),math.rad(-45)) | |
441 | ||
442 | crystalmeshad = Instance.new("FileMesh",torsopad) | |
443 | crystalmeshad.MeshId = "http://www.roblox.com/asset/?id=569102850" | |
444 | crystalmeshad.Scale = Vector3.new(0.01,0.05,0.01) | |
445 | ||
446 | headsp=Instance.new("Part",Character) | |
447 | headsp.FormFactor="Custom" | |
448 | headsp.Size=Vector3.new(.2,.2,.2) | |
449 | headsp.Transparency=0 | |
450 | headsp.CanCollide=false | |
451 | headsp.BrickColor = BrickColor.new("Black") | |
452 | headsp.Material="Sand" | |
453 | headsp.TopSurface="Smooth" | |
454 | - | ghostp.BrickColor = BrickColor.new("Institutional white") |
454 | + | |
455 | headsp.RightSurface="Smooth" | |
456 | headsp.LeftSurface="Smooth" | |
457 | headspw=Instance.new("Weld",Character) | |
458 | headspw.Part0=Character.Torso | |
459 | headspw.Part1=headsp | |
460 | headspw.C0=CFrame.new(0,3,-2)*CFrame.Angles(0,math.rad(-90),math.rad(0)) | |
461 | ||
462 | heads = Instance.new("SpecialMesh",headsp) | |
463 | heads.MeshType = "Sphere" | |
464 | heads.Scale = Vector3.new(25,25,25) | |
465 | ||
466 | ||
467 | ghostp=Instance.new("Part",Character) | |
468 | ghostp.FormFactor="Custom" | |
469 | ghostp.Size=Vector3.new(0.2,0.2,0.2) | |
470 | ghostp.Transparency=1 | |
471 | ghostp.CanCollide=false | |
472 | ghostp.BrickColor = BrickColor.new("Black") | |
473 | ghostp.Material="Neon" | |
474 | - | ghostp2.BrickColor = BrickColor.new("Institutional white") |
474 | + | |
475 | ghostp.BottomSurface="Smooth" | |
476 | ghostp.RightSurface="Smooth" | |
477 | ghostp.LeftSurface="Smooth" | |
478 | ghostw=Instance.new("Weld",Character) | |
479 | ghostw.Part0=Character.Torso | |
480 | ghostw.Part1=ghostp | |
481 | ghostw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
482 | ||
483 | ghostmesh = Instance.new("FileMesh",ghostp) | |
484 | ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
485 | ghostmesh.Scale = Vector3.new(5,5,5) | |
486 | ||
487 | ghostp2=Instance.new("Part",Character) | |
488 | ghostp2.FormFactor="Custom" | |
489 | ghostp2.Size=Vector3.new(0.2,0.2,0.2) | |
490 | ghostp2.Transparency=1 | |
491 | ghostp2.CanCollide=false | |
492 | ghostp2.BrickColor = BrickColor.new("Black") | |
493 | ghostp2.Material="Neon" | |
494 | - | ghostp3.BrickColor = BrickColor.new("Institutional white") |
494 | + | |
495 | ghostp2.BottomSurface="Smooth" | |
496 | ghostp2.RightSurface="Smooth" | |
497 | ghostp2.LeftSurface="Smooth" | |
498 | ghostw2=Instance.new("Weld",Character) | |
499 | ghostw2.Part0=Character.Torso | |
500 | ghostw2.Part1=ghostp2 | |
501 | ghostw2.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
502 | ||
503 | ghostmesh2 = Instance.new("FileMesh",ghostp2) | |
504 | ghostmesh2.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
505 | ghostmesh2.Scale = Vector3.new(10,10,10) | |
506 | ||
507 | ghostp3=Instance.new("Part",Character) | |
508 | ghostp3.FormFactor="Custom" | |
509 | ghostp3.Size=Vector3.new(0.2,0.2,0.2) | |
510 | ghostp3.Transparency=1 | |
511 | ghostp3.CanCollide=false | |
512 | ghostp3.BrickColor = BrickColor.new("Black") | |
513 | ghostp3.Material="Neon" | |
514 | - | ghostp4.BrickColor = BrickColor.new("Institutional white") |
514 | + | |
515 | ghostp3.BottomSurface="Smooth" | |
516 | ghostp3.RightSurface="Smooth" | |
517 | ghostp2.LeftSurface="Smooth" | |
518 | ghostw3=Instance.new("Weld",Character) | |
519 | ghostw3.Part0=Character.Torso | |
520 | ghostw3.Part1=ghostp3 | |
521 | ghostw3.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
522 | ||
523 | ghostmesh3 = Instance.new("FileMesh",ghostp3) | |
524 | ghostmesh3.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
525 | ghostmesh3.Scale = Vector3.new(15,15,15) | |
526 | ||
527 | ghostp4=Instance.new("Part",Character) | |
528 | ghostp4.FormFactor="Custom" | |
529 | ghostp4.Size=Vector3.new(0.2,0.2,0.2) | |
530 | ghostp4.Transparency=1 | |
531 | ghostp4.CanCollide=false | |
532 | ghostp4.BrickColor = BrickColor.new("Black") | |
533 | ghostp4.Material="Neon" | |
534 | - | ghostp5.BrickColor = BrickColor.new("Institutional white") |
534 | + | |
535 | ghostp4.BottomSurface="Smooth" | |
536 | ghostp4.RightSurface="Smooth" | |
537 | ghostp4.LeftSurface="Smooth" | |
538 | ghostw4=Instance.new("Weld",Character) | |
539 | ghostw4.Part0=Character.Torso | |
540 | ghostw4.Part1=ghostp4 | |
541 | ghostw4.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
542 | ||
543 | ghostmesh4 = Instance.new("FileMesh",ghostp4) | |
544 | ghostmesh4.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
545 | ghostmesh4.Scale = Vector3.new(20,20,20) | |
546 | ||
547 | ghostp5=Instance.new("Part",Character) | |
548 | ghostp5.FormFactor="Custom" | |
549 | ghostp5.Size=Vector3.new(0.2,0.2,0.2) | |
550 | ghostp5.Transparency=1 | |
551 | ghostp5.CanCollide=false | |
552 | ghostp5.BrickColor = BrickColor.new("Black") | |
553 | ghostp5.Material="Neon" | |
554 | - | ghostp6.BrickColor = BrickColor.new("Institutional white") |
554 | + | |
555 | ghostp5.BottomSurface="Smooth" | |
556 | ghostp5.RightSurface="Smooth" | |
557 | ghostp5.LeftSurface="Smooth" | |
558 | ghost5w=Instance.new("Weld",Character) | |
559 | ghost5w.Part0=Character.Torso | |
560 | ghost5w.Part1=ghostp5 | |
561 | ghost5w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
562 | ||
563 | ghostmesh = Instance.new("FileMesh",ghostp5) | |
564 | ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
565 | ghostmesh.Scale = Vector3.new(2.5,2.5,2.5) | |
566 | ||
567 | ghostp6=Instance.new("Part",Character) | |
568 | ghostp6.FormFactor="Custom" | |
569 | ghostp6.Size=Vector3.new(0.2,0.2,0.2) | |
570 | ghostp6.Transparency=1 | |
571 | ghostp6.CanCollide=false | |
572 | ghostp6.BrickColor = BrickColor.new("Black") | |
573 | ghostp6.Material="Neon" | |
574 | - | ghostp7.BrickColor = BrickColor.new("Institutional white") |
574 | + | |
575 | ghostp6.BottomSurface="Smooth" | |
576 | ghostp6.RightSurface="Smooth" | |
577 | ghostp6.LeftSurface="Smooth" | |
578 | ghost6w=Instance.new("Weld",Character) | |
579 | ghost6w.Part0=Character.Torso | |
580 | ghost6w.Part1=ghostp6 | |
581 | ghost6w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
582 | ||
583 | ghostmesh = Instance.new("FileMesh",ghostp6) | |
584 | ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
585 | ghostmesh.Scale = Vector3.new(7.5,7.5,7.5) | |
586 | ||
587 | ghostp7=Instance.new("Part",Character) | |
588 | ghostp7.FormFactor="Custom" | |
589 | ghostp7.Size=Vector3.new(0.2,0.2,0.2) | |
590 | ghostp7.Transparency=1 | |
591 | ghostp7.CanCollide=false | |
592 | ghostp7.BrickColor = BrickColor.new("Black") | |
593 | ghostp7.Material="Neon" | |
594 | - | ghostp8.BrickColor = BrickColor.new("Institutional white") |
594 | + | |
595 | ghostp7.BottomSurface="Smooth" | |
596 | ghostp7.RightSurface="Smooth" | |
597 | ghostp7.LeftSurface="Smooth" | |
598 | ghost7w=Instance.new("Weld",Character) | |
599 | ghost7w.Part0=Character.Torso | |
600 | ghost7w.Part1=ghostp7 | |
601 | ghost7w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
602 | ||
603 | ghostmesh = Instance.new("FileMesh",ghostp7) | |
604 | ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
605 | ghostmesh.Scale = Vector3.new(12.5,12.5,12.5) | |
606 | ||
607 | ghostp8=Instance.new("Part",Character) | |
608 | ghostp8.FormFactor="Custom" | |
609 | ghostp8.Size=Vector3.new(0.2,0.2,0.2) | |
610 | ghostp8.Transparency=1 | |
611 | ghostp8.CanCollide=false | |
612 | ghostp8.BrickColor = BrickColor.new("Black") | |
613 | ghostp8.Material="Neon" | |
614 | ghostp8.TopSurface="Smooth" | |
615 | ghostp8.BottomSurface="Smooth" | |
616 | ghostp8.RightSurface="Smooth" | |
617 | ghostp8.LeftSurface="Smooth" | |
618 | ghost8w=Instance.new("Weld",Character) | |
619 | ghost8w.Part0=Character.Torso | |
620 | ghost8w.Part1=ghostp8 | |
621 | ghost8w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
622 | ||
623 | ghostmesh = Instance.new("FileMesh",ghostp8) | |
624 | ghostmesh.MeshId = "http://www.roblox.com/asset/?id=168892432" | |
625 | ghostmesh.Scale = Vector3.new(17.5,17.5,17.5) | |
626 | ||
627 | eyeoutline=Instance.new("Part",Character) | |
628 | eyeoutline.FormFactor="Custom" | |
629 | eyeoutline.Size=Vector3.new(.2,.2,.2) | |
630 | eyeoutline.Transparency=0 | |
631 | eyeoutline.CanCollide=false | |
632 | eyeoutline.BrickColor = BrickColor.new("Black") | |
633 | eyeoutline.Material="SmoothPlastic" | |
634 | - | eyep.BrickColor = BrickColor.new("Cyan") |
634 | + | |
635 | eyeoutline.BottomSurface="Smooth" | |
636 | eyeoutline.RightSurface="Smooth" | |
637 | eyeoutline.LeftSurface="Smooth" | |
638 | eyeoutlinew=Instance.new("Weld",Character) | |
639 | eyeoutlinew.Part0=Character.Torso | |
640 | eyeoutlinew.Part1=eyeoutline | |
641 | eyeoutlinew.C0=CFrame.new(-1,2.3,-4.2)*CFrame.Angles(0,math.rad(20),math.rad(0)) | |
642 | ||
643 | eyemesh = Instance.new("SpecialMesh",eyeoutline) | |
644 | eyemesh.MeshType = "Sphere" | |
645 | eyemesh.Scale = Vector3.new(3.9,3.9,2) | |
646 | ||
647 | eyep=Instance.new("Part",Character) | |
648 | eyep.FormFactor="Custom" | |
649 | eyep.Size=Vector3.new(.2,.2,.2) | |
650 | eyep.Transparency=0 | |
651 | eyep.CanCollide=false | |
652 | eyep.BrickColor = BrickColor.new("Maroon") | |
653 | eyep.Material="Neon" | |
654 | eyep.TopSurface="Smooth" | |
655 | eyep.BottomSurface="Smooth" | |
656 | eyep.RightSurface="Smooth" | |
657 | eyep.LeftSurface="Smooth" | |
658 | eyepw=Instance.new("Weld",Character) | |
659 | eyepw.Part0=eyeoutline | |
660 | eyepw.Part1=eyep | |
661 | eyepw.C0=CFrame.new(0,0,-0.1)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
662 | ||
663 | eyepmesh = Instance.new("SpecialMesh",eyep) | |
664 | eyepmesh.MeshType = "Sphere" | |
665 | eyepmesh.Scale = Vector3.new(3.5,3.5,2) | |
666 | ||
667 | eyeoutline2=Instance.new("Part",Character) | |
668 | eyeoutline2.FormFactor="Custom" | |
669 | eyeoutline2.Size=Vector3.new(.2,.2,.2) | |
670 | eyeoutline2.Transparency=0 | |
671 | eyeoutline2.CanCollide=false | |
672 | eyeoutline2.BrickColor = BrickColor.new("Black") | |
673 | eyeoutline2.Material="SmoothPlastic" | |
674 | - | eyep2.BrickColor = BrickColor.new("Cyan") |
674 | + | |
675 | eyeoutline2.BottomSurface="Smooth" | |
676 | eyeoutline2.RightSurface="Smooth" | |
677 | eyeoutline2.LeftSurface="Smooth" | |
678 | eyeoutline2w=Instance.new("Weld",Character) | |
679 | eyeoutline2w.Part0=Character.Torso | |
680 | eyeoutline2w.Part1=eyeoutline2 | |
681 | eyeoutline2w.C0=CFrame.new(1,2.3,-4.2)*CFrame.Angles(0,math.rad(-20),math.rad(0)) | |
682 | ||
683 | eyemesh = Instance.new("SpecialMesh",eyeoutline2) | |
684 | eyemesh.MeshType = "Sphere" | |
685 | eyemesh.Scale = Vector3.new(3.9,3.9,2) | |
686 | ||
687 | eyep2=Instance.new("Part",Character) | |
688 | eyep2.FormFactor="Custom" | |
689 | eyep2.Size=Vector3.new(.2,.2,.2) | |
690 | eyep2.Transparency=0 | |
691 | eyep2.CanCollide=false | |
692 | eyep2.BrickColor = BrickColor.new("Maroon") | |
693 | eyep2.Material="Neon" | |
694 | eyep2.TopSurface="Smooth" | |
695 | eyep2.BottomSurface="Smooth" | |
696 | eyep2.RightSurface="Smooth" | |
697 | eyep2.LeftSurface="Smooth" | |
698 | eyep2w=Instance.new("Weld",Character) | |
699 | eyep2w.Part0=eyeoutline2 | |
700 | eyep2w.Part1=eyep2 | |
701 | eyep2w.C0=CFrame.new(0,0,-0.1)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
702 | ||
703 | eyep2mesh = Instance.new("SpecialMesh",eyep2) | |
704 | eyep2mesh.MeshType = "Sphere" | |
705 | eyep2mesh.Scale = Vector3.new(3.5,3.5,2) | |
706 | ||
707 | local spotlight = Instance.new("SpotLight", eyep) | |
708 | spotlight.Shadows = true | |
709 | spotlight.Color = Color3.new(0, 255, 255) | |
710 | spotlight.Range = 24 | |
711 | spotlight.Angle = 60 | |
712 | spotlight.Brightness = 100 | |
713 | ||
714 | local spotlight2 = Instance.new("SpotLight", eyep2) | |
715 | spotlight2.Shadows = true | |
716 | spotlight2.Color = Color3.new(0, 255, 255) | |
717 | spotlight2.Range = 24 | |
718 | spotlight2.Angle = 60 | |
719 | spotlight2.Brightness = 100 | |
720 | - | emitterp.BrickColor = BrickColor.new("Cyan") |
720 | + | |
721 | local particleemitter = Instance.new("ParticleEmitter", Torso) | |
722 | particleemitter.VelocitySpread = 180 | |
723 | particleemitter.Lifetime = NumberRange.new(1) | |
724 | particleemitter.Speed = NumberRange.new(10) | |
725 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
726 | particleemitter.RotSpeed = NumberRange.new(-180, 180) | |
727 | particleemitter.Rotation = NumberRange.new(-360, 360) | |
728 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
729 | particleemitter.LightEmission = 1 | |
730 | particleemitter.Texture = "http://www.roblox.com/asset/?id=0" | |
731 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
732 | ||
733 | emitterp=Instance.new("Part",Character) | |
734 | emitterp.FormFactor="Custom" | |
735 | emitterp.Size=Vector3.new(5,.2,5) | |
736 | emitterp.Transparency=1 | |
737 | emitterp.CanCollide=false | |
738 | emitterp.BrickColor = BrickColor.new("Maroon") | |
739 | emitterp.Material="Neon" | |
740 | emitterp.TopSurface="Smooth" | |
741 | emitterp.BottomSurface="Smooth" | |
742 | emitterp.RightSurface="Smooth" | |
743 | emitterp.LeftSurface="Smooth" | |
744 | emitterpw=Instance.new("Weld",Character) | |
745 | emitterpw.Part0=Character.Torso | |
746 | emitterpw.Part1=emitterp | |
747 | emitterpw.C0=CFrame.new(0,-4,0)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
748 | ||
749 | local emitter = Instance.new("ParticleEmitter", emitterp) | |
750 | emitter.EmissionDirection = "Bottom" | |
751 | emitter.VelocitySpread = 30 | |
752 | emitter.Lifetime = NumberRange.new(1) | |
753 | emitter.Speed = NumberRange.new(10) | |
754 | emitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2, 0), NumberSequenceKeypoint.new(1, 2, 0)}) | |
755 | emitter.RotSpeed = NumberRange.new(-180, 180) | |
756 | emitter.Rate = 1000 | |
757 | emitter.Rotation = NumberRange.new(-360, 360) | |
758 | emitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
759 | emitter.LightEmission = 1 | |
760 | emitter.Texture = "http://www.roblox.com/asset/?id=0" | |
761 | emitter.Color = ColorSequence.new(Color3.new(0, 255, 0), Color3.new(0, 0, 0)) | |
762 | ||
763 | local eyeeffect = Instance.new("ParticleEmitter", eyep) | |
764 | eyeeffect.Lifetime = NumberRange.new(1) | |
765 | eyeeffect.Speed = NumberRange.new(0) | |
766 | eyeeffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 4), NumberSequenceKeypoint.new(1, 4)}) | |
767 | eyeeffect.RotSpeed = NumberRange.new(1080) | |
768 | eyeeffect.Rate = 25 | |
769 | eyeeffect.Rotation = NumberRange.new(-360, 360) | |
770 | eyeeffect.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.11, 0), NumberSequenceKeypoint.new(0.99, 1), NumberSequenceKeypoint.new(1, 1)}) | |
771 | eyeeffect.LightEmission = 0.5 | |
772 | eyeeffect.Texture = "http://www.roblox.com/asset/?id=242292288" | |
773 | eyeeffect.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(255, 255, 255)) | |
774 | eyeeffect.LockedToPart = true | |
775 | eyeeffect.Enabled = false | |
776 | ||
777 | local eyeeffect2 = Instance.new("ParticleEmitter", eyep2) | |
778 | eyeeffect2.Lifetime = NumberRange.new(1) | |
779 | eyeeffect2.Speed = NumberRange.new(0) | |
780 | eyeeffect2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 4), NumberSequenceKeypoint.new(1, 4)}) | |
781 | - | arm1p.BrickColor = BrickColor.new("Institutional white") |
781 | + | |
782 | eyeeffect2.Rate = 25 | |
783 | eyeeffect2.Rotation = NumberRange.new(-360, 360) | |
784 | eyeeffect2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.11, 0), NumberSequenceKeypoint.new(0.99, 1), NumberSequenceKeypoint.new(1, 1)}) | |
785 | eyeeffect2.LightEmission = 0.5 | |
786 | eyeeffect2.Texture = "http://www.roblox.com/asset/?id=242292288" | |
787 | eyeeffect2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(255, 255, 255)) | |
788 | eyeeffect2.LockedToPart = true | |
789 | eyeeffect2.Enabled = false | |
790 | -------------------------------------------------------------- | |
791 | Arm = Instance.new("Model",Character) | |
792 | Arm.Name = "Arm 1" | |
793 | ||
794 | arm1p=Instance.new("Part",Character) | |
795 | arm1p.FormFactor="Custom" | |
796 | arm1p.Size=Vector3.new(.2,.2,.2) | |
797 | arm1p.Transparency=0 | |
798 | arm1p.CanCollide=false | |
799 | arm1p.BrickColor = BrickColor.new("Black") | |
800 | arm1p.Material="Sand" | |
801 | arm1p.TopSurface="Smooth" | |
802 | arm1p.BottomSurface="Smooth" | |
803 | arm1p.RightSurface="Smooth" | |
804 | arm1p.LeftSurface="Smooth" | |
805 | arm1pw=Instance.new("Weld",Character) | |
806 | arm1pw.Part0=Character["Right Arm"] | |
807 | arm1pw.Part1=arm1p | |
808 | arm1pw.C0=CFrame.new(0,-5,0)*CFrame.Angles(0,math.rad(0),math.rad(90)) | |
809 | ||
810 | arm1pmesh = Instance.new("SpecialMesh",arm1p) | |
811 | arm1pmesh.MeshType = "Sphere" | |
812 | arm1pmesh.Scale = Vector3.new(30,30,30) | |
813 | ||
814 | - | arm1p2.BrickColor = BrickColor.new("Institutional white") |
814 | + | |
815 | particleemitter2.VelocitySpread = 180 | |
816 | particleemitter2.Lifetime = NumberRange.new(1) | |
817 | particleemitter2.Speed = NumberRange.new(10) | |
818 | particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
819 | particleemitter2.RotSpeed = NumberRange.new(-180, 180) | |
820 | particleemitter2.Rotation = NumberRange.new(-360, 360) | |
821 | particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
822 | particleemitter2.LightEmission = 1 | |
823 | particleemitter2.Texture = "http://www.roblox.com/asset/?id=0" | |
824 | particleemitter2.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
825 | particleemitter2.Enabled = false | |
826 | ||
827 | arm1p2=Instance.new("Part",Character) | |
828 | arm1p2.FormFactor="Custom" | |
829 | arm1p2.Size=Vector3.new(.2,.2,.2) | |
830 | arm1p2.Transparency=0 | |
831 | arm1p2.CanCollide=false | |
832 | arm1p2.BrickColor = BrickColor.new("Black") | |
833 | arm1p2.Material="Sand" | |
834 | arm1p2.TopSurface="Smooth" | |
835 | arm1p2.BottomSurface="Smooth" | |
836 | arm1p2.RightSurface="Smooth" | |
837 | arm1p2.LeftSurface="Smooth" | |
838 | arm1p2w=Instance.new("Weld",Character) | |
839 | arm1p2w.Part0=arm1p | |
840 | arm1p2w.Part1=arm1p2 | |
841 | arm1p2w.C0=CFrame.new(0,3,0)*CFrame.Angles(0,math.rad(90),math.rad(-90)) | |
842 | ||
843 | arm1p2mesh = Instance.new("SpecialMesh",arm1p2) | |
844 | arm1p2mesh.MeshType = "Cylinder" | |
845 | arm1p2mesh.Scale = Vector3.new(30,20,30) | |
846 | ||
847 | - | arm1p3.BrickColor = BrickColor.new("Institutional white") |
847 | + | |
848 | particleemitter3.VelocitySpread = 180 | |
849 | particleemitter3.Lifetime = NumberRange.new(1) | |
850 | particleemitter3.Speed = NumberRange.new(10) | |
851 | particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
852 | particleemitter3.RotSpeed = NumberRange.new(-180, 180) | |
853 | particleemitter3.Rotation = NumberRange.new(-360, 360) | |
854 | particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
855 | particleemitter3.LightEmission = 1 | |
856 | particleemitter3.Texture = "http://www.roblox.com/asset/?id=0" | |
857 | particleemitter3.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
858 | particleemitter3.Enabled = false | |
859 | ||
860 | arm1p3=Instance.new("Part",Character) | |
861 | arm1p3.FormFactor="Custom" | |
862 | arm1p3.Size=Vector3.new(.2,.2,.2) | |
863 | arm1p3.Transparency=0 | |
864 | arm1p3.CanCollide=false | |
865 | arm1p3.BrickColor = BrickColor.new("Black") | |
866 | arm1p3.Material="Sand" | |
867 | arm1p3.TopSurface="Smooth" | |
868 | arm1p3.BottomSurface="Smooth" | |
869 | arm1p3.RightSurface="Smooth" | |
870 | arm1p3.LeftSurface="Smooth" | |
871 | arm1p3w=Instance.new("Weld",Character) | |
872 | arm1p3w.Part0=arm1p2 | |
873 | arm1p3w.Part1=arm1p3 | |
874 | arm1p3w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
875 | ||
876 | arm1p3mesh = Instance.new("SpecialMesh",arm1p3) | |
877 | arm1p3mesh.MeshType = "Sphere" | |
878 | arm1p3mesh.Scale = Vector3.new(25,25,25) | |
879 | ||
880 | - | arm1p4.BrickColor = BrickColor.new("Institutional white") |
880 | + | |
881 | particleemitter4.VelocitySpread = 180 | |
882 | particleemitter4.Lifetime = NumberRange.new(1) | |
883 | particleemitter4.Speed = NumberRange.new(10) | |
884 | particleemitter4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
885 | particleemitter4.RotSpeed = NumberRange.new(-180, 180) | |
886 | particleemitter4.Rotation = NumberRange.new(-360, 360) | |
887 | particleemitter4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
888 | particleemitter4.LightEmission = 1 | |
889 | particleemitter4.Texture = "http://www.roblox.com/asset/?id=0" | |
890 | particleemitter4.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
891 | particleemitter4.Enabled = false | |
892 | ||
893 | arm1p4=Instance.new("Part",Character) | |
894 | arm1p4.FormFactor="Custom" | |
895 | arm1p4.Size=Vector3.new(.2,.2,.2) | |
896 | arm1p4.Transparency=0 | |
897 | arm1p4.CanCollide=false | |
898 | arm1p4.BrickColor = BrickColor.new("Black") | |
899 | arm1p4.Material="Sand" | |
900 | arm1p4.TopSurface="Smooth" | |
901 | arm1p4.BottomSurface="Smooth" | |
902 | arm1p4.RightSurface="Smooth" | |
903 | arm1p4.LeftSurface="Smooth" | |
904 | arm1p4w=Instance.new("Weld",Character) | |
905 | arm1p4w.Part0=arm1p3 | |
906 | arm1p4w.Part1=arm1p4 | |
907 | arm1p4w.C0=CFrame.new(-3,3,0)*CFrame.Angles(0,math.rad(0),math.rad(-45)) | |
908 | ||
909 | arm1p4mesh = Instance.new("SpecialMesh",arm1p4) | |
910 | arm1p4mesh.MeshType = "Cylinder" | |
911 | arm1p4mesh.Scale = Vector3.new(30,20,30) | |
912 | ||
913 | - | arm1p5.BrickColor = BrickColor.new("Institutional white") |
913 | + | |
914 | particleemitter5.VelocitySpread = 180 | |
915 | particleemitter5.Lifetime = NumberRange.new(1) | |
916 | particleemitter5.Speed = NumberRange.new(10) | |
917 | particleemitter5.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
918 | particleemitter5.RotSpeed = NumberRange.new(-180, 180) | |
919 | particleemitter5.Rotation = NumberRange.new(-360, 360) | |
920 | particleemitter5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
921 | particleemitter5.LightEmission = 1 | |
922 | particleemitter5.Texture = "http://www.roblox.com/asset/?id=0" | |
923 | particleemitter5.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
924 | particleemitter5.Enabled = false | |
925 | ||
926 | arm1p5=Instance.new("Part",Character) | |
927 | arm1p5.FormFactor="Custom" | |
928 | arm1p5.Size=Vector3.new(.2,.2,.2) | |
929 | arm1p5.Transparency=0 | |
930 | arm1p5.CanCollide=false | |
931 | arm1p5.BrickColor = BrickColor.new("Black") | |
932 | arm1p5.Material="Sand" | |
933 | arm1p5.TopSurface="Smooth" | |
934 | arm1p5.BottomSurface="Smooth" | |
935 | arm1p5.RightSurface="Smooth" | |
936 | arm1p5.LeftSurface="Smooth" | |
937 | arm1p5w=Instance.new("Weld",Character) | |
938 | arm1p5w.Part0=arm1p4 | |
939 | arm1p5w.Part1=arm1p5 | |
940 | arm1p5w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
941 | ||
942 | arm1p5mesh = Instance.new("SpecialMesh",arm1p5) | |
943 | arm1p5mesh.MeshType = "Sphere" | |
944 | arm1p5mesh.Scale = Vector3.new(30,30,30) | |
945 | ||
946 | - | arm1p6.BrickColor = BrickColor.new("Institutional white") |
946 | + | |
947 | particleemitter6.VelocitySpread = 180 | |
948 | particleemitter6.Lifetime = NumberRange.new(1) | |
949 | particleemitter6.Speed = NumberRange.new(10) | |
950 | particleemitter6.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
951 | particleemitter6.RotSpeed = NumberRange.new(-180, 180) | |
952 | particleemitter6.Rotation = NumberRange.new(-360, 360) | |
953 | particleemitter6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
954 | particleemitter6.LightEmission = 1 | |
955 | particleemitter6.Texture = "http://www.roblox.com/asset/?id=0" | |
956 | particleemitter6.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
957 | particleemitter6.Enabled = false | |
958 | ||
959 | arm1p6=Instance.new("Part",Character) | |
960 | arm1p6.FormFactor="Custom" | |
961 | arm1p6.Size=Vector3.new(.2,.2,.2) | |
962 | arm1p6.Transparency=0 | |
963 | arm1p6.CanCollide=false | |
964 | arm1p6.BrickColor = BrickColor.new("Black") | |
965 | arm1p6.Material="Sand" | |
966 | - | arm1p7.BrickColor = BrickColor.new("Institutional white") |
966 | + | |
967 | arm1p6.BottomSurface="Smooth" | |
968 | arm1p6.RightSurface="Smooth" | |
969 | arm1p6.LeftSurface="Smooth" | |
970 | arm1p6w=Instance.new("Weld",Character) | |
971 | arm1p6w.Part0=arm1p5 | |
972 | arm1p6w.Part1=arm1p6 | |
973 | arm1p6w.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
974 | ||
975 | arm1p6mesh = Instance.new("FileMesh",arm1p6) | |
976 | arm1p6mesh.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
977 | arm1p6mesh.Scale = Vector3.new(3.15,3.15,3.15) | |
978 | ||
979 | arm1p7=Instance.new("Part",Character) | |
980 | arm1p7.FormFactor="Custom" | |
981 | arm1p7.Size=Vector3.new(.5,.20,.20) | |
982 | arm1p7.Transparency=0 | |
983 | arm1p7.CanCollide=false | |
984 | arm1p7.BrickColor = BrickColor.new("Black") | |
985 | arm1p7.Material="Sand" | |
986 | - | arm1hitbox.BrickColor = BrickColor.new("Institutional white") |
986 | + | |
987 | arm1p7.BottomSurface="Smooth" | |
988 | arm1p7.RightSurface="Smooth" | |
989 | arm1p7.LeftSurface="Smooth" | |
990 | arm1p7w=Instance.new("Weld",Character) | |
991 | arm1p7w.Part0=arm1p | |
992 | arm1p7w.Part1=arm1p7 | |
993 | arm1p7w.C0=CFrame.new(0,-1.5,2.5)*CFrame.Angles(90,math.rad(0),math.rad(0)) | |
994 | ||
995 | arm1p7mesh = Instance.new("FileMesh",arm1p7) | |
996 | arm1p7mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
997 | arm1p7mesh.Scale = Vector3.new(5,4,5) | |
998 | ||
999 | arm1hitbox=Instance.new("Part",Character) | |
1000 | arm1hitbox.FormFactor="Custom" | |
1001 | arm1hitbox.Size=Vector3.new(5,5,5) | |
1002 | arm1hitbox.Transparency=1 | |
1003 | arm1hitbox.CanCollide=false | |
1004 | arm1hitbox.BrickColor = BrickColor.new("Black") | |
1005 | - | arm2p.BrickColor = BrickColor.new("Institutional white") |
1005 | + | |
1006 | arm1hitbox.TopSurface="Smooth" | |
1007 | arm1hitbox.BottomSurface="Smooth" | |
1008 | arm1hitbox.RightSurface="Smooth" | |
1009 | arm1hitbox.LeftSurface="Smooth" | |
1010 | arm1hitboxw=Instance.new("Weld",Character) | |
1011 | arm1hitboxw.Part0=arm1p6 | |
1012 | arm1hitboxw.Part1=arm1hitbox | |
1013 | arm1hitboxw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
1014 | -------------------------------------------------------------- | |
1015 | Arm2 = Instance.new("Model",Character) | |
1016 | Arm2.Name = "Arm 2" | |
1017 | ||
1018 | arm2p=Instance.new("Part",Character) | |
1019 | arm2p.FormFactor="Custom" | |
1020 | arm2p.Size=Vector3.new(.2,.2,.2) | |
1021 | arm2p.Transparency=0 | |
1022 | arm2p.CanCollide=false | |
1023 | arm2p.BrickColor = BrickColor.new("Black") | |
1024 | arm2p.Material="Sand" | |
1025 | arm2p.TopSurface="Smooth" | |
1026 | arm2p.BottomSurface="Smooth" | |
1027 | arm2p.RightSurface="Smooth" | |
1028 | arm2p.LeftSurface="Smooth" | |
1029 | arm2pw=Instance.new("Weld",Character) | |
1030 | arm2pw.Part0=Character["Left Arm"] | |
1031 | arm2pw.Part1=arm2p | |
1032 | arm2pw.C0=CFrame.new(0,-5,0)*CFrame.Angles(0,math.rad(0),math.rad(-90)) | |
1033 | ||
1034 | arm2pmesh = Instance.new("SpecialMesh",arm2p) | |
1035 | arm2pmesh.MeshType = "Sphere" | |
1036 | arm2pmesh.Scale = Vector3.new(30,30,30) | |
1037 | ||
1038 | - | arm2p2.BrickColor = BrickColor.new("Institutional white") |
1038 | + | |
1039 | particleemitter7.VelocitySpread = 180 | |
1040 | particleemitter7.Lifetime = NumberRange.new(1) | |
1041 | particleemitter7.Speed = NumberRange.new(10) | |
1042 | particleemitter7.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
1043 | particleemitter7.RotSpeed = NumberRange.new(-180, 180) | |
1044 | particleemitter7.Rotation = NumberRange.new(-360, 360) | |
1045 | particleemitter7.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1046 | particleemitter7.LightEmission = 1 | |
1047 | particleemitter7.Texture = "http://www.roblox.com/asset/?id=0" | |
1048 | particleemitter7.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
1049 | particleemitter7.Enabled = false | |
1050 | ||
1051 | arm2p2=Instance.new("Part",Character) | |
1052 | arm2p2.FormFactor="Custom" | |
1053 | arm2p2.Size=Vector3.new(.2,.2,.2) | |
1054 | arm2p2.Transparency=0 | |
1055 | arm2p2.CanCollide=false | |
1056 | arm2p2.BrickColor = BrickColor.new("Black") | |
1057 | arm2p2.Material="Sand" | |
1058 | arm2p2.TopSurface="Smooth" | |
1059 | arm2p2.BottomSurface="Smooth" | |
1060 | arm2p2.RightSurface="Smooth" | |
1061 | arm2p2.LeftSurface="Smooth" | |
1062 | arm2p2w=Instance.new("Weld",Character) | |
1063 | arm2p2w.Part0=arm2p | |
1064 | arm2p2w.Part1=arm2p2 | |
1065 | arm2p2w.C0=CFrame.new(0,3,0)*CFrame.Angles(0,math.rad(90),math.rad(-90)) | |
1066 | ||
1067 | arm2p2mesh = Instance.new("SpecialMesh",arm2p2) | |
1068 | arm2p2mesh.MeshType = "Cylinder" | |
1069 | arm2p2mesh.Scale = Vector3.new(30,20,30) | |
1070 | ||
1071 | - | arm2p3.BrickColor = BrickColor.new("Institutional white") |
1071 | + | |
1072 | particleemitter8.VelocitySpread = 180 | |
1073 | particleemitter8.Lifetime = NumberRange.new(1) | |
1074 | particleemitter8.Speed = NumberRange.new(10) | |
1075 | particleemitter8.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
1076 | particleemitter8.RotSpeed = NumberRange.new(-180, 180) | |
1077 | particleemitter8.Rotation = NumberRange.new(-360, 360) | |
1078 | particleemitter8.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1079 | particleemitter8.LightEmission = 1 | |
1080 | particleemitter8.Texture = "http://www.roblox.com/asset/?id=0" | |
1081 | particleemitter8.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
1082 | particleemitter8.Enabled = false | |
1083 | ||
1084 | arm2p3=Instance.new("Part",Character) | |
1085 | arm2p3.FormFactor="Custom" | |
1086 | arm2p3.Size=Vector3.new(.2,.2,.2) | |
1087 | arm2p3.Transparency=0 | |
1088 | arm2p3.CanCollide=false | |
1089 | arm2p3.BrickColor = BrickColor.new("Black") | |
1090 | arm2p3.Material="Sand" | |
1091 | arm2p3.TopSurface="Smooth" | |
1092 | arm2p3.BottomSurface="Smooth" | |
1093 | arm2p3.RightSurface="Smooth" | |
1094 | arm2p3.LeftSurface="Smooth" | |
1095 | arm2p3w=Instance.new("Weld",Character) | |
1096 | arm2p3w.Part0=arm2p2 | |
1097 | arm2p3w.Part1=arm2p3 | |
1098 | arm2p3w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
1099 | ||
1100 | arm2p3mesh = Instance.new("SpecialMesh",arm2p3) | |
1101 | arm2p3mesh.MeshType = "Sphere" | |
1102 | arm2p3mesh.Scale = Vector3.new(25,25,25) | |
1103 | ||
1104 | - | arm2p4.BrickColor = BrickColor.new("Institutional white") |
1104 | + | |
1105 | particleemitter9.VelocitySpread = 180 | |
1106 | particleemitter9.Lifetime = NumberRange.new(1) | |
1107 | particleemitter9.Speed = NumberRange.new(10) | |
1108 | particleemitter9.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
1109 | particleemitter9.RotSpeed = NumberRange.new(-180, 180) | |
1110 | particleemitter9.Rotation = NumberRange.new(-360, 360) | |
1111 | particleemitter9.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1112 | particleemitter9.LightEmission = 1 | |
1113 | particleemitter9.Texture = "http://www.roblox.com/asset/?id=0" | |
1114 | particleemitter9.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
1115 | particleemitter9.Enabled = false | |
1116 | ||
1117 | arm2p4=Instance.new("Part",Character) | |
1118 | arm2p4.FormFactor="Custom" | |
1119 | arm2p4.Size=Vector3.new(.2,.2,.2) | |
1120 | arm2p4.Transparency=0 | |
1121 | arm2p4.CanCollide=false | |
1122 | arm2p4.BrickColor = BrickColor.new("Black") | |
1123 | arm2p4.Material="Sand" | |
1124 | arm2p4.TopSurface="Smooth" | |
1125 | arm2p4.BottomSurface="Smooth" | |
1126 | arm2p4.RightSurface="Smooth" | |
1127 | arm2p4.LeftSurface="Smooth" | |
1128 | arm2p4w=Instance.new("Weld",Character) | |
1129 | arm2p4w.Part0=arm2p3 | |
1130 | arm2p4w.Part1=arm2p4 | |
1131 | arm2p4w.C0=CFrame.new(-3,3,0)*CFrame.Angles(0,math.rad(0),math.rad(-45)) | |
1132 | ||
1133 | arm2p4mesh = Instance.new("SpecialMesh",arm2p4) | |
1134 | arm2p4mesh.MeshType = "Cylinder" | |
1135 | arm2p4mesh.Scale = Vector3.new(30,20,30) | |
1136 | ||
1137 | - | arm2p5.BrickColor = BrickColor.new("Institutional white") |
1137 | + | |
1138 | particleemitter10.VelocitySpread = 180 | |
1139 | particleemitter10.Lifetime = NumberRange.new(1) | |
1140 | particleemitter10.Speed = NumberRange.new(10) | |
1141 | particleemitter10.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
1142 | particleemitter10.RotSpeed = NumberRange.new(-180, 180) | |
1143 | particleemitter10.Rotation = NumberRange.new(-360, 360) | |
1144 | particleemitter10.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1145 | particleemitter10.LightEmission = 1 | |
1146 | particleemitter10.Texture = "http://www.roblox.com/asset/?id=0" | |
1147 | particleemitter10.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
1148 | particleemitter10.Enabled = false | |
1149 | ||
1150 | arm2p5=Instance.new("Part",Character) | |
1151 | arm2p5.FormFactor="Custom" | |
1152 | arm2p5.Size=Vector3.new(.2,.2,.2) | |
1153 | arm2p5.Transparency=0 | |
1154 | arm2p5.CanCollide=false | |
1155 | arm2p5.BrickColor = BrickColor.new("Black") | |
1156 | arm2p5.Material="Sand" | |
1157 | arm2p5.TopSurface="Smooth" | |
1158 | arm2p5.BottomSurface="Smooth" | |
1159 | arm2p5.RightSurface="Smooth" | |
1160 | arm2p5.LeftSurface="Smooth" | |
1161 | arm2p5w=Instance.new("Weld",Character) | |
1162 | arm2p5w.Part0=arm2p4 | |
1163 | arm2p5w.Part1=arm2p5 | |
1164 | arm2p5w.C0=CFrame.new(-4,0,0)*CFrame.Angles(0,math.rad(0),math.rad(0)) | |
1165 | ||
1166 | arm2p5mesh = Instance.new("SpecialMesh",arm2p5) | |
1167 | arm2p5mesh.MeshType = "Sphere" | |
1168 | arm2p5mesh.Scale = Vector3.new(30,30,30) | |
1169 | ||
1170 | - | arm2p6.BrickColor = BrickColor.new("Institutional white") |
1170 | + | |
1171 | particleemitter11.VelocitySpread = 180 | |
1172 | particleemitter11.Lifetime = NumberRange.new(1) | |
1173 | particleemitter11.Speed = NumberRange.new(10) | |
1174 | particleemitter11.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0.5, 0.5)}) | |
1175 | particleemitter11.RotSpeed = NumberRange.new(-180, 180) | |
1176 | particleemitter11.Rotation = NumberRange.new(-360, 360) | |
1177 | particleemitter11.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1178 | particleemitter11.LightEmission = 1 | |
1179 | particleemitter11.Texture = "http://www.roblox.com/asset/?id=0" | |
1180 | particleemitter11.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(0, 0, 255)) | |
1181 | particleemitter11.Enabled = false | |
1182 | ||
1183 | arm2p6=Instance.new("Part",Character) | |
1184 | arm2p6.FormFactor="Custom" | |
1185 | arm2p6.Size=Vector3.new(.2,.2,.2) | |
1186 | arm2p6.Transparency=0 | |
1187 | arm2p6.CanCollide=false | |
1188 | arm2p6.BrickColor = BrickColor.new("Black") | |
1189 | arm2p6.Material="Sand" | |
1190 | - | arm2p7.BrickColor = BrickColor.new("Institutional white") |
1190 | + | |
1191 | arm2p6.BottomSurface="Smooth" | |
1192 | arm2p6.RightSurface="Smooth" | |
1193 | arm2p6.LeftSurface="Smooth" | |
1194 | arm2p6w=Instance.new("Weld",Character) | |
1195 | arm2p6w.Part0=arm2p5 | |
1196 | arm2p6w.Part1=arm2p6 | |
1197 | arm2p6w.C0=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),math.rad(90)) | |
1198 | ||
1199 | arm2p6mesh = Instance.new("FileMesh",arm2p6) | |
1200 | arm2p6mesh.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
1201 | arm2p6mesh.Scale = Vector3.new(3.15,3.15,3.15) | |
1202 | ||
1203 | arm2p7=Instance.new("Part",Character) | |
1204 | arm2p7.FormFactor="Custom" | |
1205 | arm2p7.Size=Vector3.new(.5,.20,.20) | |
1206 | arm2p7.Transparency=0 | |
1207 | arm2p7.CanCollide=false | |
1208 | arm2p7.BrickColor = BrickColor.new("Black") | |
1209 | arm2p7.Material="Sand" | |
1210 | - | arm2hitbox.BrickColor = BrickColor.new("Institutional white") |
1210 | + | |
1211 | arm2p7.BottomSurface="Smooth" | |
1212 | arm2p7.RightSurface="Smooth" | |
1213 | arm2p7.LeftSurface="Smooth" | |
1214 | arm2p7w=Instance.new("Weld",Character) | |
1215 | arm2p7w.Part0=arm2p | |
1216 | arm2p7w.Part1=arm2p7 | |
1217 | arm2p7w.C0=CFrame.new(0,-1.5,2.5)*CFrame.Angles(90,math.rad(0),math.rad(0)) | |
1218 | ||
1219 | arm2p7mesh = Instance.new("FileMesh",arm2p7) | |
1220 | arm2p7mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
1221 | arm2p7mesh.Scale = Vector3.new(5,4,5) | |
1222 | - | local function weldBetween(a, b) |
1222 | + | |
1223 | - | local weldd = Instance.new("ManualWeld") |
1223 | + | |
1224 | - | weldd.Part0 = a |
1224 | + | |
1225 | - | weldd.Part1 = b |
1225 | + | |
1226 | - | weldd.C0 = CFrame.new() |
1226 | + | |
1227 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
1227 | + | |
1228 | - | weldd.Parent = a |
1228 | + | arm2hitbox.BrickColor = BrickColor.new("Black") |
1229 | - | return weldd |
1229 | + | |
1230 | - | end |
1230 | + | |
1231 | - | |
1231 | + | |
1232 | - | function swait(num) |
1232 | + | |
1233 | arm2hitbox.LeftSurface="Smooth" | |
1234 | arm2hitboxw=Instance.new("Weld",Character) | |
1235 | arm2hitboxw.Part0=arm2p6 | |
1236 | arm2hitboxw.Part1=arm2hitbox | |
1237 | arm2hitboxw.C0=CFrame.new(0, 0 ,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
1238 | -------------------------------------------------------------- | |
1239 | ||
1240 | - | end |
1240 | + | local function weldBetween(a, b) |
1241 | - | |
1241 | + | local weldd = Instance.new("ManualWeld") |
1242 | - | function nooutline(part) |
1242 | + | weldd.Part0 = a |
1243 | - | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 |
1243 | + | weldd.Part1 = b |
1244 | - | end |
1244 | + | weldd.C0 = CFrame.new() |
1245 | - | |
1245 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
1246 | - | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) |
1246 | + | weldd.Parent = a |
1247 | - | local fp=it("Part") |
1247 | + | return weldd |
1248 | - | fp.formFactor=formfactor |
1248 | + | |
1249 | - | fp.Parent=parent |
1249 | + | |
1250 | - | fp.Reflectance=reflectance |
1250 | + | function swait(num) |
1251 | - | fp.Transparency=transparency |
1251 | + | |
1252 | - | fp.CanCollide=false |
1252 | + | |
1253 | - | fp.Locked=true |
1253 | + | |
1254 | - | fp.BrickColor=BrickColor.new(tostring(brickcolor)) |
1254 | + | |
1255 | - | fp.Name=name |
1255 | + | |
1256 | - | fp.Size=size |
1256 | + | |
1257 | - | fp.Position=Character.Torso.Position |
1257 | + | |
1258 | - | nooutline(fp) |
1258 | + | |
1259 | - | fp.Material=material |
1259 | + | |
1260 | - | fp:BreakJoints() |
1260 | + | function nooutline(part) |
1261 | - | return fp |
1261 | + | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 |
1262 | - | end |
1262 | + | |
1263 | - | |
1263 | + | |
1264 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
1264 | + | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) |
1265 | - | local mesh=it(Mesh) |
1265 | + | local fp=it("Part") |
1266 | - | mesh.Parent=part |
1266 | + | fp.formFactor=formfactor |
1267 | - | if Mesh=="SpecialMesh" then |
1267 | + | fp.Parent=parent |
1268 | - | mesh.MeshType=meshtype |
1268 | + | fp.Reflectance=reflectance |
1269 | - | mesh.MeshId=meshid |
1269 | + | fp.Transparency=transparency |
1270 | - | end |
1270 | + | fp.CanCollide=false |
1271 | - | mesh.Offset=offset |
1271 | + | fp.Locked=true |
1272 | - | mesh.Scale=scale |
1272 | + | fp.BrickColor=BrickColor.new(tostring(brickcolor)) |
1273 | - | return mesh |
1273 | + | fp.Name=name |
1274 | - | end |
1274 | + | fp.Size=size |
1275 | - | |
1275 | + | fp.Position=Character.Torso.Position |
1276 | - | function weld(parent,part0,part1,c0,c1) |
1276 | + | nooutline(fp) |
1277 | - | local weld=it("Weld") |
1277 | + | fp.Material=material |
1278 | - | weld.Parent=parent |
1278 | + | fp:BreakJoints() |
1279 | - | weld.Part0=part0 |
1279 | + | return fp |
1280 | - | weld.Part1=part1 |
1280 | + | |
1281 | - | weld.C0=c0 |
1281 | + | |
1282 | - | weld.C1=c1 |
1282 | + | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
1283 | - | return weld |
1283 | + | local mesh=it(Mesh) |
1284 | - | end |
1284 | + | mesh.Parent=part |
1285 | - | |
1285 | + | if Mesh=="SpecialMesh" then |
1286 | - | |
1286 | + | mesh.MeshType=meshtype |
1287 | mesh.MeshId=meshid | |
1288 | end | |
1289 | mesh.Offset=offset | |
1290 | mesh.Scale=scale | |
1291 | return mesh | |
1292 | end | |
1293 | ||
1294 | function weld(parent,part0,part1,c0,c1) | |
1295 | local weld=it("Weld") | |
1296 | weld.Parent=parent | |
1297 | weld.Part0=part0 | |
1298 | weld.Part1=part1 | |
1299 | weld.C0=c0 | |
1300 | weld.C1=c1 | |
1301 | return weld | |
1302 | end | |
1303 | ||
1304 | ||
1305 | local function CFrameFromTopBack(at, top, back) | |
1306 | local right = top:Cross(back) | |
1307 | return CFrame.new(at.x, at.y, at.z, | |
1308 | right.x, top.x, back.x, | |
1309 | right.y, top.y, back.y, | |
1310 | right.z, top.z, back.z) | |
1311 | end | |
1312 | ||
1313 | function Triangle(a, b, c) | |
1314 | local edg1 = (c-a):Dot((b-a).unit) | |
1315 | local edg2 = (a-b):Dot((c-b).unit) | |
1316 | local edg3 = (b-c):Dot((a-c).unit) | |
1317 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1318 | a, b, c = a, b, c | |
1319 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1320 | a, b, c = b, c, a | |
1321 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1322 | a, b, c = c, a, b | |
1323 | else | |
1324 | assert(false, "unreachable") | |
1325 | end | |
1326 | ||
1327 | local len1 = (c-a):Dot((b-a).unit) | |
1328 | local len2 = (b-a).magnitude - len1 | |
1329 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1330 | ||
1331 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1332 | ||
1333 | local list = {} | |
1334 | ||
1335 | local TrailColor = ("Dark grey") | |
1336 | ||
1337 | if len1 > 0.01 then | |
1338 | local w1 = Instance.new('WedgePart', m) | |
1339 | game:GetService("Debris"):AddItem(w1,5) | |
1340 | w1.Material = "SmoothPlastic" | |
1341 | w1.FormFactor = 'Custom' | |
1342 | w1.BrickColor = BrickColor.new(TrailColor) | |
1343 | w1.Transparency = 0 | |
1344 | w1.Reflectance = 0 | |
1345 | w1.Material = "SmoothPlastic" | |
1346 | w1.CanCollide = false | |
1347 | NoOutline(w1) | |
1348 | local sz = Vector3.new(0.2, width, len1) | |
1349 | w1.Size = sz | |
1350 | local sp = Instance.new("SpecialMesh",w1) | |
1351 | sp.MeshType = "Wedge" | |
1352 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1353 | w1:BreakJoints() | |
1354 | w1.Anchored = true | |
1355 | w1.Parent = workspace | |
1356 | w1.Transparency = 0.7 | |
1357 | table.insert(Effects,{w1,"Disappear",.01}) | |
1358 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1359 | table.insert(list,w1) | |
1360 | end | |
1361 | ||
1362 | if len2 > 0.01 then | |
1363 | local w2 = Instance.new('WedgePart', m) | |
1364 | game:GetService("Debris"):AddItem(w2,5) | |
1365 | w2.Material = "SmoothPlastic" | |
1366 | w2.FormFactor = 'Custom' | |
1367 | w2.BrickColor = BrickColor.new(TrailColor) | |
1368 | w2.Transparency = 0 | |
1369 | w2.Reflectance = 0 | |
1370 | - | |
1370 | + | |
1371 | - | |
1371 | + | |
1372 | - | so = function(id,par,vol,pit) |
1372 | + | |
1373 | local sz = Vector3.new(0.2, width, len2) | |
1374 | w2.Size = sz | |
1375 | local sp = Instance.new("SpecialMesh",w2) | |
1376 | sp.MeshType = "Wedge" | |
1377 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1378 | - | swait() |
1378 | + | |
1379 | - | sou:play() |
1379 | + | |
1380 | w2.Parent = workspace | |
1381 | w2.Transparency = 0.7 | |
1382 | table.insert(Effects,{w2,"Disappear",.01}) | |
1383 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1384 | - | function clerp(a,b,t) |
1384 | + | |
1385 | end | |
1386 | - | local qb = {QuaternionFromCFrame(b)} |
1386 | + | |
1387 | - | local ax, ay, az = a.x, a.y, a.z |
1387 | + | |
1388 | ||
1389 | ||
1390 | - | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) |
1390 | + | so = function(id,par,vol,pit) |
1391 | - | end |
1391 | + | |
1392 | local sou = Instance.new("Sound",par or workspace) | |
1393 | - | function QuaternionFromCFrame(cf) |
1393 | + | |
1394 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
1394 | + | |
1395 | - | local trace = m00 + m11 + m22 |
1395 | + | |
1396 | - | if trace > 0 then |
1396 | + | |
1397 | - | local s = math.sqrt(1 + trace) |
1397 | + | sou:play() |
1398 | - | local recip = 0.5/s |
1398 | + | |
1399 | - | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 |
1399 | + | |
1400 | - | else |
1400 | + | |
1401 | - | local i = 0 |
1401 | + | |
1402 | function clerp(a,b,t) | |
1403 | local qa = {QuaternionFromCFrame(a)} | |
1404 | local qb = {QuaternionFromCFrame(b)} | |
1405 | - | if m22 > (i == 0 and m00 or m11) then |
1405 | + | local ax, ay, az = a.x, a.y, a.z |
1406 | - | i = 2 |
1406 | + | |
1407 | - | end |
1407 | + | |
1408 | - | if i == 0 then |
1408 | + | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) |
1409 | - | local s = math.sqrt(m00-m11-m22+1) |
1409 | + | |
1410 | - | local recip = 0.5/s |
1410 | + | |
1411 | - | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip |
1411 | + | function QuaternionFromCFrame(cf) |
1412 | - | elseif i == 1 then |
1412 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
1413 | - | local s = math.sqrt(m11-m22-m00+1) |
1413 | + | local trace = m00 + m11 + m22 |
1414 | - | local recip = 0.5/s |
1414 | + | if trace > 0 then |
1415 | - | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip |
1415 | + | local s = math.sqrt(1 + trace) |
1416 | - | elseif i == 2 then |
1416 | + | local recip = 0.5/s |
1417 | - | local s = math.sqrt(m22-m00-m11+1) |
1417 | + | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 |
1418 | - | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip |
1418 | + | |
1419 | - | end |
1419 | + | local i = 0 |
1420 | - | end |
1420 | + | |
1421 | i = 1 | |
1422 | end | |
1423 | - | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
1423 | + | if m22 > (i == 0 and m00 or m11) then |
1424 | - | local xs, ys, zs = x + x, y + y, z + z |
1424 | + | i = 2 |
1425 | - | local wx, wy, wz = w*xs, w*ys, w*zs |
1425 | + | |
1426 | - | local xx = x*xs |
1426 | + | if i == 0 then |
1427 | - | local xy = x*ys |
1427 | + | local s = math.sqrt(m00-m11-m22+1) |
1428 | - | local xz = x*zs |
1428 | + | local recip = 0.5/s |
1429 | - | local yy = y*ys |
1429 | + | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip |
1430 | - | local yz = y*zs |
1430 | + | elseif i == 1 then |
1431 | - | local zz = z*zs |
1431 | + | local s = math.sqrt(m11-m22-m00+1) |
1432 | - | 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)) |
1432 | + | local recip = 0.5/s |
1433 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1434 | elseif i == 2 then | |
1435 | - | function QuaternionSlerp(a, b, t) |
1435 | + | local s = math.sqrt(m22-m00-m11+1) |
1436 | - | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] |
1436 | + | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip |
1437 | - | local startInterp, finishInterp; |
1437 | + | |
1438 | - | if cosTheta >= 0.0001 then |
1438 | + | |
1439 | - | if (1 - cosTheta) > 0.0001 then |
1439 | + | |
1440 | - | local theta = math.acos(cosTheta) |
1440 | + | |
1441 | - | local invSinTheta = 1/math.sin(theta) |
1441 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
1442 | - | startInterp = math.sin((1-t)*theta)*invSinTheta |
1442 | + | local xs, ys, zs = x + x, y + y, z + z |
1443 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1444 | - | else |
1444 | + | local xx = x*xs |
1445 | - | startInterp = 1-t |
1445 | + | local xy = x*ys |
1446 | - | finishInterp = t |
1446 | + | local xz = x*zs |
1447 | - | end |
1447 | + | local yy = y*ys |
1448 | - | else |
1448 | + | local yz = y*zs |
1449 | - | if (1+cosTheta) > 0.0001 then |
1449 | + | local zz = z*zs |
1450 | - | local theta = math.acos(-cosTheta) |
1450 | + | 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)) |
1451 | - | local invSinTheta = 1/math.sin(theta) |
1451 | + | |
1452 | - | startInterp = math.sin((t-1)*theta)*invSinTheta |
1452 | + | |
1453 | - | finishInterp = math.sin(t*theta)*invSinTheta |
1453 | + | function QuaternionSlerp(a, b, t) |
1454 | - | else |
1454 | + | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] |
1455 | - | startInterp = t-1 |
1455 | + | local startInterp, finishInterp; |
1456 | - | finishInterp = t |
1456 | + | if cosTheta >= 0.0001 then |
1457 | - | end |
1457 | + | if (1 - cosTheta) > 0.0001 then |
1458 | - | end |
1458 | + | local theta = math.acos(cosTheta) |
1459 | - | 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 |
1459 | + | local invSinTheta = 1/math.sin(theta) |
1460 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1461 | finishInterp = math.sin(t*theta)*invSinTheta | |
1462 | else | |
1463 | startInterp = 1-t | |
1464 | finishInterp = t | |
1465 | end | |
1466 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
1466 | + | |
1467 | - | end |
1467 | + | if (1+cosTheta) > 0.0001 then |
1468 | local theta = math.acos(-cosTheta) | |
1469 | local invSinTheta = 1/math.sin(theta) | |
1470 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1471 | finishInterp = math.sin(t*theta)*invSinTheta | |
1472 | else | |
1473 | startInterp = t-1 | |
1474 | finishInterp = t | |
1475 | end | |
1476 | end | |
1477 | 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 | |
1478 | end | |
1479 | ||
1480 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1481 | ||
1482 | ||
1483 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1484 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1485 | end | |
1486 | ||
1487 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1488 | if hit.Parent==nil then | |
1489 | return | |
1490 | - | -- hs(hit,1.2) |
1490 | + | |
1491 | h=hit.Parent:FindFirstChild("Humanoid") | |
1492 | for _,v in pairs(hit.Parent:children()) do | |
1493 | if v:IsA("Humanoid") then | |
1494 | h=v | |
1495 | end | |
1496 | end | |
1497 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
1498 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
1499 | end | |
1500 | if hit.Parent.className=="Hat" then | |
1501 | hit=hit.Parent.Parent:findFirstChild("Head") | |
1502 | end | |
1503 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1504 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
1505 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1506 | return | |
1507 | end]] | |
1508 | -- hs(hit,1.2) | |
1509 | c=Instance.new("ObjectValue") | |
1510 | c.Name="creator" | |
1511 | c.Value=game:service("Players").LocalPlayer | |
1512 | c.Parent=h | |
1513 | game:GetService("Debris"):AddItem(c,.5) | |
1514 | Damage=math.random(minim,maxim) | |
1515 | -- h:TakeDamage(Damage) | |
1516 | blocked=false | |
1517 | block=hit.Parent:findFirstChild("Block") | |
1518 | if block~=nil then | |
1519 | print(block.className) | |
1520 | if block.className=="NumberValue" then | |
1521 | if block.Value>0 then | |
1522 | - | showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller")) |
1522 | + | |
1523 | if decreaseblock==nil then | |
1524 | block.Value=block.Value-1 | |
1525 | - | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) |
1525 | + | |
1526 | end | |
1527 | end | |
1528 | if block.className=="IntValue" then | |
1529 | if block.Value>0 then | |
1530 | blocked=true | |
1531 | if decreaseblock~=nil then | |
1532 | block.Value=block.Value-1 | |
1533 | end | |
1534 | end | |
1535 | end | |
1536 | end | |
1537 | if blocked==false then | |
1538 | -- h:TakeDamage(Damage) | |
1539 | h.Health=h.Health-Damage | |
1540 | showDamage(hit.Parent,Damage,.2,BrickColor.new("Maroon")) | |
1541 | else | |
1542 | h.Health=h.Health-(Damage/2) | |
1543 | showDamage(hit.Parent,Damage/2,.2,BrickColor.new("Maroon")) | |
1544 | end | |
1545 | if Type=="Knockdown" then | |
1546 | hum=hit.Parent.Humanoid | |
1547 | hum.PlatformStand=true | |
1548 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1549 | - | so("http://www.roblox.com/asset/?id=314390675",hit,1,math.random(80,120)/100) |
1549 | + | |
1550 | HHumanoid.PlatformStand=false | |
1551 | end),hum) | |
1552 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
1553 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
1554 | local bodvol=Instance.new("BodyVelocity") | |
1555 | bodvol.velocity=angle*knockback | |
1556 | bodvol.P=5000 | |
1557 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1558 | bodvol.Parent=hit | |
1559 | rl=Instance.new("BodyAngularVelocity") | |
1560 | rl.P=3000 | |
1561 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1562 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1563 | rl.Parent=hit | |
1564 | game:GetService("Debris"):AddItem(bodvol,.5) | |
1565 | game:GetService("Debris"):AddItem(rl,.5) | |
1566 | elseif Type=="Normal" then | |
1567 | so("http://www.roblox.com/asset/?id=314390675",hit,1,math.random(80,120)/100) | |
1568 | vp=Instance.new("BodyVelocity") | |
1569 | vp.P=500 | |
1570 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1571 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1572 | if KnockbackType==1 then | |
1573 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
1574 | elseif KnockbackType==2 then | |
1575 | vp.velocity=Property.CFrame.lookVector*knockback | |
1576 | end | |
1577 | if knockback>0 then | |
1578 | vp.Parent=hit.Parent.Torso | |
1579 | end | |
1580 | game:GetService("Debris"):AddItem(vp,.5) | |
1581 | elseif Type=="Up" then | |
1582 | local bodyVelocity=Instance.new("BodyVelocity") | |
1583 | bodyVelocity.velocity=vt(0,60,0) | |
1584 | bodyVelocity.P=5000 | |
1585 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1586 | bodyVelocity.Parent=hit | |
1587 | - | coroutine.resume(coroutine.create(function(Part) |
1587 | + | |
1588 | - | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) |
1588 | + | |
1589 | rl.P=3000 | |
1590 | - | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) |
1590 | + | |
1591 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
1592 | rl.Parent=hit | |
1593 | game:GetService("Debris"):AddItem(rl,.5) | |
1594 | elseif Type=="Snare" then | |
1595 | bp=Instance.new("BodyPosition") | |
1596 | bp.P=2000 | |
1597 | bp.D=100 | |
1598 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1599 | bp.position=hit.Parent.Torso.Position | |
1600 | bp.Parent=hit.Parent.Torso | |
1601 | game:GetService("Debris"):AddItem(bp,1) | |
1602 | elseif Type=="Target" then | |
1603 | if Targetting==false then | |
1604 | ZTarget=hit.Parent.Torso | |
1605 | coroutine.resume(coroutine.create(function(Part) | |
1606 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
1607 | swait(5) | |
1608 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
1609 | end),ZTarget) | |
1610 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
1611 | targetgui=Instance.new("BillboardGui") | |
1612 | targetgui.Parent=ZTarget | |
1613 | targetgui.Size=UDim2.new(10,100,10,100) | |
1614 | targ=Instance.new("ImageLabel") | |
1615 | targ.Parent=targetgui | |
1616 | targ.BackgroundTransparency=1 | |
1617 | targ.Image="rbxassetid://4834067" | |
1618 | targ.Size=UDim2.new(1,0,1,0) | |
1619 | cam.CameraType="Scriptable" | |
1620 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1621 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
1622 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1623 | Targetting=true | |
1624 | RocketTarget=ZTarget | |
1625 | for i=1,Property do | |
1626 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
1627 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
1628 | swait() | |
1629 | end | |
1630 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
1631 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1632 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
1633 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
1634 | end | |
1635 | Targetting=false | |
1636 | RocketTarget=nil | |
1637 | targetgui.Parent=nil | |
1638 | cam.CameraType="Custom" | |
1639 | end | |
1640 | end | |
1641 | debounce=Instance.new("BoolValue") | |
1642 | debounce.Name="DebounceHit" | |
1643 | debounce.Parent=hit.Parent | |
1644 | debounce.Value=true | |
1645 | game:GetService("Debris"):AddItem(debounce,Delay) | |
1646 | c=Instance.new("ObjectValue") | |
1647 | c.Name="creator" | |
1648 | - | c.BrickColor=BrickColor.new("Bright red") |
1648 | + | |
1649 | c.Parent=h | |
1650 | game:GetService("Debris"):AddItem(c,.5) | |
1651 | CRIT=false | |
1652 | hitDeb=true | |
1653 | AttackPos=6 | |
1654 | end | |
1655 | end | |
1656 | ||
1657 | showDamage=function(Char,Dealt,du,Color) | |
1658 | m=Instance.new("Model") | |
1659 | m.Name=tostring(Dealt) | |
1660 | h=Instance.new("Humanoid") | |
1661 | h.Health=0 | |
1662 | h.MaxHealth=0 | |
1663 | h.Parent=m | |
1664 | c=Instance.new("Part") | |
1665 | c.Transparency=0 | |
1666 | c.BrickColor=BrickColor.new("Maroon") | |
1667 | c.Name="Head" | |
1668 | c.TopSurface=0 | |
1669 | c.BottomSurface=0 | |
1670 | c.formFactor="Plate" | |
1671 | c.Size=Vector3.new(1,.4,1) | |
1672 | ms=Instance.new("CylinderMesh") | |
1673 | ms.Scale=Vector3.new(.8,.8,.8) | |
1674 | if CRIT==true then | |
1675 | ms.Scale=Vector3.new(1,1.25,1) | |
1676 | end | |
1677 | ms.Parent=c | |
1678 | c.Reflectance=0 | |
1679 | Instance.new("BodyGyro").Parent=c | |
1680 | c.Parent=m | |
1681 | - | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) |
1681 | + | |
1682 | - | prt.Anchored = true |
1682 | + | |
1683 | - | prt.CFrame = cframe |
1683 | + | |
1684 | - | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) |
1684 | + | |
1685 | - | coroutine.resume(coroutine.create(function() |
1685 | + | |
1686 | - | for i = 0, 1, delay do |
1686 | + | |
1687 | - | swait() |
1687 | + | |
1688 | - | prt.Transparency = i |
1688 | + | |
1689 | - | msh.Scale = msh.Scale + vt(x2, y2, z2) |
1689 | + | |
1690 | - | end |
1690 | + | |
1691 | - | prt.Parent = nil |
1691 | + | |
1692 | - | end)) |
1692 | + | |
1693 | c.CanCollide=false | |
1694 | m.Parent=workspace | |
1695 | c.CanCollide=false | |
1696 | end | |
1697 | ||
1698 | function Shockwave2(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay) | |
1699 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1700 | prt.Anchored = true | |
1701 | prt.CFrame = cframe | |
1702 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1703 | coroutine.resume(coroutine.create(function() | |
1704 | for i = 0, 1, delay do | |
1705 | swait() | |
1706 | prt.Transparency = i | |
1707 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
1708 | end | |
1709 | prt.Parent = nil | |
1710 | end)) | |
1711 | end | |
1712 | ||
1713 | function attackone() | |
1714 | attack=true | |
1715 | for i=0,1,0.04 do | |
1716 | swait() | |
1717 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,8)*angles(math.rad(5),math.rad(0),math.rad(-30)),.1) | |
1718 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1719 | - | so("http://www.roblox.com/asset/?id=203691467",arm1hitbox,1,1) |
1719 | + | |
1720 | - | con1=arm1hitbox.Touched:connect(function(hit) Damagefunc(hit,2000,2000,math.random(2000,2000),"Normal",RootPart,.2,1) end) |
1720 | + | |
1721 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1722 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1723 | - | Shockwave(BrickColor.new("Cyan"),cf(arm1hitbox.Position),1,1,1,1,1,1,0.075) |
1723 | + | |
1724 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,4)*angles(math.rad(60),math.rad(90),math.rad(-90)),0.2) | |
1725 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1726 | arm1p4w.C0=clerp(arm1p4w.C0,cf(1.5,3,0)*angles(math.rad(0),math.rad(0),math.rad(-120)),0.2) | |
1727 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1728 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1729 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.2) | |
1730 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1731 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1732 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2) | |
1733 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1734 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1735 | ||
1736 | end | |
1737 | so("http://www.roblox.com/asset/?id=203691467",arm1hitbox,1,1) | |
1738 | con1=arm1hitbox.Touched:connect(function(hit) Damagefunc(hit,2000,2000,math.random(2000,2000),"Normal",RootPart,.2,1) end) | |
1739 | for i=0,1,0.2 do | |
1740 | swait() | |
1741 | Shockwave(BrickColor.("Maroon"),cf(arm1hitbox.Position),1,1,1,1,1,1,0.075) | |
1742 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,8)*angles(math.rad(5),math.rad(0),math.rad(30)),.2) | |
1743 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1744 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.3) | |
1745 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-130)), 0.2) | |
1746 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1747 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1748 | arm1pw.C0=clerp(arm1pw.C0,cf(-2.5,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
1749 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,-4)*angles(math.rad(-60),math.rad(90),math.rad(-90)),0.3) | |
1750 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1751 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1752 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1753 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1754 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.2) | |
1755 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1756 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1757 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2) | |
1758 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1759 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1760 | end | |
1761 | for i=0,1,0.04 do | |
1762 | swait() | |
1763 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,8)*angles(math.rad(5),math.rad(0),math.rad(30)),.2) | |
1764 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1765 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.3) | |
1766 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-130)), 0.2) | |
1767 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1768 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1769 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
1769 | + | |
1770 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,-4)*angles(math.rad(-60),math.rad(90),math.rad(-90)),0.3) | |
1771 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1772 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1773 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1774 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1775 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.2) | |
1776 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1777 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1778 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2) | |
1779 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1780 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1781 | end | |
1782 | con1:disconnect() | |
1783 | attack=false | |
1784 | end | |
1785 | ||
1786 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1787 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1788 | end | |
1789 | ||
1790 | function attacktwo() | |
1791 | attack=true | |
1792 | for i=0,1,0.04 do | |
1793 | swait() | |
1794 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1) | |
1795 | - | so("http://www.roblox.com/asset/?id=203691467",arm1hitbox,1,0.8) |
1795 | + | |
1796 | - | con1=arm2hitbox.Touched:connect(function(hit) Damagefunc(hit,2000,2000,math.random(2000,2000),"Normal",RootPart,.2,1) end) |
1796 | + | |
1797 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2) | |
1798 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1799 | - | Shockwave(BrickColor.new("Cyan"),cf(arm2hitbox.Position),1,1,1,1,1,1,0.075) |
1799 | + | |
1800 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1801 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1802 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1803 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2) | |
1804 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1805 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1806 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-2.5,0)*angles(math.rad(0),math.rad(120),math.rad(-90)),0.2) | |
1807 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1808 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1809 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-1,3,0)*angles(math.rad(0),math.rad(0),math.rad(-75)),0.2) | |
1810 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1811 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1812 | end | |
1813 | so("http://www.roblox.com/asset/?id=203691467",arm1hitbox,1,0.8) | |
1814 | con1=arm2hitbox.Touched:connect(function(hit) Damagefunc(hit,2000,2000,math.random(2000,2000),"Normal",RootPart,.2,1) end) | |
1815 | for i=0,1,0.2 do | |
1816 | swait() | |
1817 | Shockwave(BrickColor.new("Maroon"),cf(arm2hitbox.Position),1,1,1,1,1,1,0.075) | |
1818 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(20),math.rad(0),math.rad(-45)),.2) | |
1819 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1820 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.2) | |
1821 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2) | |
1822 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1823 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1824 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1825 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1826 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1827 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2) | |
1828 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1829 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1830 | arm2pw.C0=clerp(arm2pw.C0,cf(1.5,-3.5,-5)*angles(math.rad(-30),math.rad(0),math.rad(-90)),0.3) | |
1831 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.3) | |
1832 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1833 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
1834 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1835 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
1836 | end | |
1837 | Humanoid.WalkSpeed = 64 | |
1838 | local hit,pos=rayCast(arm2hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1839 | if hit~=nil then | |
1840 | swait() | |
1841 | print("touched") | |
1842 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Maroon"),"Effect",vt()) | |
1843 | ref.Anchored=true | |
1844 | ref.CFrame=cf(pos) | |
1845 | game:GetService("Debris"):AddItem(ref,3) | |
1846 | so("http://www.roblox.com/asset/?id=199145477",arm2hitbox,1,math.random(60,140)/100) | |
1847 | Shockwave2(BrickColor.new("Cyan"),cf(pos),0.1,0.1,0.1,1,1,1,0.05) | |
1848 | end | |
1849 | for i=0,1,0.04 do | |
1850 | swait() | |
1851 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(20),math.rad(0),math.rad(-45)),.2) | |
1852 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1853 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(100)), 0.2) | |
1854 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-100)), 0.2) | |
1855 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1856 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1857 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
1858 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.2) | |
1859 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1860 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.2) | |
1861 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1862 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.2) | |
1863 | arm2pw.C0=clerp(arm2pw.C0,cf(1.5,-3.5,-5)*angles(math.rad(-20),math.rad(0),math.rad(-90)),0.3) | |
1864 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.3) | |
1865 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1866 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
1867 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1868 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
1869 | end | |
1870 | Humanoid.WalkSpeed = 64 | |
1871 | con1:disconnect() | |
1872 | attack=false | |
1873 | end | |
1874 | ||
1875 | lasereye=1 | |
1876 | ||
1877 | - | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) |
1877 | + | |
1878 | - | prt.Anchored = true |
1878 | + | |
1879 | - | prt.CFrame = cframe |
1879 | + | |
1880 | - | prt.Material = "Neon" |
1880 | + | |
1881 | - | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) |
1881 | + | |
1882 | - | game:GetService("Debris"):AddItem(prt, 2) |
1882 | + | |
1883 | - | coroutine.resume(coroutine.create(function(Part, Mesh) |
1883 | + | |
1884 | - | for i = 0, 1, delay do |
1884 | + | |
1885 | - | swait() |
1885 | + | |
1886 | - | Part.CFrame = Part.CFrame |
1886 | + | |
1887 | - | Part.Transparency = i |
1887 | + | |
1888 | - | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) |
1888 | + | |
1889 | - | end |
1889 | + | |
1890 | - | Part.Parent = nil |
1890 | + | |
1891 | - | end), prt, msh) |
1891 | + | |
1892 | end) | |
1893 | ||
1894 | function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1895 | - | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) |
1895 | + | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) |
1896 | - | prt.Anchored = true |
1896 | + | prt.Anchored = true |
1897 | - | prt.CFrame = cframe |
1897 | + | prt.CFrame = cframe |
1898 | - | prt.Material = "Neon" |
1898 | + | prt.Material = "Neon" |
1899 | - | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1)) |
1899 | + | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) |
1900 | - | game:GetService("Debris"):AddItem(prt, 2) |
1900 | + | game:GetService("Debris"):AddItem(prt, 2) |
1901 | - | coroutine.resume(coroutine.create(function(Part, Mesh) |
1901 | + | coroutine.resume(coroutine.create(function(Part, Mesh) |
1902 | - | for i = 0, 1, delay do |
1902 | + | for i = 0, 1, delay do |
1903 | - | swait() |
1903 | + | swait() |
1904 | - | Part.CFrame = Part.CFrame |
1904 | + | Part.CFrame = Part.CFrame |
1905 | - | Part.Transparency = i |
1905 | + | Part.Transparency = i |
1906 | - | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) |
1906 | + | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) |
1907 | - | end |
1907 | + | |
1908 | - | Part.Parent = nil |
1908 | + | Part.Parent = nil |
1909 | - | end), prt, msh) |
1909 | + | end), prt, msh) |
1910 | end | |
1911 | ||
1912 | - | MMouse=mouse |
1912 | + | |
1913 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1914 | prt.Anchored = true | |
1915 | prt.CFrame = cframe | |
1916 | prt.Material = "Neon" | |
1917 | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1918 | game:GetService("Debris"):AddItem(prt, 2) | |
1919 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1920 | for i = 0, 1, delay do | |
1921 | - | local mag=(eyep.Position-pos).magnitude |
1921 | + | swait() |
1922 | - | Laser(BrickColor.new("Cyan"),CFrame.new((eyep.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,0.5,0,0.5,0.1) |
1922 | + | Part.CFrame = Part.CFrame |
1923 | Part.Transparency = i | |
1924 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1925 | end | |
1926 | Part.Parent = nil | |
1927 | end), prt, msh) | |
1928 | end | |
1929 | - | Shockwave(BrickColor.new("Cyan"),cf(pos),1,1,1,1,1,1,0.075) |
1929 | + | |
1930 | MMouse=mouse | |
1931 | LaserTarget=RootPart | |
1932 | used=false | |
1933 | ||
1934 | function LaserBlaster() | |
1935 | used=true | |
1936 | so("http://www.roblox.com/asset/?id=156572165",eyep,1,math.random(60,80)/100) | |
1937 | local MouseLook=cf((eyep.Position+MMouse.Hit.p)/2,MMouse.Hit.p) | |
1938 | local hit,pos = rayCast(eyep.Position,MouseLook.lookVector,999,LaserTarget.Parent) | |
1939 | local mag=(eyep.Position-pos).magnitude | |
1940 | Laser(BrickColor.new("Maroon"),CFrame.new((eyep.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,0.5,0,0.5,0.1) | |
1941 | if hit~=nil then | |
1942 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Maroon"),"Effect",vt()) | |
1943 | ref.Anchored=true | |
1944 | ref.CFrame=cf(pos) | |
1945 | game:GetService("Debris"):AddItem(ref,1) | |
1946 | so("http://www.roblox.com/asset/?id=142082166",ref,1,math.random(80,120)/100) | |
1947 | Shockwave(BrickColor.new("Maroon"),cf(pos),1,1,1,1,1,1,0.075) | |
1948 | Damagefunc(hit,20,40,0,"Normal",RootPart,0) | |
1949 | end | |
1950 | for i=0,1,0.2 do | |
1951 | swait() | |
1952 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,2,12)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1953 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1954 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1955 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1956 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1957 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1958 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1959 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1960 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1961 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1962 | - | local mag=(eyep2.Position-pos).magnitude |
1962 | + | |
1963 | - | Laser(BrickColor.new("Cyan"),CFrame.new((eyep2.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,0.5,0,0.5,0.1) |
1963 | + | |
1964 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1965 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1966 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1967 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1968 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1969 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
1970 | - | Shockwave(BrickColor.new("Cyan"),cf(pos),1,1,1,1,1,1,0.075) |
1970 | + | |
1971 | wait(0.25) | |
1972 | used=false | |
1973 | end | |
1974 | ||
1975 | function LaserBlaster2() | |
1976 | used=true | |
1977 | so("http://www.roblox.com/asset/?id=156572165",eyep2,1,math.random(60,80)/100) | |
1978 | local MouseLook=cf((eyep2.Position+MMouse.Hit.p)/2,MMouse.Hit.p) | |
1979 | local hit,pos = rayCast(eyep2.Position,MouseLook.lookVector,999,LaserTarget.Parent) | |
1980 | local mag=(eyep2.Position-pos).magnitude | |
1981 | Laser(BrickColor.new("Maroon"),CFrame.new((eyep2.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,0.5,0,0.5,0.1) | |
1982 | if hit~=nil then | |
1983 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Maroon"),"Effect",vt()) | |
1984 | ref.Anchored=true | |
1985 | ref.CFrame=cf(pos) | |
1986 | game:GetService("Debris"):AddItem(ref,1) | |
1987 | so("http://www.roblox.com/asset/?id=142082166",ref,1,math.random(80,120)/100) | |
1988 | Shockwave(BrickColor.new("Maroon"),cf(pos),1,1,1,1,1,1,0.075) | |
1989 | Damagefunc(hit,20,40,0,"Normal",RootPart,0) | |
1990 | end | |
1991 | for i=0,1,0.2 do | |
1992 | swait() | |
1993 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,2,12)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1994 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1995 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1996 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1997 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
1998 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
1999 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2000 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2001 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2002 | - | so("http://www.roblox.com/asset/?id=136007472",eyep,1,math.random(60,80)/100) |
2002 | + | |
2003 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2004 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2005 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2006 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2007 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2008 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2009 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2010 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2011 | end | |
2012 | - | local mag=(eyep.Position-pos).magnitude |
2012 | + | |
2013 | - | Laser(BrickColor.new("Cyan"),CFrame.new((eyep.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,2.5,0,2.5,0.05) |
2013 | + | |
2014 | end | |
2015 | ||
2016 | used2=false | |
2017 | ||
2018 | function GiantLaserBlaster() | |
2019 | used2=true | |
2020 | - | Shockwave(BrickColor.new("Cyan"),cf(pos),2.5,2.5,2.5,2.5,2.5,2.5,0.025) |
2020 | + | so("http://www.roblox.com/asset/?id=136007472",eyep,1,math.random(60,80)/100) |
2021 | eyeeffect.Enabled = true | |
2022 | wait(2.6) | |
2023 | eyeeffect.Enabled = false | |
2024 | so("http://www.roblox.com/asset/?id=419268760",eyep,1,math.random(75,125)/100) | |
2025 | so("http://www.roblox.com/asset/?id=419268760",eyep,1,math.random(75,125)/100) | |
2026 | so("http://www.roblox.com/asset/?id=419268760",eyep,1,math.random(75,125)/100) | |
2027 | so("http://www.roblox.com/asset/?id=419268760",eyep,1,math.random(75,125)/100) | |
2028 | local MouseLook=cf((eyep.Position+MMouse.Hit.p)/2,MMouse.Hit.p) | |
2029 | local hit,pos = rayCast(eyep.Position,MouseLook.lookVector,999,LaserTarget.Parent) | |
2030 | local mag=(eyep.Position-pos).magnitude | |
2031 | Laser(BrickColor.new("Maroon"),CFrame.new((eyep.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,2.5,0,2.5,0.05) | |
2032 | if hit~=nil then | |
2033 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Maroon"),"Effect",vt()) | |
2034 | ref.Anchored=true | |
2035 | ref.CFrame=cf(pos) | |
2036 | game:GetService("Debris"):AddItem(ref,1) | |
2037 | so("http://www.roblox.com/asset/?id=142082166",ref,1,math.random(80,120)/100) | |
2038 | Shockwave(BrickColor.new("Maroon"),cf(pos),2.5,2.5,2.5,2.5,2.5,2.5,0.025) | |
2039 | Damagefunc(hit,999999,999999,0,"Normal",RootPart,0) | |
2040 | end | |
2041 | for i=0,1,0.1 do | |
2042 | swait() | |
2043 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,8,12)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2044 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2045 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2046 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2047 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2048 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2049 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2050 | - | so("http://www.roblox.com/asset/?id=136007472",eyep2,1,math.random(60,80)/100) |
2050 | + | |
2051 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2052 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2053 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2054 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2055 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2056 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2057 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2058 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2059 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2060 | - | local mag=(eyep2.Position-pos).magnitude |
2060 | + | |
2061 | - | Laser(BrickColor.new("Cyan"),CFrame.new((eyep2.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,2.5,0,2.5,0.05) |
2061 | + | |
2062 | wait(3) | |
2063 | used2=false | |
2064 | end | |
2065 | ||
2066 | function GiantLaserBlaster2() | |
2067 | used2=true | |
2068 | - | Shockwave(BrickColor.new("Cyan"),cf(pos),2.5,2.5,2.5,2.5,2.5,2.5,0.025) |
2068 | + | so("http://www.roblox.com/asset/?id=136007472",eyep2,1,math.random(60,80)/100) |
2069 | eyeeffect2.Enabled = true | |
2070 | wait(2.6) | |
2071 | eyeeffect2.Enabled = false | |
2072 | so("http://www.roblox.com/asset/?id=419268760",eyep2,1,math.random(75,125)/100) | |
2073 | so("http://www.roblox.com/asset/?id=419268760",eyep2,1,math.random(75,125)/100) | |
2074 | so("http://www.roblox.com/asset/?id=419268760",eyep2,1,math.random(75,125)/100) | |
2075 | so("http://www.roblox.com/asset/?id=419268760",eyep2,1,math.random(75,125)/100) | |
2076 | local MouseLook=cf((eyep2.Position+MMouse.Hit.p)/2,MMouse.Hit.p) | |
2077 | local hit,pos = rayCast(eyep2.Position,MouseLook.lookVector,999,LaserTarget.Parent) | |
2078 | local mag=(eyep2.Position-pos).magnitude | |
2079 | Laser(BrickColor.new("Maroon"),CFrame.new((eyep2.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*2,1,2.5,0,2.5,0.05) | |
2080 | if hit~=nil then | |
2081 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"Effect",vt()) | |
2082 | ref.Anchored=true | |
2083 | ref.CFrame=cf(pos) | |
2084 | game:GetService("Debris"):AddItem(ref,1) | |
2085 | so("http://www.roblox.com/asset/?id=142082166",ref,1,math.random(80,120)/100) | |
2086 | Shockwave(BrickColor.new("Maroon"),cf(pos),2.5,2.5,2.5,2.5,2.5,2.5,0.025) | |
2087 | Damagefunc(hit,1500,2000,0,"Normal",RootPart,0) | |
2088 | end | |
2089 | for i=0,1,0.1 do | |
2090 | swait() | |
2091 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,8,12)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2092 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2093 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2094 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2095 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2096 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2097 | - | if rest==false then |
2097 | + | |
2098 | - | print("You are now resting.") |
2098 | + | |
2099 | - | rest=true |
2099 | + | |
2100 | - | sleep=true |
2100 | + | |
2101 | - | attack=true |
2101 | + | |
2102 | - | emitter.Enabled = false |
2102 | + | |
2103 | - | particleemitter.Enabled = false |
2103 | + | |
2104 | - | for i=0,1,0.15 do |
2104 | + | |
2105 | - | wait() |
2105 | + | |
2106 | - | Humanoid.CameraOffset = Vector3.new(0, 12.5-12.5*i, 0) |
2106 | + | |
2107 | - | music.Volume = 0.5 |
2107 | + | |
2108 | - | eyep2mesh.Scale = Vector3.new(3.5,3.5-3.4*i,2) |
2108 | + | |
2109 | - | eyepmesh.Scale = Vector3.new(3.5,3.5-3.4*i,2) |
2109 | + | |
2110 | - | end |
2110 | + | |
2111 | - | music.Volume = 0.5 |
2111 | + | |
2112 | - | Humanoid.CameraOffset = Vector3.new(0, 0, 0) |
2112 | + | |
2113 | - | attack=false |
2113 | + | |
2114 | - | Humanoid.WalkSpeed = 0 |
2114 | + | |
2115 | - | elseif rest==true then |
2115 | + | if rest==false then |
2116 | - | print("You are now awake.") |
2116 | + | print("You are now resting.") |
2117 | - | rest=false |
2117 | + | rest=true |
2118 | - | attack=true |
2118 | + | sleep=true |
2119 | - | sleep=false |
2119 | + | attack=true |
2120 | - | for i=0,1,0.15 do |
2120 | + | emitter.Enabled = false |
2121 | - | wait() |
2121 | + | particleemitter.Enabled = false |
2122 | - | Humanoid.CameraOffset = Vector3.new(0, 0+12.5*i, 0) |
2122 | + | for i=0,1,0.15 do |
2123 | - | music.Volume = 0.5 |
2123 | + | wait() |
2124 | - | eyep2mesh.Scale = Vector3.new(3.5,0.2+3.4*i,2) |
2124 | + | Humanoid.CameraOffset = Vector3.new(0, 12.5-12.5*i, 0) |
2125 | - | eyepmesh.Scale = Vector3.new(3.5,0.2+3.4*i,2) |
2125 | + | music.Volume = 0.5 |
2126 | - | end |
2126 | + | eyep2mesh.Scale = Vector3.new(3.5,3.5-3.4*i,2) |
2127 | - | emitter.Enabled = true |
2127 | + | eyepmesh.Scale = Vector3.new(3.5,3.5-3.4*i,2) |
2128 | - | particleemitter.Enabled = true |
2128 | + | |
2129 | - | Humanoid.WalkSpeed = 20 |
2129 | + | music.Volume = 0.5 |
2130 | - | music.Volume = 0.5 |
2130 | + | Humanoid.CameraOffset = Vector3.new(0, 0, 0) |
2131 | - | Humanoid.CameraOffset = Vector3.new(0, 12.5, 0) |
2131 | + | attack=false |
2132 | - | attack=false |
2132 | + | Humanoid.WalkSpeed = 0 |
2133 | - | end |
2133 | + | elseif rest==true then |
2134 | print("You are now awake.") | |
2135 | rest=false | |
2136 | attack=true | |
2137 | sleep=false | |
2138 | for i=0,1,0.15 do | |
2139 | - | if sphere==true then |
2139 | + | wait() |
2140 | - | music:Stop() |
2140 | + | Humanoid.CameraOffset = Vector3.new(0, 0+12.5*i, 0) |
2141 | - | music2:Play() |
2141 | + | music.Volume = 0.5 |
2142 | - | rawr:Play() |
2142 | + | eyep2mesh.Scale = Vector3.new(3.5,0.2+3.4*i,2) |
2143 | - | particleemitter2.Enabled=true |
2143 | + | eyepmesh.Scale = Vector3.new(3.5,0.2+3.4*i,2) |
2144 | - | particleemitter3.Enabled=true |
2144 | + | |
2145 | - | particleemitter4.Enabled=true |
2145 | + | emitter.Enabled = true |
2146 | - | particleemitter5.Enabled=true |
2146 | + | particleemitter.Enabled = true |
2147 | - | particleemitter6.Enabled=true |
2147 | + | Humanoid.WalkSpeed = 20 |
2148 | - | particleemitter7.Enabled=true |
2148 | + | music.Volume = 0.5 |
2149 | - | particleemitter8.Enabled=true |
2149 | + | Humanoid.CameraOffset = Vector3.new(0, 12.5, 0) |
2150 | - | particleemitter9.Enabled=true |
2150 | + | attack=false |
2151 | - | particleemitter10.Enabled=true |
2151 | + | |
2152 | - | particleemitter11.Enabled=true |
2152 | + | |
2153 | - | Humanoid.WalkSpeed = 64 |
2153 | + | |
2154 | - | Shockwave(BrickColor.new("Cyan"),cf(Torso.Position),4,4,4,6,6,6,0.025) |
2154 | + | |
2155 | - | so("http://www.roblox.com/asset/?id=340722848",Character,0.5,1.2) |
2155 | + | |
2156 | - | sphere=false |
2156 | + | |
2157 | - | elseif sphere==false then |
2157 | + | if sphere==true then |
2158 | - | music2:Stop() |
2158 | + | music:Stop() |
2159 | - | music:Play() |
2159 | + | music2:Play() |
2160 | - | particleemitter2.Enabled=false |
2160 | + | rawr:Play() |
2161 | - | particleemitter3.Enabled=false |
2161 | + | particleemitter2.Enabled=true |
2162 | - | particleemitter4.Enabled=false |
2162 | + | particleemitter3.Enabled=true |
2163 | - | particleemitter5.Enabled=false |
2163 | + | particleemitter4.Enabled=true |
2164 | - | particleemitter6.Enabled=false |
2164 | + | particleemitter5.Enabled=true |
2165 | - | particleemitter7.Enabled=false |
2165 | + | particleemitter6.Enabled=true |
2166 | - | particleemitter8.Enabled=false |
2166 | + | particleemitter7.Enabled=true |
2167 | - | particleemitter9.Enabled=false |
2167 | + | particleemitter8.Enabled=true |
2168 | - | particleemitter10.Enabled=false |
2168 | + | particleemitter9.Enabled=true |
2169 | - | particleemitter11.Enabled=false |
2169 | + | particleemitter10.Enabled=true |
2170 | - | Humanoid.WalkSpeed = 20 |
2170 | + | particleemitter11.Enabled=true |
2171 | - | Shockwave(BrickColor.new("Cyan"),cf(Torso.Position),4,4,4,6,6,6,0.025) |
2171 | + | Humanoid.WalkSpeed = 64 |
2172 | - | so("http://www.roblox.com/asset/?id=340722848",Character,0.5,0.8) |
2172 | + | Shockwave(BrickColor.new("Maroon"),cf(Torso.Position),4,4,4,6,6,6,0.025) |
2173 | - | sphere=true |
2173 | + | so("http://www.roblox.com/asset/?id=340722848",Character,0.5,1.2) |
2174 | - | end |
2174 | + | sphere=false |
2175 | elseif sphere==false then | |
2176 | music2:Stop() | |
2177 | music:Play() | |
2178 | particleemitter2.Enabled=false | |
2179 | particleemitter3.Enabled=false | |
2180 | - | if aura==false then |
2180 | + | particleemitter4.Enabled=false |
2181 | - | Shockwave(BrickColor.new("Institutional white"),cf(Torso.Position),16,16,16,10,10,10,0.025) |
2181 | + | particleemitter5.Enabled=false |
2182 | - | so("http://www.roblox.com/asset/?id=340722848",Torso,1,1.1) |
2182 | + | particleemitter6.Enabled=false |
2183 | - | ghostp.Transparency = 0.8 |
2183 | + | particleemitter7.Enabled=false |
2184 | - | ghostp2.Transparency = 0.85 |
2184 | + | particleemitter8.Enabled=false |
2185 | - | ghostp3.Transparency = 0.9 |
2185 | + | particleemitter9.Enabled=false |
2186 | - | ghostp4.Transparency = 0.95 |
2186 | + | particleemitter10.Enabled=false |
2187 | - | ghostp5.Transparency = 0.75 |
2187 | + | particleemitter11.Enabled=false |
2188 | - | ghostp6.Transparency = 0.825 |
2188 | + | Humanoid.WalkSpeed = 20 |
2189 | - | ghostp7.Transparency = 0.875 |
2189 | + | Shockwave(BrickColor.new("Maroon"),cf(Torso.Position),4,4,4,6,6,6,0.025) |
2190 | - | ghostp8.Transparency = 0.925 |
2190 | + | so("http://www.roblox.com/asset/?id=340722848",Character,0.5,0.8) |
2191 | - | aura=true |
2191 | + | sphere=true |
2192 | - | elseif aura==true then |
2192 | + | |
2193 | - | Shockwave(BrickColor.new("Institutional white"),cf(Torso.Position),16,16,16,10,10,10,0.025) |
2193 | + | |
2194 | - | so("http://www.roblox.com/asset/?id=340722848",Torso,1,0.9) |
2194 | + | |
2195 | - | ghostp.Transparency = 1 |
2195 | + | |
2196 | - | ghostp2.Transparency = 1 |
2196 | + | |
2197 | - | ghostp3.Transparency = 1 |
2197 | + | |
2198 | - | ghostp4.Transparency = 1 |
2198 | + | if aura==false then |
2199 | - | ghostp5.Transparency = 1 |
2199 | + | Shockwave(BrickColor.new("Maroon"),cf(Torso.Position),16,16,16,10,10,10,0.025) |
2200 | - | ghostp6.Transparency = 1 |
2200 | + | so("http://www.roblox.com/asset/?id=340722848",Torso,1,1.1) |
2201 | - | ghostp7.Transparency = 1 |
2201 | + | ghostp.Transparency = 0.8 |
2202 | - | ghostp8.Transparency = 1 |
2202 | + | ghostp2.Transparency = 0.85 |
2203 | - | aura=false |
2203 | + | ghostp3.Transparency = 0.9 |
2204 | - | end |
2204 | + | ghostp4.Transparency = 0.95 |
2205 | - | while aura==true do |
2205 | + | ghostp5.Transparency = 0.75 |
2206 | - | for i=0,1,0.05 do |
2206 | + | ghostp6.Transparency = 0.825 |
2207 | - | wait() |
2207 | + | ghostp7.Transparency = 0.875 |
2208 | - | ghostw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(45+360*i),math.rad(0)) |
2208 | + | ghostp8.Transparency = 0.925 |
2209 | - | ghostw2.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90+360*i),math.rad(0)) |
2209 | + | aura=true |
2210 | - | ghostw3.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(135+360*i),math.rad(0)) |
2210 | + | elseif aura==true then |
2211 | - | ghostw4.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(180+360*i),math.rad(0)) |
2211 | + | Shockwave(BrickColor.new("Maroon"),cf(Torso.Position),16,16,16,10,10,10,0.025) |
2212 | - | ghost5w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225+360*i),math.rad(0)) |
2212 | + | so("http://www.roblox.com/asset/?id=340722848",Torso,1,0.9) |
2213 | - | ghost6w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(270+360*i),math.rad(0)) |
2213 | + | ghostp.Transparency = 1 |
2214 | - | ghost7w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(315+360*i),math.rad(0)) |
2214 | + | ghostp2.Transparency = 1 |
2215 | - | ghost8w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(360+360*i),math.rad(0)) |
2215 | + | ghostp3.Transparency = 1 |
2216 | - | end |
2216 | + | ghostp4.Transparency = 1 |
2217 | - | end |
2217 | + | ghostp5.Transparency = 1 |
2218 | ghostp6.Transparency = 1 | |
2219 | ghostp7.Transparency = 1 | |
2220 | ghostp8.Transparency = 1 | |
2221 | aura=false | |
2222 | end | |
2223 | while aura==true do | |
2224 | for i=0,1,0.05 do | |
2225 | wait() | |
2226 | ghostw.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(45+360*i),math.rad(0)) | |
2227 | ghostw2.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90+360*i),math.rad(0)) | |
2228 | ghostw3.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(135+360*i),math.rad(0)) | |
2229 | ghostw4.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(180+360*i),math.rad(0)) | |
2230 | ghost5w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225+360*i),math.rad(0)) | |
2231 | ghost6w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(270+360*i),math.rad(0)) | |
2232 | ghost7w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(315+360*i),math.rad(0)) | |
2233 | - | k=k:lower() |
2233 | + | ghost8w.C0=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(360+360*i),math.rad(0)) |
2234 | - | if k=='r' and attack==false and sphere==true and aura==false then |
2234 | + | |
2235 | - | Hibernation() |
2235 | + | |
2236 | - | end |
2236 | + | |
2237 | - | if k=='f' and used2==false and sphere==true and rest==false then |
2237 | + | |
2238 | - | ShootingTheEyes() |
2238 | + | |
2239 | - | end |
2239 | + | |
2240 | - | if k=='q' and rest==false and ragemodedelay==false then |
2240 | + | |
2241 | - | RageMode() |
2241 | + | |
2242 | - | ragemodedelay=true |
2242 | + | |
2243 | - | wait(3) |
2243 | + | |
2244 | - | ragemodedelay=false |
2244 | + | |
2245 | - | end |
2245 | + | |
2246 | - | if k=='e' and rest==false then |
2246 | + | |
2247 | - | TheWind() |
2247 | + | |
2248 | - | end |
2248 | + | |
2249 | ||
2250 | mouse.KeyDown:connect(function(k) | |
2251 | k=k:lower() | |
2252 | if k=='r' and attack==false and sphere==true and aura==false then | |
2253 | Hibernation() | |
2254 | end | |
2255 | if k=='f' and used2==false and sphere==true and rest==false then | |
2256 | ShootingTheEyes() | |
2257 | end | |
2258 | - | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude |
2258 | + | if k=='q' and rest==false and ragemodedelay==false then |
2259 | RageMode() | |
2260 | ragemodedelay=true | |
2261 | wait(3) | |
2262 | ragemodedelay=false | |
2263 | end | |
2264 | if k=='e' and rest==false then | |
2265 | TheWind() | |
2266 | end | |
2267 | end) | |
2268 | ||
2269 | local sine = 0 | |
2270 | local change = 1 | |
2271 | local val = 0 | |
2272 | - | if RootPart.Velocity.y > 1 and hitfloor==nil then |
2272 | + | |
2273 | while true do | |
2274 | swait() | |
2275 | sine = sine + change | |
2276 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2277 | local velderp=RootPart.Velocity.y | |
2278 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2279 | if equipped==true or equipped==false then | |
2280 | if attack==false then | |
2281 | idle=idle+1 | |
2282 | else | |
2283 | idle=0 | |
2284 | end | |
2285 | if idle>=500 then | |
2286 | if attack==false then | |
2287 | --Sheath() | |
2288 | end | |
2289 | end | |
2290 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2291 | Anim="Jump" | |
2292 | if attack==false and sphere==false then | |
2293 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/60))*angles(math.rad(-30),math.rad(0),math.rad(0)),.1) | |
2294 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2295 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(80-10*math.cos(sine/60))), 0.3) | |
2296 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-80+10*math.cos(sine/60))), 0.3) | |
2297 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2298 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2299 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2300 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2301 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2302 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2303 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2304 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2305 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
2306 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2307 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2308 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2309 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2310 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2311 | else | |
2312 | if attack==false and sphere==true then | |
2313 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/40))*angles(math.rad(-20),math.rad(0),math.rad(0)),.1) | |
2314 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2315 | - | elseif RootPart.Velocity.y < -1 and hitfloor==nil then |
2315 | + | |
2316 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2317 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2318 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2319 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2320 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2321 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2322 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2323 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2324 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2325 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2326 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2327 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2328 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2329 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2330 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2331 | end | |
2332 | end | |
2333 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2334 | Anim="Fall" | |
2335 | if attack==false and sphere==false then | |
2336 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/60))*angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
2337 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2338 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(120-10*math.cos(sine/60))), 0.3) | |
2339 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-120+10*math.cos(sine/60))), 0.3) | |
2340 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2341 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2342 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2343 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2344 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2345 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2346 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2347 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2348 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
2349 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2350 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2351 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2352 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2353 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2354 | else | |
2355 | if attack==false and sphere==true then | |
2356 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/40))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
2357 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2358 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2359 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2360 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2361 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2362 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2363 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2364 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2365 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2366 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2367 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2368 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2369 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2370 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2371 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2372 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2373 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2374 | end | |
2375 | end | |
2376 | elseif torvel<1 and hitfloor~=nil then | |
2377 | Anim="Idle" | |
2378 | Humanoid.WalkSpeed = 64 | |
2379 | if attack==false and sphere==false and rest==false then | |
2380 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/30))*angles(math.rad(5+5*math.cos(sine/30)),math.rad(0),math.rad(0)),.1) | |
2381 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2382 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15-10*math.cos(sine/30)), math.rad(0), math.rad(100-5*math.cos(sine/30))), 0.3) | |
2383 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15-10*math.cos(sine/30)), math.rad(0), math.rad(-100+5*math.cos(sine/30))), 0.3) | |
2384 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2385 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2386 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2387 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2388 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2389 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2390 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2391 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2392 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
2393 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2394 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2395 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2396 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2397 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2398 | else | |
2399 | if attack==false and sphere==true and rest==false then | |
2400 | Humanoid.WalkSpeed = 20 | |
2401 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0+1*math.cos(sine/20),0,12-0.5*math.cos(sine/40))*angles(math.rad(5+5*math.cos(sine/30)),math.rad(0),math.rad(0)),.1) | |
2402 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2403 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2404 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2405 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2406 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2407 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2408 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2409 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2410 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2411 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2412 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2413 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2414 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2415 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2416 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2417 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2418 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2419 | else | |
2420 | if attack==false and sphere==true and rest==true then | |
2421 | Humanoid.WalkSpeed = 0 | |
2422 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(2.5+2.5*math.cos(sine/20)),math.rad(30),math.rad(0)),.1) | |
2423 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2424 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2425 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2426 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2427 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2428 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2429 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2430 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2431 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2432 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2433 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2434 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2435 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2436 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2437 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2438 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2439 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2440 | end | |
2441 | end | |
2442 | end | |
2443 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
2444 | Anim="Walk" | |
2445 | if attack==false and sphere==false then | |
2446 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-1*math.cos(sine/30))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
2447 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2448 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(120)), 0.3) | |
2449 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-120)), 0.3) | |
2450 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2451 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2452 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2453 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2454 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2455 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2456 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2457 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2458 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
2459 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2460 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2461 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2462 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2463 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2464 | else | |
2465 | if attack==false and sphere==true then | |
2466 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-0.5*math.cos(sine/40))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
2467 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2468 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2469 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2470 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2471 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2472 | arm1pw.C0=clerp(arm1pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2473 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2474 | arm1p3w.C0=clerp(arm1p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2475 | arm1p4w.C0=clerp(arm1p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2476 | arm1p5w.C0=clerp(arm1p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2477 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2478 | arm2pw.C0=clerp(arm2pw.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2479 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2480 | arm2p3w.C0=clerp(arm2p3w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2481 | arm2p4w.C0=clerp(arm2p4w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2482 | arm2p5w.C0=clerp(arm2p5w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2483 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2484 | end | |
2485 | end | |
2486 | elseif torvel>=22 and hitfloor~=nil then | |
2487 | Anim="Run" | |
2488 | if attack==false and sphere==false then | |
2489 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,12-1*math.cos(sine/30))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
2490 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2491 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(120)), 0.3) | |
2492 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-120)), 0.3) | |
2493 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
2494 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
2495 | arm1pw.C0=clerp(arm1pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2496 | arm1p2w.C0=clerp(arm1p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2497 | arm1p3w.C0=clerp(arm1p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2498 | arm1p4w.C0=clerp(arm1p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2499 | arm1p5w.C0=clerp(arm1p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2500 | arm1p6w.C0=clerp(arm1p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2501 | arm2pw.C0=clerp(arm2pw.C0,cf(0,-5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
2502 | arm2p2w.C0=clerp(arm2p2w.C0,cf(0,3,0)*angles(math.rad(0),math.rad(90),math.rad(-90)),0.5) | |
2503 | arm2p3w.C0=clerp(arm2p3w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2504 | arm2p4w.C0=clerp(arm2p4w.C0,cf(-3,3,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3) | |
2505 | arm2p5w.C0=clerp(arm2p5w.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3) | |
2506 | arm2p6w.C0=clerp(arm2p6w.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
2507 | end | |
2508 | end | |
2509 | end | |
2510 | if #Effects>0 then | |
2511 | --table.insert(Effects,{prt,"Block1",delay}) | |
2512 | for e=1,#Effects do | |
2513 | if Effects[e]~=nil then | |
2514 | --for j=1,#Effects[e] do | |
2515 | local Thing=Effects[e] | |
2516 | if Thing~=nil then | |
2517 | local Part=Thing[1] | |
2518 | local Mode=Thing[2] | |
2519 | local Delay=Thing[3] | |
2520 | local IncX=Thing[4] | |
2521 | local IncY=Thing[5] | |
2522 | local IncZ=Thing[6] | |
2523 | if Thing[1].Transparency<=1 then | |
2524 | if Thing[2]=="Block1" then | |
2525 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2526 | Mesh=Thing[1].Mesh | |
2527 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2528 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2529 | elseif Thing[2]=="Cylinder" then | |
2530 | Mesh=Thing[1].Mesh | |
2531 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2532 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2533 | elseif Thing[2]=="Blood" then | |
2534 | Mesh=Thing[7] | |
2535 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
2536 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2537 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2538 | elseif Thing[2]=="Elec" then | |
2539 | Mesh=Thing[1].Mesh | |
2540 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
2541 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2542 | elseif Thing[2]=="Disappear" then | |
2543 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2544 | end | |
2545 | else | |
2546 | Part.Parent=nil | |
2547 | table.remove(Effects,e) | |
2548 | end | |
2549 | end | |
2550 | end | |
2551 | end | |
2552 | end | |
2553 | end |