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