SHOW:
|
|
- or go back to the newest paste.
1 | - | -- This script has been converted to FE by iPxter |
1 | + | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | script.Parent = Player.Character | |
5 | ||
6 | --RemoteEvent for communicating | |
7 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
7 | + | |
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 | |
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' | |
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 | |
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")) | |
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 | |
785 | h.MaxHealth=0 | |
786 | h.Parent=m | |
787 | c=Instance.new("Part") | |
788 | c.Transparency=0 | |
789 | c.BrickColor=TorsoColor | |
790 | c.Name="Head" | |
791 | c.TopSurface=0 | |
792 | c.BottomSurface=0 | |
793 | c.formFactor="Plate" | |
794 | c.Size=Vector3.new(1,.4,1) | |
795 | ms=Instance.new("CylinderMesh") | |
796 | ms.Scale=Vector3.new(.8,.8,.8) | |
797 | so("http://www.roblox.com/asset/?id=199149269",c,1,1) | |
798 | if CRIT==true then | |
799 | ms.Scale=Vector3.new(1,1.25,1) | |
800 | end | |
801 | ms.Parent=c | |
802 | c.Reflectance=0 | |
803 | Instance.new("BodyGyro").Parent=c | |
804 | c.Parent=m | |
805 | if Char:findFirstChild("Head")~=nil then | |
806 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
807 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
808 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
809 | end | |
810 | f=Instance.new("BodyPosition") | |
811 | f.P=2000 | |
812 | f.D=100 | |
813 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
814 | f.position=c.Position+Vector3.new(0,3,0) | |
815 | f.Parent=c | |
816 | game:GetService("Debris"):AddItem(m,.5+du) | |
817 | c.CanCollide=false | |
818 | m.Parent=workspace | |
819 | c.CanCollide=false | |
820 | end | |
821 | ||
822 | Player=game:GetService('Players').TinkerElsa44 | |
823 | Character=Player.Character | |
824 | m=Instance.new('Model',Character) | |
825 | ||
826 | ||
827 | local function weldBetween(a, b) | |
828 | local weldd = Instance.new("ManualWeld") | |
829 | weldd.Part0 = a | |
830 | weldd.Part1 = b | |
831 | weldd.C0 = CFrame.new() | |
832 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
833 | weldd.Parent = a | |
834 | return weldd | |
835 | end | |
836 | ||
837 | it=Instance.new | |
838 | ||
839 | function nooutline(part) | |
840 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
841 | end | |
842 | ||
843 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
844 | local fp=it("Part") | |
845 | fp.formFactor=formfactor | |
846 | fp.Parent=parent | |
847 | fp.Reflectance=reflectance | |
848 | fp.Transparency=transparency | |
849 | fp.CanCollide=false | |
850 | fp.Locked=true | |
851 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
852 | fp.Name=name | |
853 | fp.Size=size | |
854 | fp.Position=Character.Torso.Position | |
855 | nooutline(fp) | |
856 | fp.Material=material | |
857 | fp:BreakJoints() | |
858 | return fp | |
859 | end | |
860 | ||
861 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
862 | local mesh=it(Mesh) | |
863 | mesh.Parent=part | |
864 | if Mesh=="SpecialMesh" then | |
865 | mesh.MeshType=meshtype | |
866 | mesh.MeshId=meshid | |
867 | end | |
868 | mesh.Offset=offset | |
869 | mesh.Scale=scale | |
870 | return mesh | |
871 | end | |
872 | ||
873 | function weld(parent,part0,part1,c0,c1) | |
874 | local weld=it("Weld") | |
875 | weld.Parent=parent | |
876 | weld.Part0=part0 | |
877 | weld.Part1=part1 | |
878 | weld.C0=c0 | |
879 | weld.C1=c1 | |
880 | return weld | |
881 | end | |
882 | ||
883 | local modelzorz=Instance.new("Model") | |
884 | modelzorz.Parent=Character | |
885 | modelzorz.Name="Claw1" | |
886 | ||
887 | Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1)) | |
888 | 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)) | |
889 | mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
890 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
891 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906)) | |
892 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
893 | 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)) | |
894 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
894 | + | |
895 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
896 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996)) | |
897 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
898 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459)) | |
899 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
900 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592)) | |
901 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
902 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537)) | |
903 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
904 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266)) | |
905 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
906 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906)) | |
907 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
908 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265)) | |
909 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
910 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829)) | |
911 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
911 | + | |
912 | 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)) | |
913 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
913 | + | |
914 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
915 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682)) | |
916 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
917 | 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)) | |
918 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
918 | + | |
919 | Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
920 | Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086)) | |
921 | mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15)) | |
922 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
923 | - | Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(4.29999971, 4.30000019, 1)) |
923 | + | |
924 | 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)) | |
925 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
926 | 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)) | |
927 | 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)) | |
928 | ||
929 | local modelzorz2=Instance.new("Model") | |
930 | modelzorz2.Parent=Character | |
931 | modelzorz2.Name="Claw2" | |
932 | ||
933 | Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1)) | |
934 | 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)) | |
935 | mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
936 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
937 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183)) | |
938 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
939 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009)) | |
940 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
941 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139)) | |
942 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
942 | + | |
943 | 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)) | |
944 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
944 | + | |
945 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
946 | 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)) | |
947 | 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)) | |
948 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
949 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958)) | |
950 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
951 | 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)) | |
952 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
952 | + | |
953 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
954 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885)) | |
955 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
956 | 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)) | |
957 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
957 | + | |
958 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
959 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696)) | |
960 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
961 | 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)) | |
962 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
962 | + | |
963 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
964 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183)) | |
965 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
966 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377)) | |
967 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
968 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329)) | |
969 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
969 | + | Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(4.29999971, 4.30000019, 1)) |
970 | Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636)) | |
971 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
971 | + | |
972 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(2.20000005, 1, 1)) | |
973 | - | Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(4.29999971, 4.30000019, 1)) |
973 | + | |
974 | ||
975 | local modelzorz3=Instance.new("Model") | |
976 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(2.20000005, 1, 1)) |
976 | + | |
977 | modelzorz3.Name="Eye" | |
978 | ||
979 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
980 | 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)) | |
981 | mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1)) | |
982 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
983 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
984 | 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)) | |
985 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
986 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) |
986 | + | |
987 | 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)) | |
988 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
989 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) |
989 | + | |
990 | 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)) | |
991 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
992 | - | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Part",Vector3.new(3.79999995, 4, 1.39999998)) |
992 | + | |
993 | 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)) | |
994 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
995 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752)) | |
996 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Tr. Red","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
997 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
998 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
999 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702)) | |
1000 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","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)) |
1001 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537)) | |
1002 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) |
1002 | + | |
1003 | moosick.SoundId = "rbxassetid://927739239" | |
1004 | - | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"white","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) |
1004 | + | |
1005 | moosick.Looped = true | |
1006 | moosick.Pitch = 1 | |
1007 | - | moosick.SoundId = "rbxassetid://1321038120 " |
1007 | + | |
1008 | moosick:Play() | |
1009 | ||
1010 | anim = Character:findFirstChild("Animate") | |
1011 | if anim then | |
1012 | anim:Destroy() | |
1013 | end | |
1014 | ||
1015 | local particleemitter = Instance.new("ParticleEmitter", Handle) | |
1016 | particleemitter.VelocitySpread = 180 | |
1017 | particleemitter.Lifetime = NumberRange.new(0.1) | |
1018 | particleemitter.Speed = NumberRange.new(2) | |
1019 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)}) | |
1020 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
1021 | particleemitter.Rate = 100 | |
1022 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
1023 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1024 | particleemitter.LightEmission = 0 | |
1025 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
1026 | ||
1027 | local particleemitter = Instance.new("ParticleEmitter", Handle2) | |
1028 | particleemitter.VelocitySpread = 180 | |
1029 | particleemitter.Lifetime = NumberRange.new(0.1) | |
1030 | particleemitter.Speed = NumberRange.new(2) | |
1031 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)}) | |
1032 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
1033 | particleemitter.Rate = 100 | |
1034 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
1035 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1036 | particleemitter.LightEmission = 0 | |
1037 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
1038 | ||
1039 | local particleemitter = Instance.new("ParticleEmitter", handle) | |
1040 | particleemitter.VelocitySpread = 180 | |
1041 | particleemitter.Lifetime = NumberRange.new(0.1) | |
1042 | particleemitter.Speed = NumberRange.new(2) | |
1043 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)}) | |
1044 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
1045 | particleemitter.Rate = 100 | |
1046 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
1047 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1048 | particleemitter.LightEmission = 0.8 | |
1049 | particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
1050 | ||
1051 | local light = Instance.new("PointLight", Character.Torso) | |
1052 | light.Color = Color3.new(255,255,255) | |
1053 | light.Brightness = 5 | |
1054 | light.Range = 15 | |
1055 | ||
1056 | particleemitter.Enabled = true | |
1057 | ||
1058 | local Footsteps = it("Sound",Character.Torso) | |
1059 | Footsteps.SoundId = "rbxassetid://142665235" | |
1060 | Footsteps.Looped = true | |
1061 | Footsteps.Pitch = 0.8 | |
1062 | Footsteps.Volume = 0.3 | |
1063 | ||
1064 | local Footsteps2 = it("Sound",Character.Torso) | |
1065 | Footsteps2.SoundId = "rbxassetid://142665235" | |
1066 | Footsteps2.Looped = true | |
1067 | Footsteps2.Pitch = 1 | |
1068 | Footsteps2.Volume = 0.4 | |
1069 | ||
1070 | local cam = game.Workspace.CurrentCamera | |
1071 | ||
1072 | --cam.CameraSubject = Character | |
1073 | ||
1074 | for i,v in pairs(Head:children()) do | |
1075 | if v:IsA("Sound") then | |
1076 | v:Destroy() | |
1077 | end | |
1078 | end | |
1079 | ||
1080 | mouse.Button1Down:connect(function() | |
1081 | if attack==false and attacktype==1 then | |
1082 | attacktype=2 | |
1083 | attackone() | |
1084 | elseif attack==false and attacktype==2 then | |
1085 | attacktype=3 | |
1086 | attacktwo() | |
1087 | elseif attack==false and attacktype==3 then | |
1088 | attacktype=4 | |
1089 | attackthree() | |
1090 | elseif attack==false and attacktype==4 then | |
1091 | attacktype=1 | |
1092 | attackfour() | |
1093 | end | |
1094 | end) | |
1095 | ||
1096 | mouse.KeyDown:connect(function(k) | |
1097 | k=k:lower() | |
1098 | if k=='e' then | |
1099 | if attack==false and mana>=20 then | |
1100 | Push() | |
1101 | end | |
1102 | elseif k=='g' then | |
1103 | if attack==false and mana>=50 then | |
1104 | Twirl() | |
1105 | end | |
1106 | elseif k=='v' then | |
1107 | if attack==false and mana>=25 then | |
1108 | MagicJump() | |
1109 | end | |
1110 | elseif k=='q' then | |
1111 | if attack==false then | |
1112 | idle=1000 | |
1113 | end | |
1114 | elseif k=='h' then | |
1115 | if attack==false then | |
1116 | mana=100 | |
1117 | end | |
1118 | elseif k=='y' then | |
1119 | if attack==false and mana>=100 then | |
1120 | Shred() | |
1121 | end | |
1122 | elseif k=='f' then | |
1123 | if attack==false and mana>=40 then | |
1124 | Spin() | |
1125 | end | |
1126 | elseif k=='r' then | |
1127 | if attack==false and mana>=20 then | |
1128 | Clap() | |
1129 | end | |
1130 | elseif k=='t' then | |
1131 | if attack==false then | |
1132 | Hai() | |
1133 | end | |
1134 | elseif k=='0' then | |
1135 | if attack==false then | |
1136 | Humanoid.WalkSpeed=(56) | |
1137 | end | |
1138 | elseif k=='j' then | |
1139 | if attack==false then | |
1140 | Humanoid.Health = 100 | |
1141 | print("Congrats, you commited suicide.") | |
1142 | end | |
1143 | end | |
1144 | end) | |
1145 | ||
1146 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1147 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1148 | prt.Anchored=true | |
1149 | prt.CFrame=cframe | |
1150 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1151 | game:GetService("Debris"):AddItem(prt,2) | |
1152 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1153 | for i=0,1,delay do | |
1154 | wait() | |
1155 | Part.CFrame=Part.CFrame | |
1156 | Part.Transparency=i | |
1157 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1158 | end | |
1159 | Part.Parent=nil | |
1160 | end),prt,msh) | |
1161 | end | |
1162 | ||
1163 | TrailDeb = false | |
1164 | ||
1165 | function equipanim() | |
1166 | attack=true | |
1167 | Humanoid.WalkSpeed = 0 | |
1168 | if TrailDeb == false then | |
1169 | TrailDeb = true | |
1170 | end | |
1171 | ||
1172 | ||
1173 | coroutine.wrap(function() | |
1174 | local Old = handle.CFrame.p | |
1175 | while wait()do | |
1176 | if not TrailDeb then break end | |
1177 | local New = handle.CFrame.p | |
1178 | local Mag =(Old -New).magnitude | |
1179 | local Dis =(Old +New)/2 | |
1180 | local Trail = Instance.new("Part",Character) | |
1181 | Trail.Material = "Neon" | |
1182 | Trail.Anchored = true | |
1183 | Trail.CanCollide = false | |
1184 | Trail.BrickColor = TorsoColor | |
1185 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1186 | Trail.TopSurface = 0 | |
1187 | Trail.BottomSurface = 0 | |
1188 | Trail.formFactor = "Custom" | |
1189 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1190 | local ms = Instance.new("BlockMesh",Trail) | |
1191 | ms.Scale = Vector3.new(1,1,1) | |
1192 | local TM = Instance.new("CylinderMesh",Trail) | |
1193 | TM.Scale = Vector3.new(1,1,1) | |
1194 | Old = New | |
1195 | coroutine.wrap(function() | |
1196 | for i = 1,0,-0.1 do | |
1197 | wait() | |
1198 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1199 | end | |
1200 | Trail:remove() | |
1201 | end)() | |
1202 | coroutine.wrap(function() | |
1203 | for i = 1,10 do | |
1204 | wait() | |
1205 | Trail.Transparency = Trail.Transparency +0.1 | |
1206 | end end)()end end)() | |
1207 | coroutine.wrap(function() | |
1208 | local Old = Handle.CFrame.p | |
1209 | while wait()do | |
1210 | if not TrailDeb then break end | |
1211 | local New = Handle.CFrame.p | |
1212 | local Mag =(Old -New).magnitude | |
1213 | local Dis =(Old +New)/2 | |
1214 | local Trail = Instance.new("Part",Character) | |
1215 | Trail.Material = "Neon" | |
1216 | Trail.Anchored = true | |
1217 | Trail.CanCollide = false | |
1218 | Trail.BrickColor = TorsoColor | |
1219 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1220 | Trail.TopSurface = 0 | |
1221 | Trail.BottomSurface = 0 | |
1222 | Trail.formFactor = "Custom" | |
1223 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1224 | local ms = Instance.new("BlockMesh",Trail) | |
1225 | ms.Scale = Vector3.new(1,1,1) | |
1226 | local TM = Instance.new("CylinderMesh",Trail) | |
1227 | TM.Scale = Vector3.new(1,1,1) | |
1228 | Old = New | |
1229 | coroutine.wrap(function() | |
1230 | for i = 1,0,-0.1 do | |
1231 | wait() | |
1232 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1233 | end | |
1234 | Trail:remove() | |
1235 | end)() | |
1236 | coroutine.wrap(function() | |
1237 | for i = 1,10 do | |
1238 | wait() | |
1239 | Trail.Transparency = Trail.Transparency +0.1 | |
1240 | end end)()end end)() | |
1241 | coroutine.wrap(function() | |
1242 | local Old = Handle2.CFrame.p | |
1243 | while wait()do | |
1244 | if not TrailDeb then break end | |
1245 | local New = Handle2.CFrame.p | |
1246 | local Mag =(Old -New).magnitude | |
1247 | local Dis =(Old +New)/2 | |
1248 | local Trail = Instance.new("Part",Character) | |
1249 | Trail.Material = "Neon" | |
1250 | Trail.Anchored = true | |
1251 | Trail.CanCollide = false | |
1252 | Trail.BrickColor = TorsoColor | |
1253 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1254 | Trail.TopSurface = 0 | |
1255 | Trail.BottomSurface = 0 | |
1256 | Trail.formFactor = "Custom" | |
1257 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1258 | local ms = Instance.new("BlockMesh",Trail) | |
1259 | ms.Scale = Vector3.new(1,1,1) | |
1260 | local TM = Instance.new("CylinderMesh",Trail) | |
1261 | TM.Scale = Vector3.new(1,1,1) | |
1262 | Old = New | |
1263 | coroutine.wrap(function() | |
1264 | for i = 1,0,-0.1 do | |
1265 | wait() | |
1266 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1267 | end | |
1268 | Trail:remove() | |
1269 | end)() | |
1270 | coroutine.wrap(function() | |
1271 | for i = 1,10 do | |
1272 | wait() | |
1273 | Trail.Transparency = Trail.Transparency +0.1 | |
1274 | end end)()end end)() | |
1275 | so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5) | |
1276 | for i=0,1,0.005 do | |
1277 | swait() | |
1278 | moosick.Volume = 0+1*i | |
1279 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2) | |
1280 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2) | |
1281 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1282 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1283 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1284 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2) | |
1285 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2) | |
1286 | end | |
1287 | for i=0,1,0.005 do | |
1288 | swait() | |
1289 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2) | |
1290 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2) | |
1291 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1292 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1293 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05) | |
1294 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2) | |
1295 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2) | |
1296 | end | |
1297 | so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9) | |
1298 | so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9) | |
1299 | for i=0,1,0.005 do | |
1300 | swait() | |
1301 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1) | |
1302 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1) | |
1303 | handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
1304 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1) | |
1305 | Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1) | |
1306 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
1307 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
1308 | 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) | |
1309 | 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) | |
1310 | end | |
1311 | for i=0,1,0.04 do | |
1312 | swait() | |
1313 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1314 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1315 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1316 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1317 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1318 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1319 | 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) | |
1320 | 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) | |
1321 | end | |
1322 | --dmgstop() | |
1323 | attack=false | |
1324 | Humanoid.WalkSpeed = 12 | |
1325 | if TrailDeb == true then | |
1326 | TrailDeb = false | |
1327 | end | |
1328 | end | |
1329 | ||
1330 | function attackone() | |
1331 | attack=true | |
1332 | if TrailDeb == false then | |
1333 | TrailDeb = true | |
1334 | end | |
1335 | ||
1336 | ||
1337 | coroutine.wrap(function() | |
1338 | local Old = Handle.CFrame.p | |
1339 | while wait()do | |
1340 | if not TrailDeb then break end | |
1341 | local New = Handle.CFrame.p | |
1342 | local Mag =(Old -New).magnitude | |
1343 | local Dis =(Old +New)/2 | |
1344 | local Trail = Instance.new("Part",Character) | |
1345 | Trail.Material = "Neon" | |
1346 | Trail.Anchored = true | |
1347 | Trail.CanCollide = false | |
1348 | Trail.BrickColor = TorsoColor | |
1349 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1350 | Trail.TopSurface = 0 | |
1351 | Trail.BottomSurface = 0 | |
1352 | Trail.formFactor = "Custom" | |
1353 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1354 | local ms = Instance.new("BlockMesh",Trail) | |
1355 | ms.Scale = Vector3.new(1,1,1) | |
1356 | local TM = Instance.new("CylinderMesh",Trail) | |
1357 | TM.Scale = Vector3.new(1,1,1) | |
1358 | Old = New | |
1359 | coroutine.wrap(function() | |
1360 | for i = 1,0,-0.1 do | |
1361 | wait() | |
1362 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1363 | end | |
1364 | Trail:remove() | |
1365 | end)() | |
1366 | coroutine.wrap(function() | |
1367 | for i = 1,10 do | |
1368 | wait() | |
1369 | Trail.Transparency = Trail.Transparency +0.1 | |
1370 | end end)()end end)() | |
1371 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1372 | for i=0,1,0.08 do | |
1373 | swait() | |
1374 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1375 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1376 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1377 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1378 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1379 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1380 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1381 | end | |
1382 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9) | |
1383 | so("http://www.roblox.com/asset/?id=159972643",Torso,1,1) | |
1384 | for i=0,1,0.1 do | |
1385 | swait() | |
1386 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1387 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1388 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1389 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1390 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1391 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1392 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1393 | end | |
1394 | --dmgstop() | |
1395 | attack=false | |
1396 | con1:disconnect() | |
1397 | if TrailDeb == true then | |
1398 | TrailDeb = false | |
1399 | end | |
1400 | end | |
1401 | ||
1402 | function attacktwo() | |
1403 | attack=true | |
1404 | if TrailDeb == false then | |
1405 | TrailDeb = true | |
1406 | end | |
1407 | ||
1408 | ||
1409 | coroutine.wrap(function() | |
1410 | local Old = Handle2.CFrame.p | |
1411 | while wait()do | |
1412 | if not TrailDeb then break end | |
1413 | local New = Handle2.CFrame.p | |
1414 | local Mag =(Old -New).magnitude | |
1415 | local Dis =(Old +New)/2 | |
1416 | local Trail = Instance.new("Part",Character) | |
1417 | Trail.Material = "Neon" | |
1418 | Trail.Anchored = true | |
1419 | Trail.CanCollide = false | |
1420 | Trail.BrickColor = TorsoColor | |
1421 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1422 | Trail.TopSurface = 0 | |
1423 | Trail.BottomSurface = 0 | |
1424 | Trail.formFactor = "Custom" | |
1425 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1426 | local ms = Instance.new("BlockMesh",Trail) | |
1427 | ms.Scale = Vector3.new(1,1,1) | |
1428 | local TM = Instance.new("CylinderMesh",Trail) | |
1429 | TM.Scale = Vector3.new(1,1,1) | |
1430 | Old = New | |
1431 | coroutine.wrap(function() | |
1432 | for i = 1,0,-0.1 do | |
1433 | wait() | |
1434 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1435 | end | |
1436 | Trail:remove() | |
1437 | end)() | |
1438 | coroutine.wrap(function() | |
1439 | for i = 1,10 do | |
1440 | wait() | |
1441 | Trail.Transparency = Trail.Transparency +0.1 | |
1442 | end end)()end end)() | |
1443 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1444 | for i=0,1,0.08 do | |
1445 | swait() | |
1446 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1447 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1448 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1449 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
1450 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1451 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
1452 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1453 | end | |
1454 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
1455 | so("http://www.roblox.com/asset/?id=159972627",Torso,1,1) | |
1456 | for i=0,1,0.1 do | |
1457 | swait() | |
1458 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1459 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1460 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1461 | Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2) | |
1462 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1463 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1464 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1465 | end | |
1466 | --dmgstop() | |
1467 | attack=false | |
1468 | con1:disconnect() | |
1469 | if TrailDeb == true then | |
1470 | TrailDeb = false | |
1471 | end | |
1472 | end | |
1473 | ||
1474 | function attackthree() | |
1475 | attack=true | |
1476 | if TrailDeb == false then | |
1477 | TrailDeb = true | |
1478 | end | |
1479 | ||
1480 | ||
1481 | coroutine.wrap(function() | |
1482 | local Old = Handle.CFrame.p | |
1483 | while wait()do | |
1484 | if not TrailDeb then break end | |
1485 | local New = Handle.CFrame.p | |
1486 | local Mag =(Old -New).magnitude | |
1487 | local Dis =(Old +New)/2 | |
1488 | local Trail = Instance.new("Part",Character) | |
1489 | Trail.Material = "Neon" | |
1490 | Trail.Anchored = true | |
1491 | Trail.CanCollide = false | |
1492 | Trail.BrickColor = TorsoColor | |
1493 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1494 | Trail.TopSurface = 0 | |
1495 | Trail.BottomSurface = 0 | |
1496 | Trail.formFactor = "Custom" | |
1497 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1498 | local ms = Instance.new("BlockMesh",Trail) | |
1499 | ms.Scale = Vector3.new(1,1,1) | |
1500 | local TM = Instance.new("CylinderMesh",Trail) | |
1501 | TM.Scale = Vector3.new(1,1,1) | |
1502 | Old = New | |
1503 | coroutine.wrap(function() | |
1504 | for i = 1,0,-0.1 do | |
1505 | wait() | |
1506 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1507 | end | |
1508 | Trail:remove() | |
1509 | end)() | |
1510 | coroutine.wrap(function() | |
1511 | for i = 1,10 do | |
1512 | wait() | |
1513 | Trail.Transparency = Trail.Transparency +0.1 | |
1514 | end end)()end end)() | |
1515 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end) | |
1516 | for i=0,1,0.08 do | |
1517 | swait() | |
1518 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1519 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
1520 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1521 | Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2) | |
1522 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1523 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3) | |
1524 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1525 | end | |
1526 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
1527 | so("http://www.roblox.com/asset/?id=159882477",Torso,1,1) | |
1528 | for i=0,1,0.05 do | |
1529 | swait() | |
1530 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1531 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1532 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1533 | Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2) | |
1534 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1535 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3) | |
1536 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1537 | end | |
1538 | --dmgstop() | |
1539 | attack=false | |
1540 | con1:disconnect() | |
1541 | if TrailDeb == true then | |
1542 | TrailDeb = false | |
1543 | end | |
1544 | end | |
1545 | ||
1546 | function attackfour() | |
1547 | attack=true | |
1548 | if TrailDeb == false then | |
1549 | TrailDeb = true | |
1550 | end | |
1551 | ||
1552 | ||
1553 | coroutine.wrap(function() | |
1554 | local Old = Handle2.CFrame.p | |
1555 | while wait()do | |
1556 | if not TrailDeb then break end | |
1557 | local New = Handle2.CFrame.p | |
1558 | local Mag =(Old -New).magnitude | |
1559 | local Dis =(Old +New)/2 | |
1560 | local Trail = Instance.new("Part",Character) | |
1561 | Trail.Material = "Neon" | |
1562 | Trail.Anchored = true | |
1563 | Trail.CanCollide = false | |
1564 | Trail.BrickColor = TorsoColor | |
1565 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1566 | Trail.TopSurface = 0 | |
1567 | Trail.BottomSurface = 0 | |
1568 | Trail.formFactor = "Custom" | |
1569 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1570 | local ms = Instance.new("BlockMesh",Trail) | |
1571 | ms.Scale = Vector3.new(1,1,1) | |
1572 | local TM = Instance.new("CylinderMesh",Trail) | |
1573 | TM.Scale = Vector3.new(1,1,1) | |
1574 | Old = New | |
1575 | coroutine.wrap(function() | |
1576 | for i = 1,0,-0.1 do | |
1577 | wait() | |
1578 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1579 | end | |
1580 | Trail:remove() | |
1581 | end)() | |
1582 | coroutine.wrap(function() | |
1583 | for i = 1,10 do | |
1584 | wait() | |
1585 | Trail.Transparency = Trail.Transparency +0.1 | |
1586 | end end)()end end)() | |
1587 | coroutine.wrap(function() | |
1588 | local Old = Handle.CFrame.p | |
1589 | while wait()do | |
1590 | if not TrailDeb then break end | |
1591 | local New = Handle.CFrame.p | |
1592 | local Mag =(Old -New).magnitude | |
1593 | local Dis =(Old +New)/2 | |
1594 | local Trail = Instance.new("Part",Character) | |
1595 | Trail.Material = "Neon" | |
1596 | Trail.Anchored = true | |
1597 | Trail.CanCollide = false | |
1598 | Trail.BrickColor = TorsoColor | |
1599 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1600 | Trail.TopSurface = 0 | |
1601 | Trail.BottomSurface = 0 | |
1602 | Trail.formFactor = "Custom" | |
1603 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1604 | local ms = Instance.new("BlockMesh",Trail) | |
1605 | ms.Scale = Vector3.new(1,1,1) | |
1606 | local TM = Instance.new("CylinderMesh",Trail) | |
1607 | TM.Scale = Vector3.new(1,1,1) | |
1608 | Old = New | |
1609 | coroutine.wrap(function() | |
1610 | for i = 1,0,-0.1 do | |
1611 | wait() | |
1612 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1613 | end | |
1614 | Trail:remove() | |
1615 | end)() | |
1616 | coroutine.wrap(function() | |
1617 | for i = 1,10 do | |
1618 | wait() | |
1619 | Trail.Transparency = Trail.Transparency +0.1 | |
1620 | end end)()end end)() | |
1621 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1622 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1623 | for i=0,1,0.08 do | |
1624 | swait() | |
1625 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1626 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1627 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1628 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1629 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1630 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1631 | 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) | |
1632 | 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) | |
1633 | end | |
1634 | if anim then | |
1635 | anim.Disabled=true | |
1636 | end | |
1637 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7) | |
1638 | so("http://www.roblox.com/asset/?id=159882584",Torso,1,1) | |
1639 | for i=0,1,0.04 do | |
1640 | swait() | |
1641 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
1642 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3) | |
1643 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1644 | Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1645 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1646 | RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1647 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1648 | 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) | |
1649 | 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) | |
1650 | end | |
1651 | --dmgstop() | |
1652 | attack=false | |
1653 | con1:disconnect() | |
1654 | con2:disconnect() | |
1655 | if anim then | |
1656 | anim.Disabled=false | |
1657 | end | |
1658 | if TrailDeb == true then | |
1659 | TrailDeb = false | |
1660 | end | |
1661 | end | |
1662 | ||
1663 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
1664 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1665 | prt.Anchored = true | |
1666 | prt.CFrame = cframe | |
1667 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1668 | coroutine.resume(coroutine.create(function() | |
1669 | for i = 0, 1, 0.05 do | |
1670 | wait() | |
1671 | prt.Transparency = i | |
1672 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
1673 | end | |
1674 | prt.Parent = nil | |
1675 | end)) | |
1676 | end | |
1677 | ||
1678 | function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type) | |
1679 | for _, c in pairs(workspace:children()) do | |
1680 | local hum = c:findFirstChild("Humanoid") | |
1681 | if hum ~= nil then | |
1682 | local head = c:findFirstChild("Torso") | |
1683 | if head ~= nil then | |
1684 | local targ = head.Position - Part.Position | |
1685 | local mag = targ.magnitude | |
1686 | if mag <= magni and c.Name ~= Player.Name then | |
1687 | Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3) | |
1688 | end | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | end | |
1693 | ||
1694 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1695 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1696 | prt.Anchored = true | |
1697 | prt.CFrame = cframe | |
1698 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1699 | game:GetService("Debris"):AddItem(prt, 2) | |
1700 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1701 | for i = 0, 1, delay do | |
1702 | swait() | |
1703 | Part.CFrame = Part.CFrame | |
1704 | Part.Transparency = i | |
1705 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1706 | end | |
1707 | Part.Parent = nil | |
1708 | end), prt, msh) | |
1709 | end | |
1710 | ||
1711 | function MagicJump() | |
1712 | if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then | |
1713 | attack=true | |
1714 | mana=mana-25 | |
1715 | --[[ Humanoid.WalkSpeed = 0 | |
1716 | for i=0,1,0.01 do | |
1717 | swait() | |
1718 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1) | |
1719 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1) | |
1720 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
1721 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1) | |
1722 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1) | |
1723 | 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) | |
1724 | 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) | |
1725 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1) | |
1726 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1) | |
1727 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1) | |
1728 | end]]-- | |
1729 | Humanoid.Jump = true | |
1730 | Torso.Velocity = vt(0, 150, 0) | |
1731 | Humanoid.WalkSpeed = 64 | |
1732 | so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8) | |
1733 | so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8) | |
1734 | for i=0,1,0.05 do | |
1735 | swait() | |
1736 | Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3) | |
1737 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1738 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3) | |
1739 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1740 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3) | |
1741 | RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
1742 | LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
1743 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1744 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2) | |
1745 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2) | |
1746 | end | |
1747 | for i=0,1,0.02 do | |
1748 | swait() | |
1749 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
1750 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1751 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
1752 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
1753 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1754 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
1755 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1756 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
1757 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
1758 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1759 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
1760 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
1761 | end | |
1762 | Humanoid.WalkSpeed = 0 | |
1763 | swait(8) | |
1764 | so("http://www.roblox.com/asset/?id=199145477",Torso,1,1) | |
1765 | so("http://www.roblox.com/asset/?id=199145477",Torso,1,1) | |
1766 | local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1767 | if hit~=nil then | |
1768 | swait(2) | |
1769 | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Deep Blue"),"Effect",vt()) | |
1770 | ref.Anchored=true | |
1771 | ref.CFrame=cf(pos) | |
1772 | game:GetService("Debris"):AddItem(ref,3) | |
1773 | - | local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Deep Orange"),"Effect",vt()) |
1773 | + | |
1774 | local Col=BrickColor.new("New Yeller") | |
1775 | 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)) | |
1776 | groundpart.Anchored=true | |
1777 | groundpart.CanCollide=false | |
1778 | 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)) | |
1779 | local Col2=TorsoColor | |
1780 | 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)) | |
1781 | groundpart2.Anchored=true | |
1782 | groundpart2.CanCollide=false | |
1783 | 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)) | |
1784 | game:GetService("Debris"):AddItem(groundpart,5) | |
1785 | game:GetService("Debris"):AddItem(groundpart2,5) | |
1786 | end | |
1787 | BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4) | |
1788 | BlastEffect(BrickColor.new("Deep Blue"),cf(pos),.9,.9,.9,1.2,1.2,1.2) | |
1789 | MagicCircle(BrickColor.new("Teal"),cf(pos),5,5,5,5,5,5,0.05) | |
1790 | MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05) | |
1791 | for i=0,1,0.06 do | |
1792 | - | BlastEffect(BrickColor.new("Deep Orange"),cf(pos),.9,.9,.9,1.2,1.2,1.2) |
1792 | + | |
1793 | - | MagicCircle(BrickColor.new("white"),cf(pos),5,5,5,5,5,5,0.05) |
1793 | + | |
1794 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1795 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3) | |
1796 | RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3) | |
1797 | LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3) | |
1798 | 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) | |
1799 | 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) | |
1800 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1801 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
1802 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
1803 | end | |
1804 | end | |
1805 | swait(20) | |
1806 | Humanoid.WalkSpeed = 12 | |
1807 | --dmgstop() | |
1808 | attack=false | |
1809 | end | |
1810 | end | |
1811 | ||
1812 | function Spin() | |
1813 | attack=true | |
1814 | mana=mana-40 | |
1815 | if TrailDeb == false then | |
1816 | TrailDeb = true | |
1817 | end | |
1818 | ||
1819 | coroutine.wrap(function() | |
1820 | local Old = Handle2.CFrame.p | |
1821 | while wait()do | |
1822 | if not TrailDeb then break end | |
1823 | local New = Handle2.CFrame.p | |
1824 | local Mag =(Old -New).magnitude | |
1825 | local Dis =(Old +New)/2 | |
1826 | local Trail = Instance.new("Part",Character) | |
1827 | Trail.Material = "Neon" | |
1828 | Trail.Anchored = true | |
1829 | Trail.CanCollide = false | |
1830 | Trail.BrickColor = TorsoColor | |
1831 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1832 | Trail.TopSurface = 0 | |
1833 | Trail.BottomSurface = 0 | |
1834 | Trail.formFactor = "Custom" | |
1835 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1836 | local ms = Instance.new("BlockMesh",Trail) | |
1837 | ms.Scale = Vector3.new(1,1,1) | |
1838 | local TM = Instance.new("CylinderMesh",Trail) | |
1839 | TM.Scale = Vector3.new(1,1,1) | |
1840 | Old = New | |
1841 | coroutine.wrap(function() | |
1842 | for i = 1,0,-0.1 do | |
1843 | wait() | |
1844 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1845 | end | |
1846 | Trail:remove() | |
1847 | end)() | |
1848 | coroutine.wrap(function() | |
1849 | for i = 1,10 do | |
1850 | wait() | |
1851 | Trail.Transparency = Trail.Transparency +0.1 | |
1852 | end end)()end end)() | |
1853 | coroutine.wrap(function() | |
1854 | local Old = Handle.CFrame.p | |
1855 | while wait()do | |
1856 | if not TrailDeb then break end | |
1857 | local New = Handle.CFrame.p | |
1858 | local Mag =(Old -New).magnitude | |
1859 | local Dis =(Old +New)/2 | |
1860 | local Trail = Instance.new("Part",Character) | |
1861 | Trail.Material = "Neon" | |
1862 | Trail.Anchored = true | |
1863 | Trail.CanCollide = false | |
1864 | Trail.BrickColor = TorsoColor | |
1865 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1866 | Trail.TopSurface = 0 | |
1867 | Trail.BottomSurface = 0 | |
1868 | Trail.formFactor = "Custom" | |
1869 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1870 | local ms = Instance.new("BlockMesh",Trail) | |
1871 | ms.Scale = Vector3.new(1,1,1) | |
1872 | local TM = Instance.new("CylinderMesh",Trail) | |
1873 | TM.Scale = Vector3.new(1,1,1) | |
1874 | Old = New | |
1875 | coroutine.wrap(function() | |
1876 | for i = 1,0,-0.1 do | |
1877 | wait() | |
1878 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1879 | end | |
1880 | Trail:remove() | |
1881 | end)() | |
1882 | coroutine.wrap(function() | |
1883 | for i = 1,10 do | |
1884 | wait() | |
1885 | Trail.Transparency = Trail.Transparency +0.1 | |
1886 | end end)()end end)() | |
1887 | Footsteps:Stop() | |
1888 | Footsteps2:Stop() | |
1889 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1890 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1891 | so("http://www.roblox.com/asset/?id=159882497",Torso,1,1) | |
1892 | for i=0,1,0.1 do | |
1893 | swait() | |
1894 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1895 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1896 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1897 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1898 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1899 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1900 | end | |
1901 | if anim then | |
1902 | anim.Disabled=true | |
1903 | end | |
1904 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1905 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1906 | for i=0,1,0.05 do | |
1907 | swait() | |
1908 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1909 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1910 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1911 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1912 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1913 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1914 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1915 | end | |
1916 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1917 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1918 | for i=0,1,0.05 do | |
1919 | swait() | |
1920 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1921 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1922 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1923 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1924 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1925 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1926 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1927 | end | |
1928 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2) | |
1929 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1) | |
1930 | for i=0,1,0.05 do | |
1931 | swait() | |
1932 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
1933 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3) | |
1934 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1935 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1936 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1937 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1938 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1939 | end | |
1940 | --dmgstop() | |
1941 | Humanoid.WalkSpeed=12 | |
1942 | attack=false | |
1943 | con1:disconnect() | |
1944 | con2:disconnect() | |
1945 | if anim then | |
1946 | anim.Disabled=false | |
1947 | end | |
1948 | if TrailDeb == true then | |
1949 | TrailDeb = false | |
1950 | end | |
1951 | end | |
1952 | ||
1953 | function Twirl() | |
1954 | mana=mana-50 | |
1955 | attack=true | |
1956 | if TrailDeb == false then | |
1957 | TrailDeb = true | |
1958 | end | |
1959 | ||
1960 | ||
1961 | coroutine.wrap(function() | |
1962 | local Old = Handle2.CFrame.p | |
1963 | while wait()do | |
1964 | if not TrailDeb then break end | |
1965 | local New = Handle2.CFrame.p | |
1966 | local Mag =(Old -New).magnitude | |
1967 | local Dis =(Old +New)/2 | |
1968 | local Trail = Instance.new("Part",Character) | |
1969 | Trail.Material = "Neon" | |
1970 | Trail.Anchored = true | |
1971 | Trail.CanCollide = false | |
1972 | Trail.BrickColor = TorsoColor | |
1973 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1974 | Trail.TopSurface = 0 | |
1975 | Trail.BottomSurface = 0 | |
1976 | Trail.formFactor = "Custom" | |
1977 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1978 | local ms = Instance.new("BlockMesh",Trail) | |
1979 | ms.Scale = Vector3.new(1,1,1) | |
1980 | local TM = Instance.new("CylinderMesh",Trail) | |
1981 | TM.Scale = Vector3.new(1,1,1) | |
1982 | Old = New | |
1983 | coroutine.wrap(function() | |
1984 | for i = 1,0,-0.1 do | |
1985 | wait() | |
1986 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1987 | end | |
1988 | Trail:remove() | |
1989 | end)() | |
1990 | coroutine.wrap(function() | |
1991 | for i = 1,10 do | |
1992 | wait() | |
1993 | Trail.Transparency = Trail.Transparency +0.1 | |
1994 | end end)()end end)() | |
1995 | coroutine.wrap(function() | |
1996 | local Old = Handle.CFrame.p | |
1997 | while wait()do | |
1998 | if not TrailDeb then break end | |
1999 | local New = Handle.CFrame.p | |
2000 | local Mag =(Old -New).magnitude | |
2001 | local Dis =(Old +New)/2 | |
2002 | local Trail = Instance.new("Part",Character) | |
2003 | Trail.Material = "Neon" | |
2004 | Trail.Anchored = true | |
2005 | Trail.CanCollide = false | |
2006 | Trail.BrickColor = TorsoColor | |
2007 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2008 | Trail.TopSurface = 0 | |
2009 | Trail.BottomSurface = 0 | |
2010 | Trail.formFactor = "Custom" | |
2011 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2012 | local ms = Instance.new("BlockMesh",Trail) | |
2013 | ms.Scale = Vector3.new(1,1,1) | |
2014 | local TM = Instance.new("CylinderMesh",Trail) | |
2015 | TM.Scale = Vector3.new(1,1,1) | |
2016 | Old = New | |
2017 | coroutine.wrap(function() | |
2018 | for i = 1,0,-0.1 do | |
2019 | wait() | |
2020 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2021 | end | |
2022 | Trail:remove() | |
2023 | end)() | |
2024 | coroutine.wrap(function() | |
2025 | for i = 1,10 do | |
2026 | wait() | |
2027 | Trail.Transparency = Trail.Transparency +0.1 | |
2028 | end end)()end end)() | |
2029 | Footsteps:Stop() | |
2030 | Footsteps2:Stop() | |
2031 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2032 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2033 | so("http://www.roblox.com/asset/?id=159882598",Torso,1,1) | |
2034 | for i=0,1,0.1 do | |
2035 | swait() | |
2036 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2037 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2038 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2039 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2040 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2041 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2042 | end | |
2043 | if anim then | |
2044 | anim.Disabled=true | |
2045 | end | |
2046 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2047 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2048 | for i=0,1,0.05 do | |
2049 | swait() | |
2050 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2051 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2052 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2053 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2054 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2055 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2056 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2057 | end | |
2058 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2059 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2060 | for i=0,1,0.05 do | |
2061 | swait() | |
2062 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2063 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2064 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2065 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2066 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2067 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2068 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2069 | end | |
2070 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2071 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2072 | for i=0,1,0.05 do | |
2073 | swait() | |
2074 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2075 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2076 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2077 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2078 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2079 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2080 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2081 | end | |
2082 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1) | |
2083 | so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8) | |
2084 | for i=0,1,0.05 do | |
2085 | swait() | |
2086 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2087 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3) | |
2088 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2089 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2090 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2091 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2092 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2093 | end | |
2094 | --dmgstop() | |
2095 | Humanoid.WalkSpeed=12 | |
2096 | attack=false | |
2097 | con1:disconnect() | |
2098 | con2:disconnect() | |
2099 | if anim then | |
2100 | anim.Disabled=false | |
2101 | end | |
2102 | if TrailDeb == true then | |
2103 | TrailDeb = false | |
2104 | end | |
2105 | end | |
2106 | ||
2107 | function Shred() | |
2108 | attack=true | |
2109 | mana=mana-100 | |
2110 | if TrailDeb == false then | |
2111 | TrailDeb = true | |
2112 | end | |
2113 | ||
2114 | ||
2115 | coroutine.wrap(function() | |
2116 | local Old = Handle2.CFrame.p | |
2117 | while wait()do | |
2118 | if not TrailDeb then break end | |
2119 | local New = Handle2.CFrame.p | |
2120 | local Mag =(Old -New).magnitude | |
2121 | local Dis =(Old +New)/2 | |
2122 | local Trail = Instance.new("Part",Character) | |
2123 | Trail.Material = "Neon" | |
2124 | Trail.Anchored = true | |
2125 | Trail.CanCollide = false | |
2126 | Trail.BrickColor = TorsoColor | |
2127 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2128 | Trail.TopSurface = 0 | |
2129 | Trail.BottomSurface = 0 | |
2130 | Trail.formFactor = "Custom" | |
2131 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2132 | local ms = Instance.new("BlockMesh",Trail) | |
2133 | ms.Scale = Vector3.new(1,1,1) | |
2134 | local TM = Instance.new("CylinderMesh",Trail) | |
2135 | TM.Scale = Vector3.new(1,1,1) | |
2136 | Old = New | |
2137 | coroutine.wrap(function() | |
2138 | for i = 1,0,-0.1 do | |
2139 | wait() | |
2140 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2141 | end | |
2142 | Trail:remove() | |
2143 | end)() | |
2144 | coroutine.wrap(function() | |
2145 | for i = 1,10 do | |
2146 | wait() | |
2147 | Trail.Transparency = Trail.Transparency +0.1 | |
2148 | end end)()end end)() | |
2149 | coroutine.wrap(function() | |
2150 | local Old = Handle.CFrame.p | |
2151 | while wait()do | |
2152 | if not TrailDeb then break end | |
2153 | local New = Handle.CFrame.p | |
2154 | local Mag =(Old -New).magnitude | |
2155 | local Dis =(Old +New)/2 | |
2156 | local Trail = Instance.new("Part",Character) | |
2157 | Trail.Material = "Neon" | |
2158 | Trail.Anchored = true | |
2159 | Trail.CanCollide = false | |
2160 | Trail.BrickColor = TorsoColor | |
2161 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2162 | Trail.TopSurface = 0 | |
2163 | Trail.BottomSurface = 0 | |
2164 | Trail.formFactor = "Custom" | |
2165 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2166 | local ms = Instance.new("BlockMesh",Trail) | |
2167 | ms.Scale = Vector3.new(1,1,1) | |
2168 | local TM = Instance.new("CylinderMesh",Trail) | |
2169 | TM.Scale = Vector3.new(1,1,1) | |
2170 | Old = New | |
2171 | coroutine.wrap(function() | |
2172 | for i = 1,0,-0.1 do | |
2173 | wait() | |
2174 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2175 | end | |
2176 | Trail:remove() | |
2177 | end)() | |
2178 | coroutine.wrap(function() | |
2179 | for i = 1,10 do | |
2180 | wait() | |
2181 | Trail.Transparency = Trail.Transparency +0.1 | |
2182 | end end)()end end)() | |
2183 | Footsteps:Stop() | |
2184 | Footsteps2:Stop() | |
2185 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2186 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2187 | so("http://www.roblox.com/asset/?id=159882578",Torso,1,1) | |
2188 | for i=0,1,0.1 do | |
2189 | swait() | |
2190 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2191 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2192 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2193 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2194 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2195 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2196 | end | |
2197 | if anim then | |
2198 | anim.Disabled=true | |
2199 | end | |
2200 | for i=0,1,0.05 do | |
2201 | swait() | |
2202 | Torso.Velocity=RootPart.CFrame.lookVector*20 | |
2203 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2204 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2205 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5) | |
2206 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2207 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2208 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2209 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2210 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2211 | end | |
2212 | for i=0,1,0.05 do | |
2213 | swait() | |
2214 | Torso.Velocity=RootPart.CFrame.lookVector*40 | |
2215 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2216 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2217 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5) | |
2218 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2219 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2220 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2221 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2222 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2223 | end | |
2224 | for i=0,1,0.05 do | |
2225 | swait() | |
2226 | Torso.Velocity=RootPart.CFrame.lookVector*60 | |
2227 | so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2) | |
2228 | so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1) | |
2229 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5) | |
2230 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2231 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2232 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2233 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2234 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2235 | end | |
2236 | so("http://www.roblox.com/asset/?id=159882625",Torso,1,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 | so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1) | |
2241 | for i=0,1,0.05 do | |
2242 | swait() | |
2243 | Torso.Velocity=RootPart.CFrame.lookVector*80 | |
2244 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5) | |
2245 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2246 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2247 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2248 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2249 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2250 | end | |
2251 | for i=0,1,0.005 do | |
2252 | swait() | |
2253 | Torso.Velocity=RootPart.CFrame.lookVector*100 | |
2254 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5) | |
2255 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2256 | Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2257 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2258 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
2259 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
2260 | end | |
2261 | --dmgstop() | |
2262 | Humanoid.WalkSpeed=12 | |
2263 | attack=false | |
2264 | con1:disconnect() | |
2265 | con2:disconnect() | |
2266 | if anim then | |
2267 | anim.Disabled=false | |
2268 | end | |
2269 | if TrailDeb == true then | |
2270 | TrailDeb = false | |
2271 | end | |
2272 | end | |
2273 | ||
2274 | function Push() | |
2275 | attack=true | |
2276 | mana=mana-20 | |
2277 | if TrailDeb == false then | |
2278 | TrailDeb = true | |
2279 | end | |
2280 | ||
2281 | ||
2282 | coroutine.wrap(function() | |
2283 | local Old = Handle2.CFrame.p | |
2284 | while wait()do | |
2285 | if not TrailDeb then break end | |
2286 | local New = Handle2.CFrame.p | |
2287 | local Mag =(Old -New).magnitude | |
2288 | local Dis =(Old +New)/2 | |
2289 | local Trail = Instance.new("Part",Character) | |
2290 | Trail.Material = "Neon" | |
2291 | Trail.Anchored = true | |
2292 | Trail.CanCollide = false | |
2293 | Trail.BrickColor = TorsoColor | |
2294 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2295 | Trail.TopSurface = 0 | |
2296 | Trail.BottomSurface = 0 | |
2297 | Trail.formFactor = "Custom" | |
2298 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2299 | local ms = Instance.new("BlockMesh",Trail) | |
2300 | ms.Scale = Vector3.new(1,1,1) | |
2301 | local TM = Instance.new("CylinderMesh",Trail) | |
2302 | TM.Scale = Vector3.new(1,1,1) | |
2303 | Old = New | |
2304 | coroutine.wrap(function() | |
2305 | for i = 1,0,-0.1 do | |
2306 | wait() | |
2307 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2308 | end | |
2309 | Trail:remove() | |
2310 | end)() | |
2311 | coroutine.wrap(function() | |
2312 | for i = 1,10 do | |
2313 | wait() | |
2314 | Trail.Transparency = Trail.Transparency +0.1 | |
2315 | end end)()end end)() | |
2316 | coroutine.wrap(function() | |
2317 | local Old = Handle.CFrame.p | |
2318 | while wait()do | |
2319 | if not TrailDeb then break end | |
2320 | local New = Handle.CFrame.p | |
2321 | local Mag =(Old -New).magnitude | |
2322 | local Dis =(Old +New)/2 | |
2323 | local Trail = Instance.new("Part",Character) | |
2324 | Trail.Material = "Neon" | |
2325 | Trail.Anchored = true | |
2326 | Trail.CanCollide = false | |
2327 | Trail.BrickColor = TorsoColor | |
2328 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2329 | Trail.TopSurface = 0 | |
2330 | Trail.BottomSurface = 0 | |
2331 | Trail.formFactor = "Custom" | |
2332 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2333 | local ms = Instance.new("BlockMesh",Trail) | |
2334 | ms.Scale = Vector3.new(1,1,1) | |
2335 | local TM = Instance.new("CylinderMesh",Trail) | |
2336 | TM.Scale = Vector3.new(1,1,1) | |
2337 | Old = New | |
2338 | coroutine.wrap(function() | |
2339 | for i = 1,0,-0.1 do | |
2340 | wait() | |
2341 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2342 | end | |
2343 | Trail:remove() | |
2344 | end)() | |
2345 | coroutine.wrap(function() | |
2346 | for i = 1,10 do | |
2347 | wait() | |
2348 | Trail.Transparency = Trail.Transparency +0.1 | |
2349 | end end)()end end)() | |
2350 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2351 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2352 | for i=0,1,0.1 do | |
2353 | swait() | |
2354 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2355 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2356 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2357 | Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2358 | Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2359 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3) | |
2360 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3) | |
2361 | end | |
2362 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
2363 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2364 | so("http://www.roblox.com/asset/?id=159882481",Torso,1,1) | |
2365 | for i=0,1,0.1 do | |
2366 | swait() | |
2367 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2368 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2369 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2370 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2371 | Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2372 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3) | |
2373 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3) | |
2374 | end | |
2375 | --dmgstop() | |
2376 | attack=false | |
2377 | con1:disconnect() | |
2378 | con2:disconnect() | |
2379 | if TrailDeb == true then | |
2380 | TrailDeb = false | |
2381 | end | |
2382 | end | |
2383 | ||
2384 | function Clap() | |
2385 | attack=true | |
2386 | mana=mana-20 | |
2387 | if TrailDeb == false then | |
2388 | TrailDeb = true | |
2389 | end | |
2390 | ||
2391 | ||
2392 | coroutine.wrap(function() | |
2393 | local Old = Handle2.CFrame.p | |
2394 | while wait()do | |
2395 | if not TrailDeb then break end | |
2396 | local New = Handle2.CFrame.p | |
2397 | local Mag =(Old -New).magnitude | |
2398 | local Dis =(Old +New)/2 | |
2399 | local Trail = Instance.new("Part",Character) | |
2400 | Trail.Material = "Neon" | |
2401 | Trail.Anchored = true | |
2402 | Trail.CanCollide = false | |
2403 | Trail.BrickColor = TorsoColor | |
2404 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2405 | Trail.TopSurface = 0 | |
2406 | Trail.BottomSurface = 0 | |
2407 | Trail.formFactor = "Custom" | |
2408 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2409 | local ms = Instance.new("BlockMesh",Trail) | |
2410 | ms.Scale = Vector3.new(1,1,1) | |
2411 | local TM = Instance.new("CylinderMesh",Trail) | |
2412 | TM.Scale = Vector3.new(1,1,1) | |
2413 | Old = New | |
2414 | coroutine.wrap(function() | |
2415 | for i = 1,0,-0.1 do | |
2416 | wait() | |
2417 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2418 | end | |
2419 | Trail:remove() | |
2420 | end)() | |
2421 | coroutine.wrap(function() | |
2422 | for i = 1,10 do | |
2423 | wait() | |
2424 | Trail.Transparency = Trail.Transparency +0.1 | |
2425 | end end)()end end)() | |
2426 | coroutine.wrap(function() | |
2427 | local Old = Handle.CFrame.p | |
2428 | while wait()do | |
2429 | if not TrailDeb then break end | |
2430 | local New = Handle.CFrame.p | |
2431 | local Mag =(Old -New).magnitude | |
2432 | local Dis =(Old +New)/2 | |
2433 | local Trail = Instance.new("Part",Character) | |
2434 | Trail.Material = "Neon" | |
2435 | Trail.Anchored = true | |
2436 | Trail.CanCollide = false | |
2437 | Trail.BrickColor = TorsoColor | |
2438 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
2439 | Trail.TopSurface = 0 | |
2440 | Trail.BottomSurface = 0 | |
2441 | Trail.formFactor = "Custom" | |
2442 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
2443 | local ms = Instance.new("BlockMesh",Trail) | |
2444 | ms.Scale = Vector3.new(1,1,1) | |
2445 | local TM = Instance.new("CylinderMesh",Trail) | |
2446 | TM.Scale = Vector3.new(1,1,1) | |
2447 | Old = New | |
2448 | coroutine.wrap(function() | |
2449 | for i = 1,0,-0.1 do | |
2450 | wait() | |
2451 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
2452 | end | |
2453 | Trail:remove() | |
2454 | end)() | |
2455 | coroutine.wrap(function() | |
2456 | for i = 1,10 do | |
2457 | wait() | |
2458 | Trail.Transparency = Trail.Transparency +0.1 | |
2459 | end end)()end end)() | |
2460 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2461 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end) | |
2462 | so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9) | |
2463 | for i=0,1,0.08 do | |
2464 | swait() | |
2465 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2466 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2467 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2468 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2) | |
2469 | Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2) | |
2470 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
2471 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3) | |
2472 | end | |
2473 | so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8) | |
2474 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2475 | for i=0,1,0.08 do | |
2476 | swait() | |
2477 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2478 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2479 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2480 | Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2) | |
2481 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2) | |
2482 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
2483 | RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3) | |
2484 | end | |
2485 | --dmgstop() | |
2486 | attack=false | |
2487 | con1:disconnect() | |
2488 | con2:disconnect() | |
2489 | if TrailDeb == true then | |
2490 | TrailDeb = false | |
2491 | end | |
2492 | end | |
2493 | ||
2494 | function Hai() | |
2495 | attack=true | |
2496 | Humanoid.WalkSpeed=0 | |
2497 | so("http://www.roblox.com/asset/?id=159882567",Torso,1,1) | |
2498 | for i=0,1,0.1 do | |
2499 | swait() | |
2500 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2501 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2502 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2503 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2504 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2505 | 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) | |
2506 | 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) | |
2507 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2508 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2509 | end | |
2510 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8) | |
2511 | for i=0,1,0.1 do | |
2512 | swait() | |
2513 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2514 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2515 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2516 | Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2) | |
2517 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2518 | 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) | |
2519 | 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) | |
2520 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5) | |
2521 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2522 | end | |
2523 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2524 | for i=0,1,0.1 do | |
2525 | swait() | |
2526 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2527 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2528 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2529 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2530 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2531 | 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) | |
2532 | 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) | |
2533 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2534 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2535 | ||
2536 | end | |
2537 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8) | |
2538 | for i=0,1,0.1 do | |
2539 | swait() | |
2540 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2541 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2542 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2543 | Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2) | |
2544 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2545 | 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) | |
2546 | 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) | |
2547 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3) | |
2548 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2549 | end | |
2550 | so("http://www.roblox.com/asset/?id=231917758",Handle,1,1) | |
2551 | for i=0,1,0.1 do | |
2552 | swait() | |
2553 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2554 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2555 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2556 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2) | |
2557 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2) | |
2558 | 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) | |
2559 | 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) | |
2560 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
2561 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
2562 | end | |
2563 | --dmgstop() | |
2564 | Humanoid.WalkSpeed=12 | |
2565 | attack=false | |
2566 | end | |
2567 | ||
2568 | function Die() | |
2569 | attack=true | |
2570 | Footsteps:Stop() | |
2571 | Footsteps2:Stop() | |
2572 | local Fire = it("Sound",Character.Torso) | |
2573 | Fire.SoundId = "rbxassetid://192104941" | |
2574 | Fire.Looped = true | |
2575 | Fire.Pitch = 1 | |
2576 | Fire.Volume = 1 | |
2577 | local Fire2 = it("Sound",Handle2) | |
2578 | Fire2.SoundId = "rbxassetid://192104941" | |
2579 | Fire2.Looped = true | |
2580 | Fire2.Pitch = 1 | |
2581 | Fire2.Volume = 1 | |
2582 | local Fire3 = it("Sound",Handle) | |
2583 | Fire3.SoundId = "rbxassetid://192104941" | |
2584 | Fire3.Looped = true | |
2585 | Fire3.Pitch = 1 | |
2586 | Fire3.Volume = 1 | |
2587 | local Fire4 = it("Sound",handle) | |
2588 | Fire4.SoundId = "rbxassetid://192104941" | |
2589 | Fire4.Looped = true | |
2590 | Fire4.Pitch = 1 | |
2591 | Fire4.Volume = 1 | |
2592 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
2593 | fire.Lifetime = NumberRange.new(0.5) | |
2594 | fire.Speed = NumberRange.new(1, 3) | |
2595 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2596 | fire.Rate = 0 | |
2597 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2598 | fire.LightEmission = 0.6 | |
2599 | fire.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2600 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2601 | local fire2 = Instance.new("ParticleEmitter", Handle) | |
2602 | fire2.Lifetime = NumberRange.new(0.5) | |
2603 | fire2.Speed = NumberRange.new(1, 3) | |
2604 | fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)}) | |
2605 | fire2.Rate = 0 | |
2606 | fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2607 | fire2.LightEmission = 0.6 | |
2608 | fire2.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2609 | fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2610 | local fire3 = Instance.new("ParticleEmitter", Handle2) | |
2611 | fire3.Lifetime = NumberRange.new(0.5) | |
2612 | fire3.Speed = NumberRange.new(1, 3) | |
2613 | fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)}) | |
2614 | fire3.Rate = 0 | |
2615 | fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2616 | fire3.LightEmission = 0.6 | |
2617 | fire3.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2618 | fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2619 | local fire4 = Instance.new("ParticleEmitter", handle) | |
2620 | fire4.Lifetime = NumberRange.new(0.5) | |
2621 | fire4.Speed = NumberRange.new(1, 3) | |
2622 | fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2623 | fire4.Rate = 0 | |
2624 | fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2625 | fire4.LightEmission = 0.6 | |
2626 | fire4.Texture = "http://www.roblox.com/asset/?id=242911609" | |
2627 | fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2628 | Humanoid.WalkSpeed = 0 | |
2629 | so("http://www.roblox.com/asset/?id=199149297",Head,1,1) | |
2630 | so("http://www.roblox.com/asset/?id=209527203",Head,1,1) | |
2631 | for i=0,1,0.08 do | |
2632 | swait() | |
2633 | Torso.Velocity=RootPart.CFrame.lookVector*-30 | |
2634 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2) | |
2635 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2) | |
2636 | handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2637 | Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2638 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2) | |
2639 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2) | |
2640 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2) | |
2641 | 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) | |
2642 | 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) | |
2643 | end | |
2644 | for i=0,1,0.005 do | |
2645 | swait() | |
2646 | moosick.Volume=1-2*i | |
2647 | light.Range=15-10*i | |
2648 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2649 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2650 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2651 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2652 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2653 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2654 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2655 | 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) | |
2656 | 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) | |
2657 | end | |
2658 | light.Range=0 | |
2659 | for i=0,1,0.01 do | |
2660 | swait() | |
2661 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2662 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2663 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2664 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2665 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2666 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2667 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2668 | 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) | |
2669 | 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) | |
2670 | end | |
2671 | so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9) | |
2672 | fire.Rate = 1000 | |
2673 | fire2.Rate = 1000 | |
2674 | fire3.Rate = 1000 | |
2675 | fire4.Rate = 1000 | |
2676 | Fire:Play() | |
2677 | Fire2:Play() | |
2678 | Fire3:Play() | |
2679 | Fire4:Play() | |
2680 | for i=0,1,0.005 do | |
2681 | swait() | |
2682 | Character.Head.face.Transparency = 0+1*i | |
2683 | LeftArm.Transparency=0+1*i | |
2684 | RightArm.Transparency=0+1*i | |
2685 | LeftLeg.Transparency=0+1*i | |
2686 | RightLeg.Transparency=0+1*i | |
2687 | Head.Transparency=0+1*i | |
2688 | Torso.Transparency=0+1*i | |
2689 | for _,v in pairs(Character:children()) do | |
2690 | if v:IsA("Hat") then | |
2691 | v.Handle.Transparency = 0+1*i | |
2692 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2) | |
2693 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2694 | handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2) | |
2695 | Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2) | |
2696 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
2697 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2) | |
2698 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2699 | 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) | |
2700 | 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) | |
2701 | end | |
2702 | end | |
2703 | --dmgstop() | |
2704 | end | |
2705 | Humanoid.Health = 0 | |
2706 | end | |
2707 | ||
2708 | equipanim() | |
2709 | ||
2710 | local sine = 0 | |
2711 | local change = 1 | |
2712 | local val = 0 | |
2713 | ||
2714 | local mananum=0 | |
2715 | while true do | |
2716 | swait() | |
2717 | sine = sine + change | |
2718 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2719 | local velderp=RootPart.Velocity.y | |
2720 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2721 | if equipped==true or equipped==false then | |
2722 | if Anim=="Idle" and attack==false then | |
2723 | idle=idle+1 | |
2724 | else | |
2725 | idle=0 | |
2726 | end | |
2727 | if Humanoid.Health <=20 then | |
2728 | if attack == false then | |
2729 | Humanoid.Health = math.huge | |
2730 | Die() | |
2731 | end | |
2732 | end | |
2733 | if idle>=1000 then | |
2734 | if attack==false then | |
2735 | --Sheath() | |
2736 | end | |
2737 | end | |
2738 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2739 | Anim="Jump" | |
2740 | if attack==false then | |
2741 | Footsteps:Stop() | |
2742 | Footsteps2:Stop() | |
2743 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
2744 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2745 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
2746 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
2747 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2748 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
2749 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2750 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
2751 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
2752 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
2753 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2754 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2755 | end | |
2756 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2757 | Anim="Fall" | |
2758 | if attack==false then | |
2759 | Footsteps:Stop() | |
2760 | Footsteps2:Stop() | |
2761 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
2762 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2763 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
2764 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
2765 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2766 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
2767 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2768 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
2769 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
2770 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
2771 | Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
2772 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
2773 | end | |
2774 | elseif torvel<1 and hitfloor~=nil then | |
2775 | Anim="Idle" | |
2776 | change=0.5 | |
2777 | if idle>=1000 then | |
2778 | if attack==false then | |
2779 | Footsteps:Stop() | |
2780 | Footsteps2:Stop() | |
2781 | Humanoid.WalkSpeed=12 | |
2782 | 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) | |
2783 | 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) | |
2784 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
2785 | RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5) | |
2786 | LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5) | |
2787 | 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) | |
2788 | 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) | |
2789 | handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
2790 | 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) | |
2791 | 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) | |
2792 | end | |
2793 | else | |
2794 | if attack==false then | |
2795 | Footsteps:Stop() | |
2796 | Footsteps2:Stop() | |
2797 | Humanoid.WalkSpeed=12 | |
2798 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3) | |
2799 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3) | |
2800 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2801 | 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) | |
2802 | 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) | |
2803 | 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) | |
2804 | 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) | |
2805 | 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) | |
2806 | 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) | |
2807 | 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) | |
2808 | end | |
2809 | end | |
2810 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
2811 | Anim="Walk" | |
2812 | if attack==false then | |
2813 | change=0.8 | |
2814 | --[[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) | |
2815 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2816 | 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) | |
2817 | 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) | |
2818 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2819 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2820 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2821 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2822 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
2823 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
2824 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
2825 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
2826 | RH.C0=clerp(RH.C0,RHC0,.3) | |
2827 | LH.C0=clerp(LH.C0,LHC0,.3) | |
2828 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2829 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2830 | ]]-- | |
2831 | Footsteps:Play() | |
2832 | Footsteps2:Stop() | |
2833 | 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) | |
2834 | 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) | |
2835 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2836 | 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) | |
2837 | 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) | |
2838 | 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) | |
2839 | 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) | |
2840 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2841 | 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) | |
2842 | 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) | |
2843 | end | |
2844 | elseif torvel>=22 and hitfloor~=nil then | |
2845 | Anim="Run" | |
2846 | change=1 | |
2847 | if attack==false then | |
2848 | Footsteps:Stop() | |
2849 | Footsteps2:Play() | |
2850 | 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) | |
2851 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
2852 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2853 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3) | |
2854 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3) | |
2855 | 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) | |
2856 | 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) | |
2857 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2858 | 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) | |
2859 | 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) | |
2860 | end | |
2861 | end | |
2862 | end | |
2863 | fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true) | |
2864 | fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]" | |
2865 | if mana>=100 then | |
2866 | mana=100 | |
2867 | else | |
2868 | if mananum<=8 then | |
2869 | mananum=mananum+1 | |
2870 | else | |
2871 | mananum=0 | |
2872 | mana=mana+1 | |
2873 | end | |
2874 | end | |
2875 | end | |
2876 | -- ~CLarramore |