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