SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | script.Parent = Player.Character | |
5 | ||
6 | --RemoteEvent for communicating | |
7 | local Event = Instance.new("RemoteEvent") | |
8 | Event.Name = "UserInput_Event" | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local function fakeEvent() | |
12 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
13 | t.connect = t.Connect | |
14 | return t | |
15 | end | |
16 | ||
17 | --Creating fake input objects with fake variables | |
18 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
19 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
20 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
21 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
22 | end} | |
23 | --Merged 2 functions into one by checking amount of arguments | |
24 | CAS.UnbindAction = CAS.BindAction | |
25 | ||
26 | --This function will trigger the events that have been :Connect()'ed | |
27 | local function te(self,ev,...) | |
28 | local t = m[ev] | |
29 | if t and t._fakeEvent and t.Function then | |
30 | t.Function(...) | |
31 | end | |
32 | end | |
33 | m.TrigEvent = te | |
34 | UIS.TrigEvent = te | |
35 | ||
36 | Event.OnServerEvent:Connect(function(plr,io) | |
37 | if plr~=Player then return end | |
38 | if io.isMouse then | |
39 | m.Target = io.Target | |
40 | m.Hit = io.Hit | |
41 | else | |
42 | local b = io.UserInputState == Enum.UserInputState.Begin | |
43 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
44 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
45 | end | |
46 | for _,t in pairs(CAS.Actions) do | |
47 | for _,k in pairs(t.Keys) do | |
48 | if k==io.KeyCode then | |
49 | t.Function(t.Name,io.UserInputState,io) | |
50 | end | |
51 | end | |
52 | end | |
53 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
54 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
55 | end | |
56 | end) | |
57 | Event.Parent = NLS([==[ | |
58 | local Player = game:GetService("Players").LocalPlayer | |
59 | local Event = script:WaitForChild("UserInput_Event") | |
60 | ||
61 | local UIS = game:GetService("UserInputService") | |
62 | local input = function(io,a) | |
63 | if a then return end | |
64 | --Since InputObject is a client-side instance, we create and pass table instead | |
65 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
66 | end | |
67 | UIS.InputBegan:Connect(input) | |
68 | UIS.InputEnded:Connect(input) | |
69 | ||
70 | local Mouse = Player:GetMouse() | |
71 | local h,t | |
72 | --Give the server mouse data 30 times every second, but only if the values changed | |
73 | --If player is not moving their mouse, client won't fire events | |
74 | while wait(1/30) do | |
75 | if h~=Mouse.Hit or t~=Mouse.Target then | |
76 | h,t=Mouse.Hit,Mouse.Target | |
77 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
78 | end | |
79 | end]==],Player.Character) | |
80 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
81 | end | |
82 | ||
83 | --[[ Leaked by CLarramore ]]-- | |
84 | -- Ever since 3/10/2016 this script started to get popular in oxcool1's SB | |
85 | -- I am now spreading this on | |
86 | -- You can now make ur edits with this | |
87 | -- ENTIRELY OPEN SOURCED!!!! YAY! | |
88 | ||
89 | -- NightOwlAce dont kill me | |
90 | - | Player=game:GetService("Players").TinkerElsa44 |
90 | + | Player=game:GetService("Players").StumpyTheCat2008 |
91 | Character=Player.Character | |
92 | PlayerGui=Player.PlayerGui | |
93 | Backpack=Player.Backpack | |
94 | Torso=Character.Torso | |
95 | Head=Character.Head | |
96 | Humanoid=Character.Humanoid | |
97 | m=Instance.new('Model',Character) | |
98 | LeftArm=Character["Left Arm"] | |
99 | LeftLeg=Character["Left Leg"] | |
100 | RightArm=Character["Right Arm"] | |
101 | RightLeg=Character["Right Leg"] | |
102 | LS=Torso["Left Shoulder"] | |
103 | LH=Torso["Left Hip"] | |
104 | RS=Torso["Right Shoulder"] | |
105 | RH=Torso["Right Hip"] | |
106 | Face = Head.face | |
107 | Neck=Torso.Neck | |
108 | it=Instance.new | |
109 | attacktype=1 | |
110 | vt=Vector3.new | |
111 | cf=CFrame.new | |
112 | euler=CFrame.fromEulerAnglesXYZ | |
113 | angles=CFrame.Angles | |
114 | cloaked=false | |
115 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
116 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
117 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
118 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
119 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
120 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
121 | RootPart=Character.HumanoidRootPart | |
122 | RootJoint=RootPart.RootJoint | |
123 | RootCF=euler(-1.57,0,3.14) | |
124 | attack = false | |
125 | attackdebounce = false | |
126 | deb=false | |
127 | equipped=true | |
128 | hand=false | |
129 | MMouse=nil | |
130 | combo=0 | |
131 | mana=0 | |
132 | trispeed=1 | |
133 | pathtrans=.7 | |
134 | attackmode='none' | |
135 | local idle=0 | |
136 | local Anim="Idle" | |
137 | local Effects={} | |
138 | local gun=false | |
139 | local shoot=false | |
140 | player=nil | |
141 | cloak=false | |
142 | - | lightcolor='Bright blue' |
142 | + | lightcolor='Dove blue' |
143 | ||
144 | local Color1=Torso.BrickColor | |
145 | ||
146 | local fengui=it("GuiMain") | |
147 | fengui.Parent=Player.PlayerGui | |
148 | fengui.Name="WeaponGUI" | |
149 | local fenframe=it("Frame") | |
150 | fenframe.Parent=fengui | |
151 | fenframe.BackgroundColor3=Color3.new(255,255,255) | |
152 | fenframe.BackgroundTransparency=1 | |
153 | fenframe.BorderColor3=Color3.new(17,17,17) | |
154 | fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
155 | fenframe.Position=UDim2.new(0.4,0,0.1,0) | |
156 | local fenbarmana1=it("TextLabel") | |
157 | fenbarmana1.Parent=fenframe | |
158 | fenbarmana1.Text=" " | |
159 | fenbarmana1.BackgroundTransparency=0 | |
160 | fenbarmana1.BackgroundColor3=Color3.new(0,0,0) | |
161 | fenbarmana1.SizeConstraint="RelativeXY" | |
162 | fenbarmana1.TextXAlignment="Center" | |
163 | fenbarmana1.TextYAlignment="Center" | |
164 | fenbarmana1.Position=UDim2.new(0,0,0,0) | |
165 | fenbarmana1.Size=UDim2.new(4,0,0.2,0) | |
166 | local fenbarmana2=it("TextLabel") | |
167 | fenbarmana2.Parent=fenframe | |
168 | fenbarmana2.Text=" " | |
169 | fenbarmana2.BackgroundTransparency=0 | |
170 | fenbarmana2.BackgroundColor3=Torso.Color | |
171 | fenbarmana2.SizeConstraint="RelativeXY" | |
172 | fenbarmana2.TextXAlignment="Center" | |
173 | fenbarmana2.TextYAlignment="Center" | |
174 | fenbarmana2.Position=UDim2.new(0,0,0,0) | |
175 | fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0) | |
176 | local fenbarmana3=it("TextLabel") | |
177 | fenbarmana3.Parent=fenframe | |
178 | fenbarmana3.Text=" " | |
179 | fenbarmana3.BackgroundTransparency=0 | |
180 | fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3) | |
181 | fenbarmana3.SizeConstraint="RelativeXY" | |
182 | fenbarmana3.TextXAlignment="Center" | |
183 | fenbarmana3.TextYAlignment="Center" | |
184 | fenbarmana3.Position=UDim2.new(0,0,0,0) | |
185 | fenbarmana3.Size=UDim2.new(0,0,0.2,0) | |
186 | local fenbarmana4=it("TextLabel") | |
187 | fenbarmana4.Parent=fenframe | |
188 | fenbarmana4.Text="Energy("..mana..")" | |
189 | fenbarmana4.BackgroundTransparency=1 | |
190 | fenbarmana4.BackgroundColor3=Color3.new(0,0,0) | |
191 | fenbarmana4.SizeConstraint="RelativeXY" | |
192 | fenbarmana4.TextXAlignment="Center" | |
193 | fenbarmana4.TextYAlignment="Center" | |
194 | fenbarmana4.Position=UDim2.new(0,0,-0.3,0) | |
195 | fenbarmana4.Size=UDim2.new(4,0,0.2,0) | |
196 | fenbarmana4.FontSize="Size9" | |
197 | fenbarmana4.TextStrokeTransparency=0 | |
198 | fenbarmana4.TextColor=BrickColor.new("White") | |
199 | ||
200 | --save shoulders | |
201 | RSH, LSH=nil, nil | |
202 | --welds | |
203 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
204 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
205 | LH=Torso["Left Hip"] | |
206 | RH=Torso["Right Hip"] | |
207 | TorsoColor=Torso.BrickColor | |
208 | function NoOutline(Part) | |
209 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
210 | end | |
211 | player=Player | |
212 | ch=Character | |
213 | RSH=ch.Torso["Right Shoulder"] | |
214 | LSH=ch.Torso["Left Shoulder"] | |
215 | -- | |
216 | RSH.Parent=nil | |
217 | LSH.Parent=nil | |
218 | -- | |
219 | RW.Name="Right Shoulder" | |
220 | RW.Part0=ch.Torso | |
221 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
222 | RW.C1=cf(0, 0.5, 0) | |
223 | RW.Part1=ch["Right Arm"] | |
224 | RW.Parent=ch.Torso | |
225 | -- | |
226 | LW.Name="Left Shoulder" | |
227 | LW.Part0=ch.Torso | |
228 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
229 | LW.C1=cf(0, 0.5, 0) | |
230 | LW.Part1=ch["Left Arm"] | |
231 | LW.Parent=ch.Torso | |
232 | ||
233 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
234 | local fp=it("Part") | |
235 | fp.formFactor=formfactor | |
236 | fp.Parent=parent | |
237 | fp.Reflectance=reflectance | |
238 | fp.Transparency=transparency | |
239 | fp.CanCollide=false | |
240 | fp.Locked=true | |
241 | fp.BrickColor=brickcolor | |
242 | fp.Name=name | |
243 | fp.Size=size | |
244 | fp.Position=Torso.Position | |
245 | NoOutline(fp) | |
246 | fp.Material="Neon" | |
247 | fp:BreakJoints() | |
248 | return fp | |
249 | end | |
250 | ||
251 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
252 | local mesh=it(Mesh) | |
253 | mesh.Parent=part | |
254 | if Mesh=="SpecialMesh" then | |
255 | mesh.MeshType=meshtype | |
256 | if meshid~="nil" then | |
257 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
258 | end | |
259 | end | |
260 | mesh.Offset=offset | |
261 | mesh.Scale=scale | |
262 | return mesh | |
263 | end | |
264 | ||
265 | function weld(parent,part0,part1,c0) | |
266 | local weld=it("Weld") | |
267 | weld.Parent=parent | |
268 | weld.Part0=part0 | |
269 | weld.Part1=part1 | |
270 | weld.C0=c0 | |
271 | return weld | |
272 | end | |
273 | ||
274 | local Color1=Torso.BrickColor | |
275 | ||
276 | local bodvel=Instance.new("BodyVelocity") | |
277 | local bg=Instance.new("BodyGyro") | |
278 | ||
279 | function swait(num) | |
280 | if num==0 or num==nil then | |
281 | game:service'RunService'.Stepped:wait(0) | |
282 | else | |
283 | for i=0,num do | |
284 | game:service'RunService'.Stepped:wait(0) | |
285 | end | |
286 | end | |
287 | end | |
288 | ||
289 | ||
290 | so = function(id,par,vol,pit) | |
291 | coroutine.resume(coroutine.create(function() | |
292 | local sou = Instance.new("Sound",par or workspace) | |
293 | sou.Volume=vol | |
294 | sou.Pitch=pit or 1 | |
295 | sou.SoundId=id | |
296 | swait() | |
297 | sou:play() | |
298 | game:GetService("Debris"):AddItem(sou,6) | |
299 | end)) | |
300 | end | |
301 | ||
302 | function clerp(a,b,t) | |
303 | local qa = {QuaternionFromCFrame(a)} | |
304 | local qb = {QuaternionFromCFrame(b)} | |
305 | local ax, ay, az = a.x, a.y, a.z | |
306 | local bx, by, bz = b.x, b.y, b.z | |
307 | local _t = 1-t | |
308 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
309 | end | |
310 | ||
311 | function QuaternionFromCFrame(cf) | |
312 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
313 | local trace = m00 + m11 + m22 | |
314 | if trace > 0 then | |
315 | local s = math.sqrt(1 + trace) | |
316 | local recip = 0.5/s | |
317 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
318 | else | |
319 | local i = 0 | |
320 | if m11 > m00 then | |
321 | i = 1 | |
322 | end | |
323 | if m22 > (i == 0 and m00 or m11) then | |
324 | i = 2 | |
325 | end | |
326 | if i == 0 then | |
327 | local s = math.sqrt(m00-m11-m22+1) | |
328 | local recip = 0.5/s | |
329 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
330 | elseif i == 1 then | |
331 | local s = math.sqrt(m11-m22-m00+1) | |
332 | local recip = 0.5/s | |
333 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
334 | elseif i == 2 then | |
335 | local s = math.sqrt(m22-m00-m11+1) | |
336 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
337 | end | |
338 | end | |
339 | end | |
340 | ||
341 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
342 | local xs, ys, zs = x + x, y + y, z + z | |
343 | local wx, wy, wz = w*xs, w*ys, w*zs | |
344 | local xx = x*xs | |
345 | local xy = x*ys | |
346 | local xz = x*zs | |
347 | local yy = y*ys | |
348 | local yz = y*zs | |
349 | local zz = z*zs | |
350 | 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)) | |
351 | end | |
352 | ||
353 | function QuaternionSlerp(a, b, t) | |
354 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
355 | local startInterp, finishInterp; | |
356 | if cosTheta >= 0.0001 then | |
357 | if (1 - cosTheta) > 0.0001 then | |
358 | local theta = math.acos(cosTheta) | |
359 | local invSinTheta = 1/math.sin(theta) | |
360 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
361 | finishInterp = math.sin(t*theta)*invSinTheta | |
362 | else | |
363 | startInterp = 1-t | |
364 | finishInterp = t | |
365 | end | |
366 | else | |
367 | if (1+cosTheta) > 0.0001 then | |
368 | local theta = math.acos(-cosTheta) | |
369 | local invSinTheta = 1/math.sin(theta) | |
370 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
371 | finishInterp = math.sin(t*theta)*invSinTheta | |
372 | else | |
373 | startInterp = t-1 | |
374 | finishInterp = t | |
375 | end | |
376 | end | |
377 | 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 | |
378 | end | |
379 | ||
380 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
381 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
382 | end | |
383 | ||
384 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
385 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
386 | prt.Anchored=true | |
387 | prt.CFrame=cframe | |
388 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
389 | --http://www.roblox.com/asset/?id=4770560 | |
390 | game:GetService("Debris"):AddItem(prt,2) | |
391 | CF=prt.CFrame | |
392 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
393 | for i=0,1,0.2 do | |
394 | wait() | |
395 | Part.CFrame=CF*cf(0,0,-0.4) | |
396 | end | |
397 | for i=0,1,delay do | |
398 | wait() | |
399 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
400 | Mesh.Scale=Mesh.Scale | |
401 | end | |
402 | for i=0,1,0.1 do | |
403 | wait() | |
404 | Part.Transparency=i | |
405 | end | |
406 | Part.Parent=nil | |
407 | end),prt,msh,CF) | |
408 | end | |
409 | ||
410 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
411 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
412 | prt.Anchored=true | |
413 | prt.CFrame=cframe | |
414 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
415 | game:GetService("Debris"):AddItem(prt,5) | |
416 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
417 | for i=0,1,delay do | |
418 | wait() | |
419 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
420 | Part.Transparency=i | |
421 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
422 | end | |
423 | Part.Parent=nil | |
424 | end),prt,msh) | |
425 | end | |
426 | ||
427 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
428 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
429 | prt.Anchored=false | |
430 | prt.CFrame=cframe | |
431 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
432 | local wld=weld(prt,prt,Parent,cframe) | |
433 | game:GetService("Debris"):AddItem(prt,5) | |
434 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
435 | for i=0,1,delay do | |
436 | wait() | |
437 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
438 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
439 | Part.Transparency=i | |
440 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
441 | end | |
442 | Part.Parent=nil | |
443 | end),prt,msh,wld) | |
444 | end | |
445 | ||
446 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
447 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
448 | prt.Anchored=false | |
449 | prt.CFrame=cframe | |
450 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
451 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
452 | game:GetService("Debris"):AddItem(prt,5) | |
453 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
454 | for i=0,1,delay do | |
455 | wait() | |
456 | Weld.C0=euler(i*20,0,0) | |
457 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
458 | Part.Transparency=i | |
459 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
460 | end | |
461 | Part.Parent=nil | |
462 | end),prt,msh,wld) | |
463 | end | |
464 | ||
465 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
466 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
467 | prt.Anchored=true | |
468 | prt.CFrame=cframe | |
469 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
470 | game:GetService("Debris"):AddItem(prt,2) | |
471 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
472 | for i=0,1,delay do | |
473 | wait() | |
474 | Part.CFrame=Part.CFrame | |
475 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
476 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
477 | prt2.Anchored=true | |
478 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
479 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
480 | game:GetService("Debris"):AddItem(prt2,2) | |
481 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
482 | for i=0,1,0.1 do | |
483 | wait() | |
484 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
485 | end | |
486 | Part.Parent=nil | |
487 | end),prt2,msh2) | |
488 | end | |
489 | for i=0,1,delay*2 do | |
490 | wait() | |
491 | Part.CFrame=Part.CFrame | |
492 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
493 | end | |
494 | Part.Parent=nil | |
495 | end),prt,msh) | |
496 | end | |
497 | ||
498 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
499 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
500 | prt.Anchored=true | |
501 | prt.CFrame=cframe | |
502 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
503 | game:GetService("Debris"):AddItem(prt,2) | |
504 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
505 | for i=0,1,delay do | |
506 | wait() | |
507 | Part.CFrame=Part.CFrame | |
508 | Part.Transparency=i | |
509 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
510 | end | |
511 | Part.Parent=nil | |
512 | end),prt,msh) | |
513 | end | |
514 | ||
515 | function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3) | |
516 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
517 | prt.Anchored=true | |
518 | prt.CFrame=cframe*euler(x2,y2,z2) | |
519 | --"http://www.roblox.com/asset/?id=168892465" | |
520 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
521 | game:GetService("Debris"):AddItem(prt,2) | |
522 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
523 | for i=0,1,0.03 do | |
524 | wait() | |
525 | Part.CFrame=Part.CFrame | |
526 | Part.Transparency=i | |
527 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
528 | end | |
529 | Part.Parent=nil | |
530 | end),prt,msh) | |
531 | end | |
532 | ||
533 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
534 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
535 | prt.Anchored=true | |
536 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
537 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
538 | game:GetService("Debris"):AddItem(prt,2) | |
539 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
540 | CF=Part.CFrame | |
541 | Numbb=0 | |
542 | randnumb=math.random()/10 | |
543 | rand1=math.random()/10 | |
544 | for i=0,1,rand1 do | |
545 | wait() | |
546 | CF=CF*cf(0,math.random()/2,0) | |
547 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
548 | Part.CFrame=CF*euler(Numbb,0,0) | |
549 | Part.Transparency=i | |
550 | Numbb=Numbb+randnumb | |
551 | end | |
552 | Part.Parent=nil | |
553 | end),prt,CF,Numbb,randnumb) | |
554 | end | |
555 | ||
556 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
557 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
558 | prt.Anchored=true | |
559 | prt.CFrame=cframe | |
560 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
561 | game:GetService("Debris"):AddItem(prt,5) | |
562 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
563 | for i=0,1,delay do | |
564 | wait() | |
565 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
566 | Part.Transparency=i | |
567 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
568 | end | |
569 | Part.Parent=nil | |
570 | end),prt,msh) | |
571 | end | |
572 | ||
573 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
574 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
575 | prt.Anchored=true | |
576 | prt.CFrame=cframe | |
577 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
578 | game:GetService("Debris"):AddItem(prt,2) | |
579 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
580 | for i=0,1,delay do | |
581 | wait() | |
582 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
583 | Part.Transparency=i | |
584 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
585 | end | |
586 | Part.Parent=nil | |
587 | end),prt,msh) | |
588 | end | |
589 | ||
590 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
591 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
592 | prt.Anchored=true | |
593 | prt.CFrame=cframe*cf(x,y,z) | |
594 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
595 | game:GetService("Debris"):AddItem(prt,5) | |
596 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
597 | local num=math.random() | |
598 | local num2=math.random(-3,2)+math.random() | |
599 | local numm=0 | |
600 | for i=0,1,delay*2 do | |
601 | swait() | |
602 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
603 | Part.Transparency=i | |
604 | numm=numm+0.01 | |
605 | end | |
606 | Part.Parent=nil | |
607 | Mesh.Parent=nil | |
608 | end),prt,msh,x,y,z) | |
609 | end | |
610 | ||
611 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
612 | if hit.Parent==nil then | |
613 | return | |
614 | end | |
615 | h=hit.Parent:FindFirstChild("Humanoid") | |
616 | for _,v in pairs(hit.Parent:children()) do | |
617 | if v:IsA("Humanoid") then | |
618 | h=v | |
619 | end | |
620 | end | |
621 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
622 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
623 | end | |
624 | if hit.Parent.className=="Hat" then | |
625 | hit=hit.Parent.Parent:findFirstChild("Head") | |
626 | end | |
627 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
628 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
629 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
630 | return | |
631 | end]] | |
632 | -- hs(hit,1.2) | |
633 | c=Instance.new("ObjectValue") | |
634 | c.Name="creator" | |
635 | - | c.Value=game:service("Players").TinkerElsa44 |
635 | + | c.Value=game:service("Players").StumpyTheCat2008 |
636 | c.Parent=h | |
637 | game:GetService("Debris"):AddItem(c,.5) | |
638 | Damage=math.random(minim,maxim) | |
639 | -- h:TakeDamage(Damage) | |
640 | blocked=false | |
641 | block=hit.Parent:findFirstChild("Block") | |
642 | if block~=nil then | |
643 | print(block.className) | |
644 | if block.className=="NumberValue" then | |
645 | if block.Value>0 then | |
646 | blocked=true | |
647 | if decreaseblock==nil then | |
648 | block.Value=block.Value-1 | |
649 | end | |
650 | end | |
651 | end | |
652 | if block.className=="IntValue" then | |
653 | if block.Value>0 then | |
654 | blocked=true | |
655 | if decreaseblock~=nil then | |
656 | block.Value=block.Value-1 | |
657 | end | |
658 | end | |
659 | end | |
660 | end | |
661 | if blocked==false then | |
662 | -- h:TakeDamage(Damage) | |
663 | h.Health=h.Health-Damage | |
664 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
665 | else | |
666 | h.Health=h.Health-(Damage/2) | |
667 | - | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) |
667 | + | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Dove blue")) |
668 | end | |
669 | if Type=="Knockdown" then | |
670 | hum=hit.Parent.Humanoid | |
671 | hum.PlatformStand=true | |
672 | coroutine.resume(coroutine.create(function(HHumanoid) | |
673 | swait(1) | |
674 | HHumanoid.PlatformStand=false | |
675 | end),hum) | |
676 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
677 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
678 | local bodvol=Instance.new("BodyVelocity") | |
679 | bodvol.velocity=angle*knockback | |
680 | bodvol.P=5000 | |
681 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
682 | bodvol.Parent=hit | |
683 | rl=Instance.new("BodyAngularVelocity") | |
684 | rl.P=3000 | |
685 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
686 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
687 | rl.Parent=hit | |
688 | game:GetService("Debris"):AddItem(bodvol,.5) | |
689 | game:GetService("Debris"):AddItem(rl,.5) | |
690 | elseif Type=="Normal" then | |
691 | vp=Instance.new("BodyVelocity") | |
692 | vp.P=500 | |
693 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
694 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
695 | if KnockbackType==1 then | |
696 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
697 | elseif KnockbackType==2 then | |
698 | vp.velocity=Property.CFrame.lookVector*knockback | |
699 | end | |
700 | if knockback>0 then | |
701 | vp.Parent=hit.Parent.Torso | |
702 | end | |
703 | game:GetService("Debris"):AddItem(vp,.5) | |
704 | elseif Type=="Up" then | |
705 | local bodyVelocity=Instance.new("BodyVelocity") | |
706 | bodyVelocity.velocity=vt(0,10,0) | |
707 | bodyVelocity.P=1000 | |
708 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
709 | bodyVelocity.Parent=hit | |
710 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
711 | rl=Instance.new("BodyAngularVelocity") | |
712 | rl.P=3000 | |
713 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
714 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
715 | rl.Parent=hit | |
716 | game:GetService("Debris"):AddItem(rl,.5) | |
717 | elseif Type=="Snare" then | |
718 | bp=Instance.new("BodyPosition") | |
719 | bp.P=2000 | |
720 | bp.D=100 | |
721 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
722 | bp.position=hit.Parent.Torso.Position | |
723 | bp.Parent=hit.Parent.Torso | |
724 | game:GetService("Debris"):AddItem(bp,1) | |
725 | elseif Type=="Target" then | |
726 | if Targetting==false then | |
727 | ZTarget=hit.Parent.Torso | |
728 | coroutine.resume(coroutine.create(function(Part) | |
729 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
730 | swait(5) | |
731 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
732 | end),ZTarget) | |
733 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
734 | targetgui=Instance.new("BillboardGui") | |
735 | targetgui.Parent=ZTarget | |
736 | targetgui.Size=UDim2.new(10,100,10,100) | |
737 | targ=Instance.new("ImageLabel") | |
738 | targ.Parent=targetgui | |
739 | targ.BackgroundTransparency=1 | |
740 | targ.Image="rbxassetid://4834067" | |
741 | targ.Size=UDim2.new(1,0,1,0) | |
742 | cam.CameraType="Scriptable" | |
743 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
744 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
745 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
746 | Targetting=true | |
747 | RocketTarget=ZTarget | |
748 | for i=1,Property do | |
749 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
750 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
751 | swait() | |
752 | end | |
753 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
754 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
755 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
756 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
757 | end | |
758 | Targetting=false | |
759 | RocketTarget=nil | |
760 | targetgui.Parent=nil | |
761 | cam.CameraType="Custom" | |
762 | end | |
763 | end | |
764 | debounce=Instance.new("BoolValue") | |
765 | debounce.Name="DebounceHit" | |
766 | debounce.Parent=hit.Parent | |
767 | debounce.Value=true | |
768 | game:GetService("Debris"):AddItem(debounce,Delay) | |
769 | c=Instance.new("ObjectValue") | |
770 | c.Name="creator" | |
771 | c.Value=Player | |
772 | c.Parent=h | |
773 | game:GetService("Debris"):AddItem(c,.5) | |
774 | CRIT=false | |
775 | hitDeb=true | |
776 | AttackPos=6 | |
777 | end | |
778 | end | |
779 | ||
780 | showDamage=function(Char,Dealt,du,Color) | |
781 | m=Instance.new("Model") | |
782 | m.Name=tostring(Dealt) | |
783 | h=Instance.new("Humanoid") | |
784 | - | h.Health=0 |
784 | + | h.Health=2000000000000000000000000000 |
785 | - | h.MaxHealth=0 |
785 | + | h.MaxHealth=2000000000000000000000000000 |
786 | - | h.Parent=m |
786 | + | |
787 | c.Transparency=0 | |
788 | c.BrickColor=TorsoColor | |
789 | c.Name="Head" | |
790 | c.TopSurface=0 | |
791 | c.BottomSurface=0 | |
792 | c.formFactor="Plate" | |
793 | c.Size=Vector3.new(1,.4,1) | |
794 | ms=Instance.new("CylinderMesh") | |
795 | ms.Scale=Vector3.new(.8,.8,.8) | |
796 | so("http://www.roblox.com/asset/?id=199149269",c,1,1) | |
797 | if CRIT==true then | |
798 | ms.Scale=Vector3.new(1,1.25,1) | |
799 | end | |
800 | ms.Parent=c | |
801 | c.Reflectance=0 | |
802 | Instance.new("BodyGyro").Parent=c | |
803 | c.Parent=m | |
804 | if Char:findFirstChild("Head")~=nil then | |
805 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
806 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
807 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
808 | end | |
809 | f=Instance.new("BodyPosition") | |
810 | f.P=2000 | |
811 | f.D=100 | |
812 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
813 | f.position=c.Position+Vector3.new(0,3,0) | |
814 | f.Parent=c | |
815 | game:GetService("Debris"):AddItem(m,.5+du) | |
816 | c.CanCollide=false | |
817 | m.Parent=workspace | |
818 | c.CanCollide=false | |
819 | end | |
820 | ||
821 | Player=game:GetService('Players').StumpyTheCat2008 | |
822 | - | Player=game:GetService('Players').TinkerElsa44 |
822 | + | |
823 | m=Instance.new('Model',Character) | |
824 | ||
825 | ||
826 | local function weldBetween(a, b) | |
827 | local weldd = Instance.new("ManualWeld") | |
828 | weldd.Part0 = a | |
829 | weldd.Part1 = b | |
830 | weldd.C0 = CFrame.new() | |
831 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
832 | weldd.Parent = a | |
833 | return weldd | |
834 | end | |
835 | ||
836 | it=Instance.new | |
837 | ||
838 | function nooutline(part) | |
839 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
840 | end | |
841 | ||
842 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
843 | local fp=it("Part") | |
844 | fp.formFactor=formfactor | |
845 | fp.Parent=parent | |
846 | fp.Reflectance=reflectance | |
847 | fp.Transparency=transparency | |
848 | fp.CanCollide=false | |
849 | fp.Locked=true | |
850 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
851 | fp.Name=name | |
852 | fp.Size=size | |
853 | fp.Position=Character.Torso.Position | |
854 | nooutline(fp) | |
855 | fp.Material=material | |
856 | fp:BreakJoints() | |
857 | return fp | |
858 | end | |
859 | ||
860 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
861 | local mesh=it(Mesh) | |
862 | mesh.Parent=part | |
863 | if Mesh=="SpecialMesh" then | |
864 | mesh.MeshType=meshtype | |
865 | mesh.MeshId=meshid | |
866 | end | |
867 | mesh.Offset=offset | |
868 | mesh.Scale=scale | |
869 | return mesh | |
870 | end | |
871 | ||
872 | function weld(parent,part0,part1,c0,c1) | |
873 | local weld=it("Weld") | |
874 | weld.Parent=parent | |
875 | weld.Part0=part0 | |
876 | weld.Part1=part1 | |
877 | weld.C0=c0 | |
878 | weld.C1=c1 | |
879 | return weld | |
880 | end | |
881 | ||
882 | local modelzorz=Instance.new("Model") | |
883 | modelzorz.Parent=Character | |
884 | modelzorz.Name="Claw1" | |
885 | ||
886 | Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1)) | |
887 | Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963)) | |
888 | mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
889 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
890 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
890 | + | |
891 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
892 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862)) | |
893 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
894 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
895 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
895 | + | |
896 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
897 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
897 | + | |
898 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
899 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
899 | + | |
900 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
901 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
901 | + | |
902 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
903 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
903 | + | |
904 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
905 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
905 | + | |
906 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
907 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
907 | + | |
908 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
909 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
909 | + | |
910 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
911 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562)) | |
912 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
913 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
914 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
914 | + | |
915 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
916 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805)) | |
917 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
918 | Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
919 | - | Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(4.29999971, 4.30000019, 1)) |
919 | + | |
920 | mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15)) | |
921 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
922 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474)) | |
923 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
924 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
925 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891)) | |
926 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
927 | ||
928 | local modelzorz2=Instance.new("Model") | |
929 | modelzorz2.Parent=Character | |
930 | modelzorz2.Name="Claw2" | |
931 | ||
932 | Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1)) | |
933 | Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559)) | |
934 | mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
935 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
936 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
936 | + | |
937 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
938 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
938 | + | |
939 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
940 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
940 | + | |
941 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
942 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765)) | |
943 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
944 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
945 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858)) | |
946 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
947 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
948 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
948 | + | |
949 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
950 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964)) | |
951 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
952 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
953 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
953 | + | |
954 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
955 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137)) | |
956 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
957 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
958 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
958 | + | |
959 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
960 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073)) | |
961 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002)) | |
962 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
963 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
963 | + | |
964 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
965 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
965 | + | |
966 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
967 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
967 | + | |
968 | Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
969 | - | Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(4.29999971, 4.30000019, 1)) |
969 | + | |
970 | mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15)) | |
971 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(2.20000005, 1, 1)) | |
972 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) |
972 | + | |
973 | ||
974 | local modelzorz3=Instance.new("Model") | |
975 | modelzorz3.Parent=Character | |
976 | modelzorz3.Name="Eye" | |
977 | ||
978 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
979 | handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
980 | mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1)) | |
981 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
982 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) |
982 | + | |
983 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996)) | |
984 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
985 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) |
985 | + | |
986 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963)) | |
987 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
988 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(3.79999995, 4, 1.39999998)) |
988 | + | |
989 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039)) | |
990 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
991 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0)) | |
992 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039)) | |
993 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
994 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) |
994 | + | |
995 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
996 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) |
996 | + | |
997 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
998 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) |
998 | + | |
999 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Teal","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
1000 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) |
1000 | + | |
1001 | local moosick = it("Sound",Character) | |
1002 | moosick.SoundId = "rbxassetid://2590260585" | |
1003 | - | moosick.SoundId = "rbxassetid://927739239" |
1003 | + | |
1004 | moosick.Looped = true | |
1005 | moosick.Pitch = 1 | |
1006 | moosick.Volume = 0 | |
1007 | moosick:Play() | |
1008 | ||
1009 | anim = Character:findFirstChild("Animate") | |
1010 | if anim then | |
1011 | anim:Destroy() | |
1012 | end | |
1013 | ||
1014 | local particleemitter = Instance.new("ParticleEmitter", Handle) | |
1015 | particleemitter.VelocitySpread = 180 | |
1016 | particleemitter.Lifetime = NumberRange.new(0.1) | |
1017 | particleemitter.Speed = NumberRange.new(2) | |
1018 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)}) | |
1019 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
1020 | particleemitter.Rate = 100 | |
1021 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
1022 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1023 | particleemitter.LightEmission = 0 | |
1024 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
1025 | ||
1026 | local particleemitter = Instance.new("ParticleEmitter", Handle2) | |
1027 | particleemitter.VelocitySpread = 180 | |
1028 | particleemitter.Lifetime = NumberRange.new(0.1) | |
1029 | particleemitter.Speed = NumberRange.new(2) | |
1030 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)}) | |
1031 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
1032 | particleemitter.Rate = 100 | |
1033 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
1034 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1035 | particleemitter.LightEmission = 0 | |
1036 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
1037 | ||
1038 | local particleemitter = Instance.new("ParticleEmitter", handle) | |
1039 | particleemitter.VelocitySpread = 180 | |
1040 | particleemitter.Lifetime = NumberRange.new(0.1) | |
1041 | particleemitter.Speed = NumberRange.new(2) | |
1042 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)}) | |
1043 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
1044 | particleemitter.Rate = 100 | |
1045 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
1046 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1047 | particleemitter.LightEmission = 0.8 | |
1048 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
1049 | ||
1050 | local light = Instance.new("PointLight", Character.Torso) | |
1051 | light.Color = Color3.new(255,255,255) | |
1052 | light.Brightness = 5 | |
1053 | light.Range = 15 | |
1054 | ||
1055 | particleemitter.Enabled = true | |
1056 | ||
1057 | local Footsteps = it("Sound",Character.Torso) | |
1058 | Footsteps.SoundId = "rbxassetid://142665235" | |
1059 | Footsteps.Looped = true | |
1060 | Footsteps.Pitch = 0.8 | |
1061 | Footsteps.Volume = 0.3 | |
1062 | ||
1063 | local Footsteps2 = it("Sound",Character.Torso) | |
1064 | Footsteps2.SoundId = "rbxassetid://142665235" | |
1065 | Footsteps2.Looped = true | |
1066 | Footsteps2.Pitch = 1 | |
1067 | Footsteps2.Volume = 0.4 | |
1068 | ||
1069 | local cam = game.Workspace.CurrentCamera | |
1070 | ||
1071 | --cam.CameraSubject = Character | |
1072 | ||
1073 | for i,v in pairs(Head:children()) do | |
1074 | if v:IsA("Sound") then | |
1075 | v:Destroy() | |
1076 | end | |
1077 | end | |
1078 | ||
1079 | mouse.Button1Down:connect(function() | |
1080 | if attack==false and attacktype==1 then | |
1081 | attacktype=2 | |
1082 | attackone() | |
1083 | elseif attack==false and attacktype==2 then | |
1084 | attacktype=3 | |
1085 | attacktwo() | |
1086 | elseif attack==false and attacktype==3 then | |
1087 | attacktype=4 | |
1088 | attackthree() | |
1089 | elseif attack==false and attacktype==4 then | |
1090 | attacktype=1 | |
1091 | attackfour() | |
1092 | end | |
1093 | end) | |
1094 | ||
1095 | mouse.KeyDown:connect(function(k) | |
1096 | k=k:lower() | |
1097 | if k=='e' then | |
1098 | if attack==false and mana>=20 then | |
1099 | Push() | |
1100 | end | |
1101 | elseif k=='g' then | |
1102 | if attack==false and mana>=50 then | |
1103 | Twirl() | |
1104 | end | |
1105 | elseif k=='v' then | |
1106 | if attack==false and mana>=25 then | |
1107 | MagicJump() | |
1108 | end | |
1109 | elseif k=='q' then | |
1110 | if attack==false then | |
1111 | idle=1000 | |
1112 | end | |
1113 | elseif k=='h' then | |
1114 | if attack==false then | |
1115 | mana=100 | |
1116 | end | |
1117 | elseif k=='y' then | |
1118 | if attack==false and mana>=100 then | |
1119 | Shred() | |
1120 | end | |
1121 | elseif k=='f' then | |
1122 | if attack==false and mana>=40 then | |
1123 | Spin() | |
1124 | end | |
1125 | elseif k=='r' then | |
1126 | if attack==false and mana>=20 then | |
1127 | Clap() | |
1128 | end | |
1129 | elseif k=='t' then | |
1130 | if attack==false then | |
1131 | Hai() | |
1132 | end | |
1133 | elseif k=='0' then | |
1134 | if attack==false then | |
1135 | Humanoid.WalkSpeed=(56) | |
1136 | end | |
1137 | elseif k=='j' then | |
1138 | if attack==false then | |
1139 | Humanoid.Health = 6986985 | |
1140 | - | Humanoid.Health = 100 |
1140 | + | |
1141 | end | |
1142 | end | |
1143 | end) | |
1144 | ||
1145 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1146 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1147 | prt.Anchored=true | |
1148 | prt.CFrame=cframe | |
1149 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1150 | game:GetService("Debris"):AddItem(prt,2) | |
1151 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1152 | for i=0,1,delay do | |
1153 | wait() | |
1154 | Part.CFrame=Part.CFrame | |
1155 | Part.Transparency=i | |
1156 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1157 | end | |
1158 | Part.Parent=nil | |
1159 | end),prt,msh) | |
1160 | end | |
1161 | ||
1162 | TrailDeb = false | |
1163 | ||
1164 | function equipanim() | |
1165 | attack=true | |
1166 | Humanoid.WalkSpeed = 0 | |
1167 | if TrailDeb == false then | |
1168 | TrailDeb = true | |
1169 | end | |
1170 | ||
1171 | ||
1172 | coroutine.wrap(function() | |
1173 | local Old = handle.CFrame.p | |
1174 | while wait()do | |
1175 | if not TrailDeb then break end | |
1176 | local New = handle.CFrame.p | |
1177 | local Mag =(Old -New).magnitude | |
1178 | local Dis =(Old +New)/2 | |
1179 | local Trail = Instance.new("Part",Character) | |
1180 | Trail.Material = "Neon" | |
1181 | Trail.Anchored = true | |
1182 | Trail.CanCollide = false | |
1183 | Trail.BrickColor = TorsoColor | |
1184 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1185 | Trail.TopSurface = 0 | |
1186 | Trail.BottomSurface = 0 | |
1187 | Trail.formFactor = "Custom" | |
1188 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1189 | local ms = Instance.new("BlockMesh",Trail) | |
1190 | ms.Scale = Vector3.new(1,1,1) | |
1191 | local TM = Instance.new("CylinderMesh",Trail) | |
1192 | TM.Scale = Vector3.new(1,1,1) | |
1193 | Old = New | |
1194 | coroutine.wrap(function() | |
1195 | for i = 1,0,-0.1 do | |
1196 | wait() | |
1197 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1198 | end | |
1199 | Trail:remove() | |
1200 | end)() | |
1201 | coroutine.wrap(function() | |
1202 | for i = 1,10 do | |
1203 | wait() | |
1204 | Trail.Transparency = Trail.Transparency +0.1 | |
1205 | end end)()end end)() | |
1206 | coroutine.wrap(function() | |
1207 | local Old = Handle.CFrame.p | |
1208 | while wait()do | |
1209 | if not TrailDeb then break end | |
1210 | local New = Handle.CFrame.p | |
1211 | local Mag =(Old -New).magnitude | |
1212 | local Dis =(Old +New)/2 | |
1213 | local Trail = Instance.new("Part",Character) | |
1214 | Trail.Material = "Neon" | |
1215 | Trail.Anchored = true | |
1216 | Trail.CanCollide = false | |
1217 | Trail.BrickColor = TorsoColor | |
1218 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1219 | Trail.TopSurface = 0 | |
1220 | Trail.BottomSurface = 0 | |
1221 | Trail.formFactor = "Custom" | |
1222 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1223 | local ms = Instance.new("BlockMesh",Trail) | |
1224 | ms.Scale = Vector3.new(1,1,1) | |
1225 | local TM = Instance.new("CylinderMesh",Trail) | |
1226 | TM.Scale = Vector3.new(1,1,1) | |
1227 | Old = New | |
1228 | coroutine.wrap(function() | |
1229 | for i = 1,0,-0.1 do | |
1230 | wait() | |
1231 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1232 | end | |
1233 | Trail:remove() | |
1234 | end)() | |
1235 | coroutine.wrap(function() | |
1236 | for i = 1,10 do | |
1237 | wait() | |
1238 | Trail.Transparency = Trail.Transparency +0.1 | |
1239 | end end)()end end)() | |
1240 | coroutine.wrap(function() | |
1241 | local Old = Handle2.CFrame.p | |
1242 | while wait()do | |
1243 | if not TrailDeb then break end | |
1244 | local New = Handle2.CFrame.p | |
1245 | local Mag =(Old -New).magnitude | |
1246 | local Dis =(Old +New)/2 | |
1247 | local Trail = Instance.new("Part",Character) | |
1248 | Trail.Material = "Neon" | |
1249 | Trail.Anchored = true | |
1250 | Trail.CanCollide = false | |
1251 | Trail.BrickColor = TorsoColor | |
1252 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1253 | Trail.TopSurface = 0 | |
1254 | Trail.BottomSurface = 0 | |
1255 | Trail.formFactor = "Custom" | |
1256 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1257 | local ms = Instance.new("BlockMesh",Trail) | |
1258 | ms.Scale = Vector3.new(1,1,1) | |
1259 | local TM = Instance.new("CylinderMesh",Trail) | |
1260 | TM.Scale = Vector3.new(1,1,1) | |
1261 | Old = New | |
1262 | coroutine.wrap(function() | |
1263 | for i = 1,0,-0.1 do | |
1264 | wait() | |
1265 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1266 | end | |
1267 | Trail:remove() | |
1268 | end)() | |
1269 | coroutine.wrap(function() | |
1270 | for i = 1,10 do | |
1271 | wait() | |
1272 | Trail.Transparency = Trail.Transparency +0.1 | |
1273 | end end)()end end)() | |
1274 | so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5) | |
1275 | for i=0,1,0.005 do | |
1276 | swait() | |
1277 | moosick.Volume = 0+1*i | |
1278 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2) | |
1279 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2) | |
1280 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1281 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1282 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1283 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2) | |
1284 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2) | |
1285 | end | |
1286 | for i=0,1,0.005 do | |
1287 | swait() | |
1288 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2) | |
1289 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2) | |
1290 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1291 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1292 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1293 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2) | |
1294 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2) | |
1295 | end | |
1296 | so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9) | |
1297 | so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9) | |
1298 | for i=0,1,0.005 do | |
1299 | swait() | |
1300 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1) | |
1301 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1) | |
1302 | handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
1303 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1) | |
1304 | Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1) | |
1305 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
1306 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
1307 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
1308 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
1309 | end | |
1310 | for i=0,1,0.04 do | |
1311 | swait() | |
1312 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1313 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1314 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1315 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1316 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1317 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1318 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1319 | LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3) | |
1320 | end | |
1321 | --dmgstop() | |
1322 | attack=false | |
1323 | Humanoid.WalkSpeed = 12 | |
1324 | if TrailDeb == true then | |
1325 | TrailDeb = false | |
1326 | end | |
1327 | end | |
1328 | ||
1329 | function attackone() | |
1330 | attack=true | |
1331 | if TrailDeb == false then | |
1332 | TrailDeb = true | |
1333 | end | |
1334 | ||
1335 | ||
1336 | coroutine.wrap(function() | |
1337 | local Old = Handle.CFrame.p | |
1338 | while wait()do | |
1339 | if not TrailDeb then break end | |
1340 | local New = Handle.CFrame.p | |
1341 | local Mag =(Old -New).magnitude | |
1342 | local Dis =(Old +New)/2 | |
1343 | local Trail = Instance.new("Part",Character) | |
1344 | Trail.Material = "Neon" | |
1345 | Trail.Anchored = true | |
1346 | Trail.CanCollide = false | |
1347 | Trail.BrickColor = TorsoColor | |
1348 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1349 | Trail.TopSurface = 0 | |
1350 | Trail.BottomSurface = 0 | |
1351 | Trail.formFactor = "Custom" | |
1352 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1353 | local ms = Instance.new("BlockMesh",Trail) | |
1354 | ms.Scale = Vector3.new(1,1,1) | |
1355 | local TM = Instance.new("CylinderMesh",Trail) | |
1356 | TM.Scale = Vector3.new(1,1,1) | |
1357 | Old = New | |
1358 | coroutine.wrap(function() | |
1359 | for i = 1,0,-0.1 do | |
1360 | wait() | |
1361 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1362 | end | |
1363 | Trail:remove() | |
1364 | end)() | |
1365 | coroutine.wrap(function() | |
1366 | for i = 1,10 do | |
1367 | wait() | |
1368 | Trail.Transparency = Trail.Transparency +0.1 | |
1369 | end end)()end end)() | |
1370 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1371 | for i=0,1,0.08 do | |
1372 | swait() | |
1373 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1374 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1375 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1376 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1377 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1378 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1379 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1380 | end | |
1381 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9) | |
1382 | so("http://www.roblox.com/asset/?id=159972643",Torso,1,1) | |
1383 | for i=0,1,0.1 do | |
1384 | swait() | |
1385 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1386 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1387 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1388 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1389 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1390 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1391 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1392 | end | |
1393 | --dmgstop() | |
1394 | attack=false | |
1395 | con1:disconnect() | |
1396 | if TrailDeb == true then | |
1397 | TrailDeb = false | |
1398 | end | |
1399 | end | |
1400 | ||
1401 | function attacktwo() | |
1402 | attack=true | |
1403 | if TrailDeb == false then | |
1404 | TrailDeb = true | |
1405 | end | |
1406 | ||
1407 | ||
1408 | coroutine.wrap(function() | |
1409 | local Old = Handle2.CFrame.p | |
1410 | while wait()do | |
1411 | if not TrailDeb then break end | |
1412 | local New = Handle2.CFrame.p | |
1413 | local Mag =(Old -New).magnitude | |
1414 | local Dis =(Old +New)/2 | |
1415 | local Trail = Instance.new("Part",Character) | |
1416 | Trail.Material = "Neon" | |
1417 | Trail.Anchored = true | |
1418 | Trail.CanCollide = false | |
1419 | Trail.BrickColor = TorsoColor | |
1420 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1421 | Trail.TopSurface = 0 | |
1422 | Trail.BottomSurface = 0 | |
1423 | Trail.formFactor = "Custom" | |
1424 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1425 | local ms = Instance.new("BlockMesh",Trail) | |
1426 | ms.Scale = Vector3.new(1,1,1) | |
1427 | local TM = Instance.new("CylinderMesh",Trail) | |
1428 | TM.Scale = Vector3.new(1,1,1) | |
1429 | Old = New | |
1430 | coroutine.wrap(function() | |
1431 | for i = 1,0,-0.1 do | |
1432 | wait() | |
1433 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1434 | end | |
1435 | Trail:remove() | |
1436 | end)() | |
1437 | coroutine.wrap(function() | |
1438 | for i = 1,10 do | |
1439 | wait() | |
1440 | Trail.Transparency = Trail.Transparency +0.1 | |
1441 | end end)()end end)() | |
1442 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1443 | for i=0,1,0.08 do | |
1444 | swait() | |
1445 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1446 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1447 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1448 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
1449 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1450 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
1451 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1452 | end | |
1453 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
1454 | so("http://www.roblox.com/asset/?id=159972627",Torso,1,1) | |
1455 | for i=0,1,0.1 do | |
1456 | swait() | |
1457 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1458 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1459 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1460 | Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2) | |
1461 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1462 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1463 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1464 | end | |
1465 | --dmgstop() | |
1466 | attack=false | |
1467 | con1:disconnect() | |
1468 | if TrailDeb == true then | |
1469 | TrailDeb = false | |
1470 | end | |
1471 | end | |
1472 | ||
1473 | function attackthree() | |
1474 | attack=true | |
1475 | if TrailDeb == false then | |
1476 | TrailDeb = true | |
1477 | end | |
1478 | ||
1479 | ||
1480 | coroutine.wrap(function() | |
1481 | local Old = Handle.CFrame.p | |
1482 | while wait()do | |
1483 | if not TrailDeb then break end | |
1484 | local New = Handle.CFrame.p | |
1485 | local Mag =(Old -New).magnitude | |
1486 | local Dis =(Old +New)/2 | |
1487 | local Trail = Instance.new("Part",Character) | |
1488 | Trail.Material = "Neon" | |
1489 | Trail.Anchored = true | |
1490 | Trail.CanCollide = false | |
1491 | Trail.BrickColor = TorsoColor | |
1492 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1493 | Trail.TopSurface = 0 | |
1494 | Trail.BottomSurface = 0 | |
1495 | Trail.formFactor = "Custom" | |
1496 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1497 | local ms = Instance.new("BlockMesh",Trail) | |
1498 | ms.Scale = Vector3.new(1,1,1) | |
1499 | local TM = Instance.new("CylinderMesh",Trail) | |
1500 | TM.Scale = Vector3.new(1,1,1) | |
1501 | Old = New | |
1502 | coroutine.wrap(function() | |
1503 | for i = 1,0,-0.1 do | |
1504 | wait() | |
1505 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1506 | end | |
1507 | Trail:remove() | |
1508 | end)() | |
1509 | coroutine.wrap(function() | |
1510 | for i = 1,10 do | |
1511 | wait() | |
1512 | Trail.Transparency = Trail.Transparency +0.1 | |
1513 | end end)()end end)() | |
1514 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end) | |
1515 | for i=0,1,0.08 do | |
1516 | swait() | |
1517 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1518 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
1519 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1520 | Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2) | |
1521 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1522 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3) | |
1523 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1524 | end | |
1525 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
1526 | so("http://www.roblox.com/asset/?id=159882477",Torso,1,1) | |
1527 | for i=0,1,0.05 do | |
1528 | swait() | |
1529 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1530 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1531 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1532 | Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2) | |
1533 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1534 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3) | |
1535 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1536 | end | |
1537 | --dmgstop() | |
1538 | attack=false | |
1539 | con1:disconnect() | |
1540 | if TrailDeb == true then | |
1541 | TrailDeb = false | |
1542 | end | |
1543 | end | |
1544 | ||
1545 | function attackfour() | |
1546 | attack=true | |
1547 | if TrailDeb == false then | |
1548 | TrailDeb = true | |
1549 | end | |
1550 | ||
1551 | ||
1552 | coroutine.wrap(function() | |
1553 | local Old = Handle2.CFrame.p | |
1554 | while wait()do | |
1555 | if not TrailDeb then break end | |
1556 | local New = Handle2.CFrame.p | |
1557 | local Mag =(Old -New).magnitude | |
1558 | local Dis =(Old +New)/2 | |
1559 | local Trail = Instance.new("Part",Character) | |
1560 | Trail.Material = "Neon" | |
1561 | Trail.Anchored = true | |
1562 | Trail.CanCollide = false | |
1563 | Trail.BrickColor = TorsoColor | |
1564 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1565 | Trail.TopSurface = 0 | |
1566 | Trail.BottomSurface = 0 | |
1567 | Trail.formFactor = "Custom" | |
1568 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1569 | local ms = Instance.new("BlockMesh",Trail) | |
1570 | ms.Scale = Vector3.new(1,1,1) | |
1571 | local TM = Instance.new("CylinderMesh",Trail) | |
1572 | TM.Scale = Vector3.new(1,1,1) | |
1573 | Old = New | |
1574 | coroutine.wrap(function() | |
1575 | for i = 1,0,-0.1 do | |
1576 | wait() | |
1577 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1578 | end | |
1579 | Trail:remove() | |
1580 | end)() | |
1581 | coroutine.wrap(function() | |
1582 | for i = 1,10 do | |
1583 | wait() | |
1584 | Trail.Transparency = Trail.Transparency +0.1 | |
1585 | end end)()end end)() | |
1586 | coroutine.wrap(function() | |
1587 | local Old = Handle.CFrame.p | |
1588 | while wait()do | |
1589 | if not TrailDeb then break end | |
1590 | local New = Handle.CFrame.p | |
1591 | local Mag =(Old -New).magnitude | |
1592 | local Dis =(Old +New)/2 | |
1593 | local Trail = Instance.new("Part",Character) | |
1594 | Trail.Material = "Neon" | |
1595 | Trail.Anchored = true | |
1596 | Trail.CanCollide = false | |
1597 | Trail.BrickColor = TorsoColor | |
1598 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1599 | Trail.TopSurface = 0 | |
1600 | Trail.BottomSurface = 0 | |
1601 | Trail.formFactor = "Custom" | |
1602 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1603 | local ms = Instance.new("BlockMesh",Trail) | |
1604 | ms.Scale = Vector3.new(1,1,1) | |
1605 | local TM = Instance.new("CylinderMesh",Trail) | |
1606 | TM.Scale = Vector3.new(1,1,1) | |
1607 | Old = New | |
1608 | coroutine.wrap(function() | |
1609 | for i = 1,0,-0.1 do | |
1610 | wait() | |
1611 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1612 | end | |
1613 | Trail:remove() | |
1614 | end)() | |
1615 | coroutine.wrap(function() | |
1616 | for i = 1,10 do | |
1617 | wait() | |
1618 | Trail.Transparency = Trail.Transparency +0.1 | |
1619 | end end)()end end)() | |
1620 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1621 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1622 | for i=0,1,0.08 do | |
1623 | swait() | |
1624 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1625 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1626 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1627 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1628 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1629 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1630 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1631 | LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3) | |
1632 | end | |
1633 | if anim then | |
1634 | anim.Disabled=true | |
1635 | end | |
1636 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7) | |
1637 | so("http://www.roblox.com/asset/?id=159882584",Torso,1,1) | |
1638 | for i=0,1,0.04 do | |
1639 | swait() | |
1640 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
1641 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3) | |
1642 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1643 | Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1644 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1645 | RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1646 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1647 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1648 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1649 | end | |
1650 | --dmgstop() | |
1651 | attack=false | |
1652 | con1:disconnect() | |
1653 | con2:disconnect() | |
1654 | if anim then | |
1655 | anim.Disabled=false | |
1656 | end | |
1657 | if TrailDeb == true then | |
1658 | TrailDeb = false | |
1659 | end | |
1660 | end | |
1661 | ||
1662 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
1663 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1664 | prt.Anchored = true | |
1665 | prt.CFrame = cframe | |
1666 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1667 | coroutine.resume(coroutine.create(function() | |
1668 | for i = 0, 1, 0.05 do | |
1669 | wait() | |
1670 | prt.Transparency = i | |
1671 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
1672 | end | |
1673 | prt.Parent = nil | |
1674 | end)) | |
1675 | end | |
1676 | ||
1677 | function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type) | |
1678 | for _, c in pairs(workspace:children()) do | |
1679 | local hum = c:findFirstChild("Humanoid") | |
1680 | if hum ~= nil then | |
1681 | local head = c:findFirstChild("Torso") | |
1682 | if head ~= nil then | |
1683 | local targ = head.Position - Part.Position | |
1684 | local mag = targ.magnitude | |
1685 | if mag <= magni and c.Name ~= Player.Name then | |
1686 | Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3) | |
1687 | end | |
1688 | end | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | ||
1693 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1694 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1695 | prt.Anchored = true | |
1696 | prt.CFrame = cframe | |
1697 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1698 | game:GetService("Debris"):AddItem(prt, 2) | |
1699 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1700 | for i = 0, 1, delay do | |
1701 | swait() | |
1702 | Part.CFrame = Part.CFrame | |
1703 | Part.Transparency = i | |
1704 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1705 | end | |
1706 | Part.Parent = nil | |
1707 | end), prt, msh) | |
1708 | end | |
1709 | ||
1710 | function MagicJump() | |
1711 | if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then | |
1712 | attack=true | |
1713 | mana=mana-25 | |
1714 | --[[ Humanoid.WalkSpeed = 0 | |
1715 | for i=0,1,0.01 do | |
1716 | swait() | |
1717 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1) | |
1718 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1) | |
1719 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
1720 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1) | |
1721 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1) | |
1722 | RH.C0=clerp(RH.C0,cf(0.5,-1.25,0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(15),math.rad(-60),math.rad(-15)),.1) | |
1723 | LH.C0=clerp(LH.C0,cf(-1,0.1,-0.8)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(40),math.rad(0),math.rad(-30)),.1) | |
1724 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1) | |
1725 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1) | |
1726 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1) | |
1727 | end]]-- | |
1728 | Humanoid.Jump = true | |
1729 | Torso.Velocity = vt(0, 150, 0) | |
1730 | Humanoid.WalkSpeed = 64 | |
1731 | so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8) | |
1732 | so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8) | |
1733 | for i=0,1,0.05 do | |
1734 | swait() | |
1735 | Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3) | |
1736 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1737 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3) | |
1738 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1739 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3) | |
1740 | RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
1741 | LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
1742 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1743 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2) | |
1744 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2) | |
1745 | end | |
1746 | for i=0,1,0.02 do | |
1747 | swait() | |
1748 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
1749 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1750 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
1751 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
1752 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1753 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
1754 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1755 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
1756 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
1757 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1758 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
1759 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
1760 | end | |
1761 | Humanoid.WalkSpeed = 0 | |
1762 | swait(8) | |
1763 | so("http://www.roblox.com/asset/?id=199145477",Torso,1,1) | |
1764 | so("http://www.roblox.com/asset/?id=199145477",Torso,1,1) | |
1765 | local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1766 | if hit~=nil then | |
1767 | swait(2) | |
1768 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Deep Blue"),"Effect",vt()) | |
1769 | ref.Anchored=true | |
1770 | ref.CFrame=cf(pos) | |
1771 | game:GetService("Debris"):AddItem(ref,3) | |
1772 | for i=1,10 do | |
1773 | local Col=BrickColor.new("New Yeller") | |
1774 | local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1775 | groundpart.Anchored=true | |
1776 | groundpart.CanCollide=false | |
1777 | groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1778 | local Col2=TorsoColor | |
1779 | local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1780 | groundpart2.Anchored=true | |
1781 | groundpart2.CanCollide=false | |
1782 | groundpart2.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1783 | game:GetService("Debris"):AddItem(groundpart,5) | |
1784 | game:GetService("Debris"):AddItem(groundpart2,5) | |
1785 | end | |
1786 | BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4) | |
1787 | BlastEffect(BrickColor.new("Deep Blue"),cf(pos),.9,.9,.9,1.2,1.2,1.2) | |
1788 | MagicCircle(BrickColor.new("Teal"),cf(pos),5,5,5,5,5,5,0.05) | |
1789 | MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05) | |
1790 | for i=0,1,0.06 do | |
1791 | swait() | |
1792 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1793 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1794 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3) | |
1795 | RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3) | |
1796 | LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3) | |
1797 | RH.C0=clerp(RH.C0,cf(1, -.5, -.5)*angles(math.rad(50),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1798 | LH.C0=clerp(LH.C0,cf(-1, -1, -.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1799 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1800 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
1801 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
1802 | end | |
1803 | end | |
1804 | swait(20) | |
1805 | Humanoid.WalkSpeed = 12 | |
1806 | --dmgstop() | |
1807 | attack=false | |
1808 | end | |
1809 | end | |
1810 | ||
1811 | function Spin() | |
1812 | attack=true | |
1813 | mana=mana-40 | |
1814 | if TrailDeb == false then | |
1815 | TrailDeb = true | |
1816 | end | |
1817 | ||
1818 | coroutine.wrap(function() | |
1819 | local Old = Handle2.CFrame.p | |
1820 | while wait()do | |
1821 | if not TrailDeb then break end | |
1822 | local New = Handle2.CFrame.p | |
1823 | local Mag =(Old -New).magnitude | |
1824 | local Dis =(Old +New)/2 | |
1825 | local Trail = Instance.new("Part",Character) | |
1826 | Trail.Material = "Neon" | |
1827 | Trail.Anchored = true | |
1828 | Trail.CanCollide = false | |
1829 | Trail.BrickColor = TorsoColor | |
1830 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1831 | Trail.TopSurface = 0 | |
1832 | Trail.BottomSurface = 0 | |
1833 | Trail.formFactor = "Custom" | |
1834 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1835 | local ms = Instance.new("BlockMesh",Trail) | |
1836 | ms.Scale = Vector3.new(1,1,1) | |
1837 | local TM = Instance.new("CylinderMesh",Trail) | |
1838 | TM.Scale = Vector3.new(1,1,1) | |
1839 | Old = New | |
1840 | coroutine.wrap(function() | |
1841 | for i = 1,0,-0.1 do | |
1842 | wait() | |
1843 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1844 | end | |
1845 | Trail:remove() | |
1846 | end)() | |
1847 | coroutine.wrap(function() | |
1848 | for i = 1,10 do | |
1849 | wait() | |
1850 | Trail.Transparency = Trail.Transparency +0.1 | |
1851 | end end)()end end)() | |
1852 | coroutine.wrap(function() | |
1853 | local Old = Handle.CFrame.p | |
1854 | while wait()do | |
1855 | if not TrailDeb then break end | |
1856 | local New = Handle.CFrame.p | |
1857 | local Mag =(Old -New).magnitude | |
1858 | local Dis =(Old +New)/2 | |
1859 | local Trail = Instance.new("Part",Character) | |
1860 | Trail.Material = "Neon" | |
1861 | Trail.Anchored = true | |
1862 | Trail.CanCollide = false | |
1863 | Trail.BrickColor = TorsoColor | |
1864 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1865 | Trail.TopSurface = 0 | |
1866 | Trail.BottomSurface = 0 | |
1867 | Trail.formFactor = "Custom" | |
1868 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1869 | local ms = Instance.new("BlockMesh",Trail) | |
1870 | ms.Scale = Vector3.new(1,1,1) | |
1871 | local TM = Instance.new("CylinderMesh",Trail) | |
1872 | TM.Scale = Vector3.new(1,1,1) | |
1873 | Old = New | |
1874 | coroutine.wrap(function() | |
1875 | for i = 1,0,-0.1 do | |
1876 | wait() | |
1877 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1878 | end | |
1879 | Trail:remove() | |
1880 | end)() | |
1881 | coroutine.wrap(function() | |
1882 | for i = 1,10 do | |
1883 | wait() | |
1884 | Trail.Transparency = Trail.Transparency +0.1 | |
1885 | end end)()end end)() | |
1886 | Footsteps:Stop() | |
1887 | Footsteps2:Stop() | |
1888 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1889 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1890 | so("http://www.roblox.com/asset/?id=159882497",Torso,1,1) | |
1891 | for i=0,1,0.1 do | |
1892 | swait() | |
1893 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1894 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1895 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1896 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1897 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1898 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1899 | end | |
1900 | if anim then | |
1901 | anim.Disabled=true | |
1902 | end | |
1903 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1904 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1905 | for i=0,1,0.05 do | |
1906 | swait() | |
1907 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1908 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1909 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1910 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1911 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1912 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1913 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1914 | end | |
1915 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1916 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1917 | for i=0,1,0.05 do | |
1918 | swait() | |
1919 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1920 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1921 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1922 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1923 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1924 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1925 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1926 | end | |
1927 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1928 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1929 | for i=0,1,0.05 do | |
1930 | swait() | |
1931 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1932 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1933 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1934 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1935 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1936 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1937 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1938 | end | |
1939 | --dmgstop() | |
1940 | Humanoid.WalkSpeed=12 | |
1941 | attack=false | |
1942 | con1:disconnect() | |
1943 | con2:disconnect() | |
1944 | if anim then | |
1945 | anim.Disabled=false | |
1946 | end | |
1947 | if TrailDeb == true then | |
1948 | TrailDeb = false | |
1949 | end | |
1950 | end | |
1951 | ||
1952 | function Twirl() | |
1953 | mana=mana-50 | |
1954 | attack=true | |
1955 | if TrailDeb == false then | |
1956 | TrailDeb = true | |
1957 | end | |
1958 | ||
1959 | ||
1960 | coroutine.wrap(function() | |
1961 | local Old = Handle2.CFrame.p | |
1962 | while wait()do | |
1963 | if not TrailDeb then break end | |
1964 | local New = Handle2.CFrame.p | |
1965 | local Mag =(Old -New).magnitude | |
1966 | local Dis =(Old +New)/2 | |
1967 | local Trail = Instance.new("Part",Character) | |
1968 | Trail.Material = "Neon" | |
1969 | Trail.Anchored = true | |
1970 | Trail.CanCollide = false | |
1971 | Trail.BrickColor = TorsoColor | |
1972 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1973 | Trail.TopSurface = 0 | |
1974 | Trail.BottomSurface = 0 | |
1975 | Trail.formFactor = "Custom" | |
1976 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1977 | local ms = Instance.new("BlockMesh",Trail) | |
1978 | ms.Scale = Vector3.new(1,1,1) | |
1979 | local TM = Instance.new("CylinderMesh",Trail) | |
1980 | TM.Scale = Vector3.new(1,1,1) | |
1981 | Old = New | |
1982 | coroutine.wrap(function() | |
1983 | for i = 1,0,-0.1 do | |
1984 | wait() | |
1985 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1986 | end | |
1987 | Trail:remove() | |
1988 | end)() | |
1989 | coroutine.wrap(function() | |
1990 | for i = 1,10 do | |
1991 | wait() | |
1992 | Trail.Transparency = Trail.Transparency +0.1 | |
1993 | end end)()end end)() | |
1994 | coroutine.wrap(function() | |
1995 | local Old = Handle.CFrame.p | |
1996 | while wait()do | |
1997 | if not TrailDeb then break end | |
1998 | local New = Handle.CFrame.p | |
1999 | local Mag =(Old -New).magnitude | |
2000 | local Dis =(Old +New)/2 | |
2001 | local Trail = Instance.new("Part",Character) | |
2002 | Trail.Material = "Neon" | |
2003 | Trail.Anchored = true | |
2004 | Trail.CanCollide = false | |
2005 | Trail.BrickColor = TorsoColor | |
2006 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2007 | Trail.TopSurface = 0 | |
2008 | Trail.BottomSurface = 0 | |
2009 | Trail.formFactor = "Custom" | |
2010 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2011 | local ms = Instance.new("BlockMesh",Trail) | |
2012 | ms.Scale = Vector3.new(1,1,1) | |
2013 | local TM = Instance.new("CylinderMesh",Trail) | |
2014 | TM.Scale = Vector3.new(1,1,1) | |
2015 | Old = New | |
2016 | coroutine.wrap(function() | |
2017 | for i = 1,0,-0.1 do | |
2018 | wait() | |
2019 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2020 | end | |
2021 | Trail:remove() | |
2022 | end)() | |
2023 | coroutine.wrap(function() | |
2024 | for i = 1,10 do | |
2025 | wait() | |
2026 | Trail.Transparency = Trail.Transparency +0.1 | |
2027 | end end)()end end)() | |
2028 | Footsteps:Stop() | |
2029 | Footsteps2:Stop() | |
2030 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2031 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2032 | so("http://www.roblox.com/asset/?id=159882598",Torso,1,1) | |
2033 | for i=0,1,0.1 do | |
2034 | swait() | |
2035 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2036 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2037 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2038 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2039 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2040 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2041 | end | |
2042 | if anim then | |
2043 | anim.Disabled=true | |
2044 | end | |
2045 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2046 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2047 | for i=0,1,0.05 do | |
2048 | swait() | |
2049 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2050 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2051 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2052 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2053 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2054 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2055 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2056 | end | |
2057 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2058 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2059 | for i=0,1,0.05 do | |
2060 | swait() | |
2061 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2062 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2063 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2064 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2065 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2066 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2067 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2068 | end | |
2069 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2070 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2071 | for i=0,1,0.05 do | |
2072 | swait() | |
2073 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2074 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2075 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2076 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2077 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2078 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2079 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2080 | end | |
2081 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2082 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2083 | for i=0,1,0.05 do | |
2084 | swait() | |
2085 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2086 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2087 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2088 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2089 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2090 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2091 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2092 | end | |
2093 | --dmgstop() | |
2094 | Humanoid.WalkSpeed=12 | |
2095 | attack=false | |
2096 | con1:disconnect() | |
2097 | con2:disconnect() | |
2098 | if anim then | |
2099 | anim.Disabled=false | |
2100 | end | |
2101 | if TrailDeb == true then | |
2102 | TrailDeb = false | |
2103 | end | |
2104 | end | |
2105 | ||
2106 | function Shred() | |
2107 | attack=true | |
2108 | mana=mana-100 | |
2109 | if TrailDeb == false then | |
2110 | TrailDeb = true | |
2111 | end | |
2112 | ||
2113 | ||
2114 | coroutine.wrap(function() | |
2115 | local Old = Handle2.CFrame.p | |
2116 | while wait()do | |
2117 | if not TrailDeb then break end | |
2118 | local New = Handle2.CFrame.p | |
2119 | local Mag =(Old -New).magnitude | |
2120 | local Dis =(Old +New)/2 | |
2121 | local Trail = Instance.new("Part",Character) | |
2122 | Trail.Material = "Neon" | |
2123 | Trail.Anchored = true | |
2124 | Trail.CanCollide = false | |
2125 | Trail.BrickColor = TorsoColor | |
2126 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2127 | Trail.TopSurface = 0 | |
2128 | Trail.BottomSurface = 0 | |
2129 | Trail.formFactor = "Custom" | |
2130 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2131 | local ms = Instance.new("BlockMesh",Trail) | |
2132 | ms.Scale = Vector3.new(1,1,1) | |
2133 | local TM = Instance.new("CylinderMesh",Trail) | |
2134 | TM.Scale = Vector3.new(1,1,1) | |
2135 | Old = New | |
2136 | coroutine.wrap(function() | |
2137 | for i = 1,0,-0.1 do | |
2138 | wait() | |
2139 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2140 | end | |
2141 | Trail:remove() | |
2142 | end)() | |
2143 | coroutine.wrap(function() | |
2144 | for i = 1,10 do | |
2145 | wait() | |
2146 | Trail.Transparency = Trail.Transparency +0.1 | |
2147 | end end)()end end)() | |
2148 | coroutine.wrap(function() | |
2149 | local Old = Handle.CFrame.p | |
2150 | while wait()do | |
2151 | if not TrailDeb then break end | |
2152 | local New = Handle.CFrame.p | |
2153 | local Mag =(Old -New).magnitude | |
2154 | local Dis =(Old +New)/2 | |
2155 | local Trail = Instance.new("Part",Character) | |
2156 | Trail.Material = "Neon" | |
2157 | Trail.Anchored = true | |
2158 | Trail.CanCollide = false | |
2159 | Trail.BrickColor = TorsoColor | |
2160 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2161 | Trail.TopSurface = 0 | |
2162 | Trail.BottomSurface = 0 | |
2163 | Trail.formFactor = "Custom" | |
2164 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2165 | local ms = Instance.new("BlockMesh",Trail) | |
2166 | ms.Scale = Vector3.new(1,1,1) | |
2167 | local TM = Instance.new("CylinderMesh",Trail) | |
2168 | TM.Scale = Vector3.new(1,1,1) | |
2169 | Old = New | |
2170 | coroutine.wrap(function() | |
2171 | for i = 1,0,-0.1 do | |
2172 | wait() | |
2173 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2174 | end | |
2175 | Trail:remove() | |
2176 | end)() | |
2177 | coroutine.wrap(function() | |
2178 | for i = 1,10 do | |
2179 | wait() | |
2180 | Trail.Transparency = Trail.Transparency +0.1 | |
2181 | end end)()end end)() | |
2182 | Footsteps:Stop() | |
2183 | Footsteps2:Stop() | |
2184 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2185 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2186 | so("http://www.roblox.com/asset/?id=159882578",Torso,1,1) | |
2187 | for i=0,1,0.1 do | |
2188 | swait() | |
2189 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2190 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2191 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2192 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2193 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2194 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2195 | end | |
2196 | if anim then | |
2197 | anim.Disabled=true | |
2198 | end | |
2199 | for i=0,1,0.05 do | |
2200 | swait() | |
2201 | Torso.Velocity=RootPart.CFrame.lookVector*20 | |
2202 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2203 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2204 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5) | |
2205 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2206 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2207 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2208 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2209 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2210 | end | |
2211 | for i=0,1,0.05 do | |
2212 | swait() | |
2213 | Torso.Velocity=RootPart.CFrame.lookVector*40 | |
2214 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2215 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2216 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5) | |
2217 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2218 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2219 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2220 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2221 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2222 | end | |
2223 | for i=0,1,0.05 do | |
2224 | swait() | |
2225 | Torso.Velocity=RootPart.CFrame.lookVector*60 | |
2226 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2227 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2228 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5) | |
2229 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2230 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2231 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2232 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2233 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2234 | end | |
2235 | so("http://www.roblox.com/asset/?id=159882625",Torso,1,1) | |
2236 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2237 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2238 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2239 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2240 | for i=0,1,0.05 do | |
2241 | swait() | |
2242 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2243 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5) | |
2244 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2245 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2246 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2247 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2248 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2249 | end | |
2250 | for i=0,1,0.005 do | |
2251 | swait() | |
2252 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
2253 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5) | |
2254 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2255 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2256 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2257 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2258 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2259 | end | |
2260 | --dmgstop() | |
2261 | Humanoid.WalkSpeed=12 | |
2262 | attack=false | |
2263 | con1:disconnect() | |
2264 | con2:disconnect() | |
2265 | if anim then | |
2266 | anim.Disabled=false | |
2267 | end | |
2268 | if TrailDeb == true then | |
2269 | TrailDeb = false | |
2270 | end | |
2271 | end | |
2272 | ||
2273 | function Push() | |
2274 | attack=true | |
2275 | mana=mana-20 | |
2276 | if TrailDeb == false then | |
2277 | TrailDeb = true | |
2278 | end | |
2279 | ||
2280 | ||
2281 | coroutine.wrap(function() | |
2282 | local Old = Handle2.CFrame.p | |
2283 | while wait()do | |
2284 | if not TrailDeb then break end | |
2285 | local New = Handle2.CFrame.p | |
2286 | local Mag =(Old -New).magnitude | |
2287 | local Dis =(Old +New)/2 | |
2288 | local Trail = Instance.new("Part",Character) | |
2289 | Trail.Material = "Neon" | |
2290 | Trail.Anchored = true | |
2291 | Trail.CanCollide = false | |
2292 | Trail.BrickColor = TorsoColor | |
2293 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2294 | Trail.TopSurface = 0 | |
2295 | Trail.BottomSurface = 0 | |
2296 | Trail.formFactor = "Custom" | |
2297 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2298 | local ms = Instance.new("BlockMesh",Trail) | |
2299 | ms.Scale = Vector3.new(1,1,1) | |
2300 | local TM = Instance.new("CylinderMesh",Trail) | |
2301 | TM.Scale = Vector3.new(1,1,1) | |
2302 | Old = New | |
2303 | coroutine.wrap(function() | |
2304 | for i = 1,0,-0.1 do | |
2305 | wait() | |
2306 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2307 | end | |
2308 | Trail:remove() | |
2309 | end)() | |
2310 | coroutine.wrap(function() | |
2311 | for i = 1,10 do | |
2312 | wait() | |
2313 | Trail.Transparency = Trail.Transparency +0.1 | |
2314 | end end)()end end)() | |
2315 | coroutine.wrap(function() | |
2316 | local Old = Handle.CFrame.p | |
2317 | while wait()do | |
2318 | if not TrailDeb then break end | |
2319 | local New = Handle.CFrame.p | |
2320 | local Mag =(Old -New).magnitude | |
2321 | local Dis =(Old +New)/2 | |
2322 | local Trail = Instance.new("Part",Character) | |
2323 | Trail.Material = "Neon" | |
2324 | Trail.Anchored = true | |
2325 | Trail.CanCollide = false | |
2326 | Trail.BrickColor = TorsoColor | |
2327 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2328 | Trail.TopSurface = 0 | |
2329 | Trail.BottomSurface = 0 | |
2330 | Trail.formFactor = "Custom" | |
2331 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2332 | local ms = Instance.new("BlockMesh",Trail) | |
2333 | ms.Scale = Vector3.new(1,1,1) | |
2334 | local TM = Instance.new("CylinderMesh",Trail) | |
2335 | TM.Scale = Vector3.new(1,1,1) | |
2336 | Old = New | |
2337 | coroutine.wrap(function() | |
2338 | for i = 1,0,-0.1 do | |
2339 | wait() | |
2340 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2341 | end | |
2342 | Trail:remove() | |
2343 | end)() | |
2344 | coroutine.wrap(function() | |
2345 | for i = 1,10 do | |
2346 | wait() | |
2347 | Trail.Transparency = Trail.Transparency +0.1 | |
2348 | end end)()end end)() | |
2349 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2350 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2351 | for i=0,1,0.1 do | |
2352 | swait() | |
2353 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2354 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2355 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2356 | Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2357 | Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2358 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3) | |
2359 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3) | |
2360 | end | |
2361 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
2362 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2363 | so("http://www.roblox.com/asset/?id=159882481",Torso,1,1) | |
2364 | for i=0,1,0.1 do | |
2365 | swait() | |
2366 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2367 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2368 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2369 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2370 | Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2371 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3) | |
2372 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3) | |
2373 | end | |
2374 | --dmgstop() | |
2375 | attack=false | |
2376 | con1:disconnect() | |
2377 | con2:disconnect() | |
2378 | if TrailDeb == true then | |
2379 | TrailDeb = false | |
2380 | end | |
2381 | end | |
2382 | ||
2383 | function Clap() | |
2384 | attack=true | |
2385 | mana=mana-20 | |
2386 | if TrailDeb == false then | |
2387 | TrailDeb = true | |
2388 | end | |
2389 | ||
2390 | ||
2391 | coroutine.wrap(function() | |
2392 | local Old = Handle2.CFrame.p | |
2393 | while wait()do | |
2394 | if not TrailDeb then break end | |
2395 | local New = Handle2.CFrame.p | |
2396 | local Mag =(Old -New).magnitude | |
2397 | local Dis =(Old +New)/2 | |
2398 | local Trail = Instance.new("Part",Character) | |
2399 | Trail.Material = "Neon" | |
2400 | Trail.Anchored = true | |
2401 | Trail.CanCollide = false | |
2402 | Trail.BrickColor = TorsoColor | |
2403 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2404 | Trail.TopSurface = 0 | |
2405 | Trail.BottomSurface = 0 | |
2406 | Trail.formFactor = "Custom" | |
2407 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2408 | local ms = Instance.new("BlockMesh",Trail) | |
2409 | ms.Scale = Vector3.new(1,1,1) | |
2410 | local TM = Instance.new("CylinderMesh",Trail) | |
2411 | TM.Scale = Vector3.new(1,1,1) | |
2412 | Old = New | |
2413 | coroutine.wrap(function() | |
2414 | for i = 1,0,-0.1 do | |
2415 | wait() | |
2416 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2417 | end | |
2418 | Trail:remove() | |
2419 | end)() | |
2420 | coroutine.wrap(function() | |
2421 | for i = 1,10 do | |
2422 | wait() | |
2423 | Trail.Transparency = Trail.Transparency +0.1 | |
2424 | end end)()end end)() | |
2425 | coroutine.wrap(function() | |
2426 | local Old = Handle.CFrame.p | |
2427 | while wait()do | |
2428 | if not TrailDeb then break end | |
2429 | local New = Handle.CFrame.p | |
2430 | local Mag =(Old -New).magnitude | |
2431 | local Dis =(Old +New)/2 | |
2432 | local Trail = Instance.new("Part",Character) | |
2433 | Trail.Material = "Neon" | |
2434 | Trail.Anchored = true | |
2435 | Trail.CanCollide = false | |
2436 | Trail.BrickColor = TorsoColor | |
2437 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2438 | Trail.TopSurface = 0 | |
2439 | Trail.BottomSurface = 0 | |
2440 | Trail.formFactor = "Custom" | |
2441 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2442 | local ms = Instance.new("BlockMesh",Trail) | |
2443 | ms.Scale = Vector3.new(1,1,1) | |
2444 | local TM = Instance.new("CylinderMesh",Trail) | |
2445 | TM.Scale = Vector3.new(1,1,1) | |
2446 | Old = New | |
2447 | coroutine.wrap(function() | |
2448 | for i = 1,0,-0.1 do | |
2449 | wait() | |
2450 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2451 | end | |
2452 | Trail:remove() | |
2453 | end)() | |
2454 | coroutine.wrap(function() | |
2455 | for i = 1,10 do | |
2456 | wait() | |
2457 | Trail.Transparency = Trail.Transparency +0.1 | |
2458 | end end)()end end)() | |
2459 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2460 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2461 | so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9) | |
2462 | for i=0,1,0.08 do | |
2463 | swait() | |
2464 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2465 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2466 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2467 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2) | |
2468 | Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2) | |
2469 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
2470 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3) | |
2471 | end | |
2472 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
2473 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2474 | for i=0,1,0.08 do | |
2475 | swait() | |
2476 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2477 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2478 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2479 | Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2) | |
2480 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2) | |
2481 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
2482 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3) | |
2483 | end | |
2484 | --dmgstop() | |
2485 | attack=false | |
2486 | con1:disconnect() | |
2487 | con2:disconnect() | |
2488 | if TrailDeb == true then | |
2489 | TrailDeb = false | |
2490 | end | |
2491 | end | |
2492 | ||
2493 | function Hai() | |
2494 | attack=true | |
2495 | Humanoid.WalkSpeed=0 | |
2496 | so("http://www.roblox.com/asset/?id=159882567",Torso,1,1) | |
2497 | for i=0,1,0.1 do | |
2498 | swait() | |
2499 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2500 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2501 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2502 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2503 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2504 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2505 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2506 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2507 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2508 | end | |
2509 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8) | |
2510 | for i=0,1,0.1 do | |
2511 | swait() | |
2512 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2513 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2514 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2515 | Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2) | |
2516 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2517 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2518 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2519 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5) | |
2520 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2521 | end | |
2522 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2523 | for i=0,1,0.1 do | |
2524 | swait() | |
2525 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2526 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2527 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2528 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2529 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2530 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2531 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2532 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2533 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2534 | ||
2535 | end | |
2536 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8) | |
2537 | for i=0,1,0.1 do | |
2538 | swait() | |
2539 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2540 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2541 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2542 | Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2) | |
2543 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2544 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2545 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2546 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3) | |
2547 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2548 | end | |
2549 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2550 | for i=0,1,0.1 do | |
2551 | swait() | |
2552 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2553 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2554 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2555 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2556 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2557 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2558 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2559 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2560 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2561 | end | |
2562 | --dmgstop() | |
2563 | Humanoid.WalkSpeed=12 | |
2564 | attack=false | |
2565 | end | |
2566 | ||
2567 | function Die() | |
2568 | attack=true | |
2569 | Footsteps:Stop() | |
2570 | Footsteps2:Stop() | |
2571 | local Fire = it("Sound",Character.Torso) | |
2572 | Fire.SoundId = "rbxassetid://192104941" | |
2573 | Fire.Looped = true | |
2574 | Fire.Pitch = 1 | |
2575 | Fire.Volume = 1 | |
2576 | local Fire2 = it("Sound",Handle2) | |
2577 | Fire2.SoundId = "rbxassetid://192104941" | |
2578 | Fire2.Looped = true | |
2579 | Fire2.Pitch = 1 | |
2580 | Fire2.Volume = 1 | |
2581 | local Fire3 = it("Sound",Handle) | |
2582 | Fire3.SoundId = "rbxassetid://192104941" | |
2583 | Fire3.Looped = true | |
2584 | Fire3.Pitch = 1 | |
2585 | Fire3.Volume = 1 | |
2586 | local Fire4 = it("Sound",handle) | |
2587 | Fire4.SoundId = "rbxassetid://192104941" | |
2588 | Fire4.Looped = true | |
2589 | Fire4.Pitch = 1 | |
2590 | Fire4.Volume = 1 | |
2591 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
2592 | fire.Lifetime = NumberRange.new(0.5) | |
2593 | fire.Speed = NumberRange.new(1, 3) | |
2594 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2595 | fire.Rate = 0 | |
2596 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2597 | fire.LightEmission = 0.6 | |
2598 | fire.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2599 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2600 | local fire2 = Instance.new("ParticleEmitter", Handle) | |
2601 | fire2.Lifetime = NumberRange.new(0.5) | |
2602 | fire2.Speed = NumberRange.new(1, 3) | |
2603 | fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)}) | |
2604 | fire2.Rate = 0 | |
2605 | fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2606 | fire2.LightEmission = 0.6 | |
2607 | fire2.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2608 | fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2609 | local fire3 = Instance.new("ParticleEmitter", Handle2) | |
2610 | fire3.Lifetime = NumberRange.new(0.5) | |
2611 | fire3.Speed = NumberRange.new(1, 3) | |
2612 | fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)}) | |
2613 | fire3.Rate = 0 | |
2614 | fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2615 | fire3.LightEmission = 0.6 | |
2616 | fire3.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2617 | fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2618 | local fire4 = Instance.new("ParticleEmitter", handle) | |
2619 | fire4.Lifetime = NumberRange.new(0.5) | |
2620 | fire4.Speed = NumberRange.new(1, 3) | |
2621 | fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2622 | fire4.Rate = 0 | |
2623 | fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2624 | fire4.LightEmission = 0.6 | |
2625 | fire4.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2626 | fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2627 | Humanoid.WalkSpeed = 0 | |
2628 | so("http://www.roblox.com/asset/?id=199149297",Head,1,1) | |
2629 | so("http://www.roblox.com/asset/?id=209527203",Head,1,1) | |
2630 | for i=0,1,0.08 do | |
2631 | swait() | |
2632 | Torso.Velocity=RootPart.CFrame.lookVector*-30 | |
2633 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2) | |
2634 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2) | |
2635 | handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2636 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2637 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2638 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2) | |
2639 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2) | |
2640 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2641 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2642 | end | |
2643 | for i=0,1,0.005 do | |
2644 | swait() | |
2645 | moosick.Volume=1-2*i | |
2646 | light.Range=15-10*i | |
2647 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2648 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2649 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2650 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2651 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2652 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2653 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2654 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2655 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2656 | end | |
2657 | light.Range=0 | |
2658 | for i=0,1,0.01 do | |
2659 | swait() | |
2660 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2661 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2662 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2663 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2664 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2665 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2666 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2667 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2668 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2669 | end | |
2670 | so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9) | |
2671 | fire.Rate = 1000 | |
2672 | fire2.Rate = 1000 | |
2673 | fire3.Rate = 1000 | |
2674 | fire4.Rate = 1000 | |
2675 | Fire:Play() | |
2676 | Fire2:Play() | |
2677 | Fire3:Play() | |
2678 | Fire4:Play() | |
2679 | for i=0,1,0.005 do | |
2680 | swait() | |
2681 | Character.Head.face.Transparency = 0+1*i | |
2682 | LeftArm.Transparency=0+1*i | |
2683 | RightArm.Transparency=0+1*i | |
2684 | LeftLeg.Transparency=0+1*i | |
2685 | RightLeg.Transparency=0+1*i | |
2686 | Head.Transparency=0+1*i | |
2687 | Torso.Transparency=0+1*i | |
2688 | for _,v in pairs(Character:children()) do | |
2689 | if v:IsA("Hat") then | |
2690 | v.Handle.Transparency = 0+1*i | |
2691 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2692 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2693 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2694 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2695 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2696 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2697 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2698 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2699 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2700 | end | |
2701 | end | |
2702 | --dmgstop() | |
2703 | end | |
2704 | Humanoid.Health = 0 | |
2705 | end | |
2706 | ||
2707 | equipanim() | |
2708 | ||
2709 | local sine = 0 | |
2710 | local change = 1 | |
2711 | local val = 0 | |
2712 | ||
2713 | local mananum=0 | |
2714 | while true do | |
2715 | swait() | |
2716 | sine = sine + change | |
2717 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2718 | local velderp=RootPart.Velocity.y | |
2719 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2720 | if equipped==true or equipped==false then | |
2721 | if Anim=="Idle" and attack==false then | |
2722 | idle=idle+1 | |
2723 | else | |
2724 | idle=0 | |
2725 | end | |
2726 | if Humanoid.Health <=20 then | |
2727 | if attack == false then | |
2728 | Humanoid.Health = math.huge | |
2729 | Die() | |
2730 | end | |
2731 | end | |
2732 | if idle>=1000 then | |
2733 | if attack==false then | |
2734 | --Sheath() | |
2735 | end | |
2736 | end | |
2737 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2738 | Anim="Jump" | |
2739 | if attack==false then | |
2740 | Footsteps:Stop() | |
2741 | Footsteps2:Stop() | |
2742 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
2743 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2744 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
2745 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
2746 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2747 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
2748 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2749 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
2750 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
2751 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
2752 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2753 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2754 | end | |
2755 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2756 | Anim="Fall" | |
2757 | if attack==false then | |
2758 | Footsteps:Stop() | |
2759 | Footsteps2:Stop() | |
2760 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
2761 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2762 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
2763 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
2764 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2765 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
2766 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2767 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
2768 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
2769 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2770 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
2771 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
2772 | end | |
2773 | elseif torvel<1 and hitfloor~=nil then | |
2774 | Anim="Idle" | |
2775 | change=0.5 | |
2776 | if idle>=1000 then | |
2777 | if attack==false then | |
2778 | Footsteps:Stop() | |
2779 | Footsteps2:Stop() | |
2780 | Humanoid.WalkSpeed=12 | |
2781 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(50)),.1) | |
2782 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1) | |
2783 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
2784 | RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5) | |
2785 | LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5) | |
2786 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2787 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2788 | handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
2789 | Handleweld.C0=clerp(Handleweld.C0,cf(-2,-1.5+1*math.cos(sine/50),6)*angles(math.rad(60),math.rad(-25),math.rad(-90)),.4) | |
2790 | Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3) | |
2791 | end | |
2792 | else | |
2793 | if attack==false then | |
2794 | Footsteps:Stop() | |
2795 | Footsteps2:Stop() | |
2796 | Humanoid.WalkSpeed=12 | |
2797 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3) | |
2798 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3) | |
2799 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2800 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3) | |
2801 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3) | |
2802 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3) | |
2803 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3) | |
2804 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2805 | Handleweld.C0=clerp(Handleweld.C0,cf(0-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2) | |
2806 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2) | |
2807 | end | |
2808 | end | |
2809 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
2810 | Anim="Walk" | |
2811 | if attack==false then | |
2812 | change=0.8 | |
2813 | --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3) | |
2814 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2815 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
2816 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
2817 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2818 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2819 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2820 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2821 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
2822 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
2823 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
2824 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
2825 | RH.C0=clerp(RH.C0,RHC0,.3) | |
2826 | LH.C0=clerp(LH.C0,LHC0,.3) | |
2827 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2828 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2829 | ]]-- | |
2830 | Footsteps:Play() | |
2831 | Footsteps2:Stop() | |
2832 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3) | |
2833 | Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3) | |
2834 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2835 | RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3) | |
2836 | LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3) | |
2837 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
2838 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
2839 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2840 | Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2) | |
2841 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2) | |
2842 | end | |
2843 | elseif torvel>=22 and hitfloor~=nil then | |
2844 | Anim="Run" | |
2845 | change=1 | |
2846 | if attack==false then | |
2847 | Footsteps:Stop() | |
2848 | Footsteps2:Play() | |
2849 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3) | |
2850 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
2851 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2852 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3) | |
2853 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3) | |
2854 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
2855 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
2856 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2857 | Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2) | |
2858 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2) | |
2859 | end | |
2860 | end | |
2861 | end | |
2862 | fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true) | |
2863 | fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]" | |
2864 | if mana>=100 then | |
2865 | mana=100 | |
2866 | else | |
2867 | if mananum<=8 then | |
2868 | mananum=mananum+1 | |
2869 | else | |
2870 | mananum=0 | |
2871 | mana=mana+1 | |
2872 | end | |
2873 | end | |
2874 | end | |
2875 | -- ~CLarramore |