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