SHOW:
|
|
- or go back to the newest paste.
1 | - | p = game.Players.LocalPlayer |
1 | + | -- This script has been converted to FE by iPxter |
2 | - | if p.Name ~= "the770zone" then |
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 | - | if p.Name == "the770zone" then |
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 | - | Player=game:GetService("Players").LocalPlayer |
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 | - | mouse=Player:GetMouse() |
70 | + | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | p = owner | |
88 | if p.Name ~= "valentinvasiliev" then | |
89 | print'Owner Access!' | |
90 | end | |
91 | if p.Name == "valentinvasiliev" then | |
92 | char = p.Character | |
93 | torso = char.Torso | |
94 | neck = char.Torso.Neck | |
95 | ||
96 | Player=owner | |
97 | Character=Player.Character | |
98 | PlayerGui=Player.PlayerGui | |
99 | Backpack=Player.Backpack | |
100 | Torso=Character.Torso | |
101 | Head=Character.Head | |
102 | Humanoid=Character.Humanoid | |
103 | LeftArm=Character["Left Arm"] | |
104 | LeftLeg=Character["Left Leg"] | |
105 | RightArm=Character["Right Arm"] | |
106 | RightLeg=Character["Right Leg"] | |
107 | cam=game.Workspace.CurrentCamera | |
108 | LS=Torso["Left Shoulder"] | |
109 | LH=Torso["Left Hip"] | |
110 | RS=Torso["Right Shoulder"] | |
111 | RH=Torso["Right Hip"] | |
112 | Face = Head.face | |
113 | Neck=Torso.Neck | |
114 | it=Instance.new | |
115 | - | local Player = game.Players.localPlayer |
115 | + | |
116 | vt=Vector3.new | |
117 | cf=CFrame.new | |
118 | euler=CFrame.fromEulerAnglesXYZ | |
119 | angles=CFrame.Angles | |
120 | cloaked=false | |
121 | - | local mouse = Player:GetMouse() |
121 | + | |
122 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
123 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
124 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
125 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
126 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
127 | RootPart=Character.HumanoidRootPart | |
128 | RootJoint=RootPart.RootJoint | |
129 | RootCF=euler(-1.57,0,3.14) | |
130 | attack = false | |
131 | bounce=false | |
132 | cooldown=false | |
133 | deeznuts=false | |
134 | attackdebounce = false | |
135 | deb=false | |
136 | equipped=true | |
137 | hand=false | |
138 | MMouse=nil | |
139 | combo=0 | |
140 | mana=0 | |
141 | trispeed=.2 | |
142 | attackmode='none' | |
143 | local idle=0 | |
144 | local Anim="Idle" | |
145 | local Effects={} | |
146 | local gun=false | |
147 | local shoot=false | |
148 | player=nil | |
149 | mana=0 | |
150 | cam = workspace.CurrentCamera | |
151 | ZTarget = nil | |
152 | RocketTarget = nil | |
153 | local m = Instance.new("Model",Character) | |
154 | m.Name = "WeaponModel" | |
155 | ||
156 | --save shoulders | |
157 | RSH, LSH=nil, nil | |
158 | --welds | |
159 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
160 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
161 | LH=Torso["Left Hip"] | |
162 | RH=Torso["Right Hip"] | |
163 | TorsoColor=Torso.BrickColor | |
164 | function NoOutline(Part) | |
165 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
166 | end | |
167 | player=Player | |
168 | ch=Character | |
169 | RSH=ch.Torso["Right Shoulder"] | |
170 | LSH=ch.Torso["Left Shoulder"] | |
171 | -- | |
172 | RSH.Parent=nil | |
173 | LSH.Parent=nil | |
174 | -- | |
175 | RW.Name="Right Shoulder" | |
176 | RW.Part0=ch.Torso | |
177 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
178 | RW.C1=cf(0, 0.5, 0) | |
179 | RW.Part1=ch["Right Arm"] | |
180 | RW.Parent=ch.Torso | |
181 | -- | |
182 | LW.Name="Left Shoulder" | |
183 | LW.Part0=ch.Torso | |
184 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
185 | LW.C1=cf(0, 0.5, 0) | |
186 | LW.Part1=ch["Left Arm"] | |
187 | LW.Parent=ch.Torso | |
188 | ||
189 | function swait(num) | |
190 | if num==0 or num==nil then | |
191 | game:service'RunService'.Heartbeat:wait(0) | |
192 | else | |
193 | for i=0,num do | |
194 | game:service'RunService'.Heartbeat:wait(0) | |
195 | end | |
196 | end | |
197 | end | |
198 | ||
199 | ||
200 | local Player = owner | |
201 | local Character = Player.Character | |
202 | local red = 255 | |
203 | local green = 255 | |
204 | local blue = 255 | |
205 | local Humanoid = Character.Humanoid | |
206 | local m = Instance.new("Model", Character) | |
207 | m.Name = "WeaponModel" | |
208 | local LeftArm = Character["Left Arm"] | |
209 | local RightArm = Character["Right Arm"] | |
210 | local LeftLeg = Character["Left Leg"] | |
211 | local RightLeg = Character["Right Leg"] | |
212 | local Head = Character.Head | |
213 | local Torso = Character.Torso | |
214 | local cam = game.Workspace.CurrentCamera | |
215 | local RootPart = Character.HumanoidRootPart | |
216 | local RootJoint = RootPart.RootJoint | |
217 | local equipped = false | |
218 | local attack = false | |
219 | local Anim = "Idle" | |
220 | local idle = 0 | |
221 | local attacktype = 1 | |
222 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
223 | local velocity = RootPart.Velocity.y | |
224 | local sine = 0 | |
225 | local change = 1 | |
226 | local grabbed = false | |
227 | local cn = CFrame.new | |
228 | local mr = math.rad | |
229 | local angles = CFrame.Angles | |
230 | local ud = UDim2.new | |
231 | local c3 = Color3.new | |
232 | local lim = 0 | |
233 | local st = 0 | |
234 | - | local v = game.Players.localPlayer |
234 | + | |
235 | local attacktype = 1 | |
236 | local ZTarget, RocketTarget = nil, nil | |
237 | - | plr = game.Players.LocalPlayer |
237 | + | |
238 | - | char = game.Players.LocalPlayer.Character |
238 | + | |
239 | - | hum = game.Players.LocalPlayer.Character.Humanoid |
239 | + | |
240 | - | t = game.Players.LocalPlayer.Character.Torso |
240 | + | |
241 | - | h = game.Players.LocalPlayer.Character.Head |
241 | + | |
242 | - | ra = game.Players.LocalPlayer.Character["Right Arm"] |
242 | + | |
243 | - | la = game.Players.LocalPlayer.Character["Left Arm"] |
243 | + | |
244 | - | rl = game.Players.LocalPlayer.Character["Right Leg"] |
244 | + | |
245 | - | ll = game.Players.LocalPlayer.Character["Left Leg"] |
245 | + | |
246 | ||
247 | function QuaternionFromCFrame(cf) | |
248 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
249 | local trace = m00 + m11 + m22 | |
250 | if trace > 0 then | |
251 | local s = math.sqrt(1 + trace) | |
252 | local recip = 0.5/s | |
253 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
254 | else | |
255 | local i = 0 | |
256 | if m11 > m00 then | |
257 | i = 1 | |
258 | end | |
259 | if m22 > (i == 0 and m00 or m11) then | |
260 | i = 2 | |
261 | end | |
262 | if i == 0 then | |
263 | local s = math.sqrt(m00-m11-m22+1) | |
264 | local recip = 0.5/s | |
265 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
266 | elseif i == 1 then | |
267 | local s = math.sqrt(m11-m22-m00+1) | |
268 | - | mouse = plr:GetMouse() |
268 | + | |
269 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
270 | elseif i == 2 then | |
271 | local s = math.sqrt(m22-m00-m11+1) | |
272 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
273 | end | |
274 | end | |
275 | end | |
276 | ||
277 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
278 | local xs, ys, zs = x + x, y + y, z + z | |
279 | local wx, wy, wz = w*xs, w*ys, w*zs | |
280 | local xx = x*xs | |
281 | local xy = x*ys | |
282 | local xz = x*zs | |
283 | local yy = y*ys | |
284 | local yz = y*zs | |
285 | local zz = z*zs | |
286 | 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)) | |
287 | end | |
288 | ||
289 | function QuaternionSlerp(a, b, t) | |
290 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
291 | local startInterp, finishInterp; | |
292 | if cosTheta >= 0.0001 then | |
293 | if (1 - cosTheta) > 0.0001 then | |
294 | local theta = math.acos(cosTheta) | |
295 | local invSinTheta = 1/math.sin(theta) | |
296 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
297 | finishInterp = math.sin(t*theta)*invSinTheta | |
298 | else | |
299 | startInterp = 1-t | |
300 | finishInterp = t | |
301 | end | |
302 | else | |
303 | if (1+cosTheta) > 0.0001 then | |
304 | local theta = math.acos(-cosTheta) | |
305 | local invSinTheta = 1/math.sin(theta) | |
306 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
307 | finishInterp = math.sin(t*theta)*invSinTheta | |
308 | else | |
309 | startInterp = t-1 | |
310 | finishInterp = t | |
311 | end | |
312 | end | |
313 | 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 | |
314 | end | |
315 | rayCast = function(Position, Direction, Range, Ignore) | |
316 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
317 | end | |
318 | local v = owner | |
319 | local torso = v.Character.Torso | |
320 | ||
321 | plr = owner | |
322 | char = owner | |
323 | hum = owner | |
324 | t = owner | |
325 | h = owner | |
326 | ra = owner | |
327 | la = owner | |
328 | rl = owner | |
329 | ll = owner | |
330 | tors = Character.Torso | |
331 | lleg = Character["Left Leg"] | |
332 | root = Character.HumanoidRootPart | |
333 | hed = Character.Head | |
334 | rleg = Character["Right Leg"] | |
335 | rarm = Character["Right Arm"] | |
336 | larm = Character["Left Arm"] | |
337 | bsize1 = NumberSequenceKeypoint.new(3,3,3) | |
338 | bsize2 = NumberSequenceKeypoint.new(10,10,10) | |
339 | local Effects = {} | |
340 | attack = false | |
341 | local attacking = false | |
342 | vt = Vector3.new | |
343 | bc = BrickColor.new | |
344 | br = BrickColor.random | |
345 | it = Instance.new | |
346 | cf = CFrame.new | |
347 | euler = CFrame.fromEulerAnglesXYZ | |
348 | angles = CFrame.Angles | |
349 | matr = math.random | |
350 | local colororg = BrickColor.new("Dark indigo") -- set color u like | |
351 | local meshtype = "Sphere" -- only for specialmesh | |
352 | ||
353 | ||
354 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
355 | if hit.Parent==nil then | |
356 | return | |
357 | end | |
358 | h=hit.Parent:FindFirstChild("Humanoid") | |
359 | for _,v in pairs(hit.Parent:children()) do | |
360 | if v:IsA("Humanoid") then | |
361 | h=v | |
362 | end | |
363 | end | |
364 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
365 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
366 | end | |
367 | if hit.Parent.className=="Hat" then | |
368 | hit=hit.Parent.Parent:findFirstChild("Head") | |
369 | end | |
370 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
371 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
372 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
373 | return | |
374 | end]] | |
375 | -- hs(hit,1.2) | |
376 | c=Instance.new("ObjectValue") | |
377 | c.Name="creator" | |
378 | c.Value=game:service("Players").LocalPlayer | |
379 | c.Parent=h | |
380 | game:GetService("Debris"):AddItem(c,.5) | |
381 | Damage=math.random(minim,maxim) | |
382 | -- h:TakeDamage(Damage) | |
383 | blocked=false | |
384 | block=hit.Parent:findFirstChild("Block") | |
385 | if block~=nil then | |
386 | print(block.className) | |
387 | if block.className=="NumberValue" then | |
388 | if block.Value>0 then | |
389 | blocked=true | |
390 | if decreaseblock==nil then | |
391 | block.Value=block.Value-1 | |
392 | end | |
393 | end | |
394 | end | |
395 | if block.className=="IntValue" then | |
396 | if block.Value>0 then | |
397 | blocked=true | |
398 | if decreaseblock~=nil then | |
399 | block.Value=block.Value-1 | |
400 | end | |
401 | end | |
402 | end | |
403 | end | |
404 | if blocked==false then | |
405 | -- h:TakeDamage(Damage) | |
406 | h.Health=h.Health-Damage | |
407 | showDamage(hit.Parent,Damage,3,TorsoColor) | |
408 | else | |
409 | h.Health=h.Health-(Damage/2) | |
410 | showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue")) | |
411 | end | |
412 | if Type=="Knockdown" then | |
413 | hum=hit.Parent.Humanoid | |
414 | hum.PlatformStand=true | |
415 | coroutine.resume(coroutine.create(function(HHumanoid) | |
416 | swait(1) | |
417 | HHumanoid.PlatformStand=false | |
418 | end),hum) | |
419 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
420 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
421 | local bodvol=Instance.new("BodyVelocity") | |
422 | bodvol.velocity=angle*knockback | |
423 | bodvol.P=5000 | |
424 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
425 | bodvol.Parent=hit | |
426 | rl=Instance.new("BodyAngularVelocity") | |
427 | rl.P=3000 | |
428 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
429 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
430 | rl.Parent=hit | |
431 | game:GetService("Debris"):AddItem(bodvol,.5) | |
432 | game:GetService("Debris"):AddItem(rl,.5) | |
433 | elseif Type=="Normal" then | |
434 | vp=Instance.new("BodyVelocity") | |
435 | vp.P=500 | |
436 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
437 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
438 | if KnockbackType==1 then | |
439 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
440 | elseif KnockbackType==2 then | |
441 | vp.velocity=Property.CFrame.lookVector*knockback | |
442 | end | |
443 | if knockback>0 then | |
444 | vp.Parent=hit.Parent.Torso | |
445 | end | |
446 | game:GetService("Debris"):AddItem(vp,.5) | |
447 | elseif Type=="Up" then | |
448 | local bodyVelocity=Instance.new("BodyVelocity") | |
449 | bodyVelocity.velocity=vt(0,10,0) | |
450 | bodyVelocity.P=1000 | |
451 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
452 | bodyVelocity.Parent=hit | |
453 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
454 | rl=Instance.new("BodyAngularVelocity") | |
455 | rl.P=3000 | |
456 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
457 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
458 | rl.Parent=hit | |
459 | game:GetService("Debris"):AddItem(rl,.5) | |
460 | elseif Type=="Snare" then | |
461 | bp=Instance.new("BodyPosition") | |
462 | bp.P=2000 | |
463 | bp.D=100 | |
464 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
465 | bp.position=hit.Parent.Torso.Position | |
466 | bp.Parent=hit.Parent.Torso | |
467 | game:GetService("Debris"):AddItem(bp,1) | |
468 | elseif Type=="Target" then | |
469 | if Targetting==false then | |
470 | ZTarget=hit.Parent.Torso | |
471 | coroutine.resume(coroutine.create(function(Part) | |
472 | swait(5) | |
473 | end),ZTarget) | |
474 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
475 | targetgui=Instance.new("BillboardGui") | |
476 | targetgui.Parent=ZTarget | |
477 | targetgui.Size=UDim2.new(10,100,10,100) | |
478 | targ=Instance.new("ImageLabel") | |
479 | targ.Parent=targetgui | |
480 | targ.BackgroundTransparency=1 | |
481 | targ.Image="rbxassetid://4834067" | |
482 | targ.Size=UDim2.new(1,0,1,0) | |
483 | cam.CameraType="Scriptable" | |
484 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
485 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
486 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
487 | Targetting=true | |
488 | RocketTarget=ZTarget | |
489 | for i=1,Property do | |
490 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
491 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
492 | swait() | |
493 | end | |
494 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
495 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
496 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
497 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
498 | end | |
499 | Targetting=false | |
500 | RocketTarget=nil | |
501 | targetgui.Parent=nil | |
502 | cam.CameraType="Custom" | |
503 | end | |
504 | end | |
505 | debounce=Instance.new("BoolValue") | |
506 | debounce.Name="DebounceHit" | |
507 | debounce.Parent=hit.Parent | |
508 | debounce.Value=true | |
509 | game:GetService("Debris"):AddItem(debounce,Delay) | |
510 | c=Instance.new("ObjectValue") | |
511 | c.Name="creator" | |
512 | c.Value=Player | |
513 | c.Parent=h | |
514 | game:GetService("Debris"):AddItem(c,.5) | |
515 | CRIT=false | |
516 | hitDeb=true | |
517 | AttackPos=6 | |
518 | end | |
519 | end | |
520 | ||
521 | showDamage=function(Char,Dealt,du,Color) | |
522 | m=Instance.new("Model") | |
523 | m.Name="" | |
524 | h=Instance.new("Humanoid") | |
525 | h.Health=0 | |
526 | h.MaxHealth=0 | |
527 | h.Parent=m | |
528 | c=Instance.new("Part") | |
529 | c.Transparency=0 | |
530 | c.Material = "Neon" | |
531 | c.BrickColor=bc("Bright red") | |
532 | c.Name="Head" | |
533 | c.TopSurface=0 | |
534 | c.BottomSurface=0 | |
535 | CV="Hot pink" | |
536 | ||
537 | local txt = Instance.new("BillboardGui", c) | |
538 | txt.Adornee = c | |
539 | txt.Name = "_status" | |
540 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
541 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
542 | local text = Instance.new("TextLabel", txt) | |
543 | text.Size = UDim2.new(10, 0, 7, 0) | |
544 | text.FontSize = "Size24" | |
545 | text.TextScaled = true | |
546 | text.TextTransparency = 0 | |
547 | text.BackgroundTransparency = 1 | |
548 | text.TextTransparency = 0 | |
549 | text.TextStrokeTransparency = 0 | |
550 | if Dealt < 12 then | |
551 | text.Font = "Highway" | |
552 | elseif Dealt < 20 then | |
553 | text.Font = "SourceSansBold" | |
554 | elseif Dealt >= 20 then | |
555 | text.Font = "Fantasy" | |
556 | end | |
557 | text.TextStrokeColor3 = BrickColor.new("Really black").Color | |
558 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
559 | v=Instance.new("Part") | |
560 | v.Name = "ColorBrick" | |
561 | v.Parent=c | |
562 | v.FormFactor="Symmetric" | |
563 | v.Anchored=true | |
564 | v.CanCollide=false | |
565 | v.BottomSurface="Smooth" | |
566 | v.TopSurface="Smooth" | |
567 | v.Size=Vector3.new(10,5,3) | |
568 | v.Transparency=1 | |
569 | v.CFrame=c.CFrame | |
570 | v.BrickColor=BrickColor.new(CV) | |
571 | v.Transparency=1 | |
572 | if Dealt < 12 then | |
573 | text.TextColor3 = BrickColor.new("White").Color | |
574 | elseif Dealt < 20 then | |
575 | text.TextColor3 = BrickColor.new("Bright yellow").Color | |
576 | elseif Dealt >= 20 then | |
577 | text.TextColor3 = BrickColor.new("Really red").Color | |
578 | end | |
579 | v.Shape="Block" | |
580 | text.Text = tostring(Dealt).. "!" | |
581 | local dam = Instance.new("Sound",c) | |
582 | local rndm=math.random(1,#hitsounds) | |
583 | local r=rndm | |
584 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
585 | dam.Volume = 1.25 | |
586 | dam.Pitch = 1 | |
587 | dam:Play() | |
588 | c.formFactor="Plate" | |
589 | c.Transparency = 0.99 | |
590 | c.Size=Vector3.new(1,.4,1) | |
591 | ms=Instance.new("CylinderMesh") | |
592 | ms.Scale=Vector3.new(.8,.8,.8) | |
593 | if CRIT==true then | |
594 | ms.Scale=Vector3.new(1,1.25,1) | |
595 | end | |
596 | ms.Parent=c | |
597 | c.Reflectance=0 | |
598 | Instance.new("BodyGyro").Parent=c | |
599 | c.Parent=m | |
600 | if Char:findFirstChild("Head")~=nil then | |
601 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
602 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
603 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
604 | end | |
605 | f=Instance.new("BodyPosition") | |
606 | f.P=2000 | |
607 | f.D=100 | |
608 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
609 | f.position=c.Position+Vector3.new(0,3,0) | |
610 | f.Parent=c | |
611 | game:GetService("Debris"):AddItem(m,.5+du) | |
612 | c.CanCollide=false | |
613 | m.Parent=workspace | |
614 | c.CanCollide=false | |
615 | wait(1) | |
616 | for l = 0, 9 do | |
617 | text.TextTransparency = text.TextTransparency + 0.1 | |
618 | text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1 | |
619 | wait() | |
620 | end | |
621 | end | |
622 | ||
623 | ---------------- Weapon model | |
624 | ||
625 | local handle = Instance.new("Part") | |
626 | handle.Parent = Character | |
627 | handle.Size = Vector3.new(0.225, 0.225, 0.225) | |
628 | handle.Archivable = true | |
629 | handle.Transparency = 0 | |
630 | handle.BrickColor = BrickColor.new("Really red") | |
631 | handle.Material = "Neon" | |
632 | local handlmesh = Instance.new("BlockMesh",handle) | |
633 | handlmesh.Scale = Vector3.new(0.75,0.75,32.5) | |
634 | local weld1 = Instance.new("Weld") | |
635 | weld1.Parent = handle | |
636 | weld1.Part0 = rarm | |
637 | weld1.Part1 = handle | |
638 | weld1.C1 = CFrame.new(0, 1, 0.25*1.5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
639 | local handle2 = Instance.new("Part") | |
640 | handle2.Parent = Character | |
641 | handle2.Size = Vector3.new(0.3, 0.3, 0.75) | |
642 | handle2.Archivable = true | |
643 | handle2.Transparency = 0 | |
644 | handle2.BrickColor = BrickColor.new("Really red") | |
645 | handle2.Material = "Neon" | |
646 | local weld12 = Instance.new("Weld") | |
647 | weld12.Parent = handle2 | |
648 | weld12.Part0 = rarm | |
649 | weld12.Part1 = handle2 | |
650 | weld12.C1 = CFrame.new(0, 1, -2.5*1.45)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
651 | local handle3 = Instance.new("Part") | |
652 | handle3.Parent = Character | |
653 | handle3.Size = Vector3.new(0.275, 0.275, 0.75) | |
654 | handle3.Archivable = true | |
655 | handle3.Transparency = 0 | |
656 | handle3.BrickColor = BrickColor.new("Really red") | |
657 | handle3.Material = "Neon" | |
658 | local weld13 = Instance.new("Weld") | |
659 | weld13.Parent = handle3 | |
660 | weld13.Part0 = rarm | |
661 | weld13.Part1 = handle3 | |
662 | weld13.C1 = CFrame.new(0, 1, 2.5*1.5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
663 | local blade = Instance.new("Part") | |
664 | blade.Parent = Character | |
665 | blade.Size = Vector3.new(0.2, 0.2, 0.2) | |
666 | blade.Archivable = true | |
667 | blade.Transparency = 0 | |
668 | blade.CanCollide = false | |
669 | blade.BrickColor = BrickColor.new("Really red") | |
670 | blade.Material = "Neon" | |
671 | local msh = Instance.new("SpecialMesh",blade) | |
672 | msh.Scale = vt(0.25,1.25*5,3*5) | |
673 | msh.MeshType = "Wedge" | |
674 | local weld1a = Instance.new("Weld") | |
675 | weld1a.Parent = blade | |
676 | weld1a.Part0 = rarm | |
677 | weld1a.Part1 = blade | |
678 | weld1a.C1 = CFrame.new(0, -3.05, 2.65)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)) | |
679 | local bladeefo = Instance.new("ParticleEmitter",blade) | |
680 | bladeefo.Texture = "http://www.roblox.com/asset/?id=296874871" | |
681 | bladeefo.LightEmission = 1 | |
682 | bladeefo.LockedToPart = true | |
683 | bladeefo.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
684 | bladeefo.Rate = 900 | |
685 | bladeefo.VelocitySpread = 900000000000 | |
686 | bladeefo.Lifetime = NumberRange.new(0.25) | |
687 | bladeefo.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
688 | bladeefo.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)}) | |
689 | bladeefo.Rotation = NumberRange.new(-500,500) | |
690 | bladeefo.RotSpeed = NumberRange.new(-500,500) | |
691 | bladeefo.Speed = NumberRange.new(5,7.5) | |
692 | ||
693 | local bld2 = blade:Clone() | |
694 | bld2.Parent = Character | |
695 | local bld2eff = bld2.ParticleEmitter | |
696 | local weld2a = bld2.Weld | |
697 | weld2a.C1 = CFrame.new(0, -3.55, 3.15)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(0)) | |
698 | local bld3 = blade:Clone() | |
699 | bld3.Parent = Character | |
700 | local bld3eff = bld3.ParticleEmitter | |
701 | local weld3a = bld3.Weld | |
702 | weld3a.C1 = CFrame.new(0, -4.05, 3.65)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(0)) | |
703 | local bld4 = blade:Clone() | |
704 | bld4.Parent = Character | |
705 | local bld4eff = bld4.ParticleEmitter | |
706 | local weld4a = bld4.Weld | |
707 | weld4a.C1 = CFrame.new(0, -4.55, 4.15)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)) | |
708 | ----- lol | |
709 | handle.CanCollide = false | |
710 | handle2.CanCollide = false | |
711 | handle3.CanCollide = false | |
712 | ---- | |
713 | ||
714 | function attackone() | |
715 | attack = true | |
716 | for i = 0,1,0.1 do | |
717 | swait() | |
718 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
719 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
720 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(10)), 0.3) | |
721 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
722 | end | |
723 | wait(0.15) | |
724 | local slas = Instance.new("Sound",blade) | |
725 | slas.SoundId = "rbxassetid://92597296" | |
726 | slas.Volume = 2.5 | |
727 | slas.Pitch = 0.74 | |
728 | slas:Play() | |
729 | local slas2 = Instance.new("Sound",blade) | |
730 | slas2.SoundId = "rbxassetid://92597369" | |
731 | slas2.Volume = 1.5 | |
732 | slas2.Pitch = 0.5 | |
733 | slas2:Play() | |
734 | local hit = blade.Touched:connect(function(hit) | |
735 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
736 | end) | |
737 | local hit2 = bld2.Touched:connect(function(hit) | |
738 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
739 | end) | |
740 | local hit3 = bld3.Touched:connect(function(hit) | |
741 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
742 | end) | |
743 | local hit4 = bld4.Touched:connect(function(hit) | |
744 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
745 | end) | |
746 | for i = 0,1,0.1 do | |
747 | swait() | |
748 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
749 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
750 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(180), math.rad(180), math.rad(-120)), 0.3) | |
751 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
752 | end | |
753 | attack = false | |
754 | hit:disconnect() | |
755 | hit2:disconnect() | |
756 | hit3:disconnect() | |
757 | hit4:disconnect() | |
758 | wait(3) | |
759 | slas:Destroy() | |
760 | slas2:Destroy() | |
761 | end | |
762 | ||
763 | function attacktwo() | |
764 | attack = true | |
765 | for i = 0,1,0.1 do | |
766 | swait() | |
767 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
768 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
769 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(10)), 0.3) | |
770 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
771 | end | |
772 | wait(0.15) | |
773 | local slas = Instance.new("Sound",blade) | |
774 | slas.SoundId = "rbxassetid://28144425" | |
775 | slas.Volume = 2.5 | |
776 | slas.Pitch = 0.95 | |
777 | slas:Play() | |
778 | local hit = blade.Touched:connect(function(hit) | |
779 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
780 | end) | |
781 | local hit2 = bld2.Touched:connect(function(hit) | |
782 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
783 | end) | |
784 | local hit3 = bld3.Touched:connect(function(hit) | |
785 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
786 | end) | |
787 | local hit4 = bld4.Touched:connect(function(hit) | |
788 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
789 | end) | |
790 | for i = 0,1,0.1 do | |
791 | swait() | |
792 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
793 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
794 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
795 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
796 | end | |
797 | attack = false | |
798 | hit:disconnect() | |
799 | hit2:disconnect() | |
800 | hit3:disconnect() | |
801 | hit4:disconnect() | |
802 | wait(3) | |
803 | slas:Destroy() | |
804 | end | |
805 | ||
806 | function attackthree() | |
807 | attack = true | |
808 | local swin = Instance.new("Sound",blade) | |
809 | swin.SoundId = "rbxassetid://92597296" | |
810 | swin.Volume = 5 | |
811 | swin.Pitch = 0.75 | |
812 | swin:Play() | |
813 | for i = 0,1,0.1 do | |
814 | swait() | |
815 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
816 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
817 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(10)), 0.3) | |
818 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
819 | end | |
820 | wait(0.15) | |
821 | local hit = blade.Touched:connect(function(hit) | |
822 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
823 | end) | |
824 | local hit2 = bld2.Touched:connect(function(hit) | |
825 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
826 | end) | |
827 | local hit3 = bld3.Touched:connect(function(hit) | |
828 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
829 | end) | |
830 | local hit4 = bld4.Touched:connect(function(hit) | |
831 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
832 | end) | |
833 | for z = 0,2 do | |
834 | local slas = Instance.new("Sound",blade) | |
835 | slas.SoundId = "rbxassetid://92597369" | |
836 | slas.Volume = 1.5 | |
837 | slas.Pitch = 1 | |
838 | slas:Play() | |
839 | local swin2 = Instance.new("Sound",blade) | |
840 | swin2.SoundId = "rbxassetid://92597296" | |
841 | swin2.Volume = 5 | |
842 | swin2.Pitch = 1.25 | |
843 | swin2:Play() | |
844 | local swin3 = Instance.new("Sound",blade) | |
845 | swin3.SoundId = "rbxassetid://92597296" | |
846 | swin3.Volume = 2.5 | |
847 | swin3.Pitch = 0.95 | |
848 | swin3:Play() | |
849 | for i = 0,1,0.5 do | |
850 | swait() | |
851 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
852 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
853 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
854 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
855 | end | |
856 | for i = 0,1,0.5 do | |
857 | swait() | |
858 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(120)),.3) | |
859 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
860 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
861 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
862 | end | |
863 | for i = 0,1,0.5 do | |
864 | swait() | |
865 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),.3) | |
866 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
867 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
868 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
869 | end | |
870 | for i = 0,1,0.5 do | |
871 | swait() | |
872 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(240)),.3) | |
873 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
874 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
875 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
876 | end | |
877 | for i = 0,1,0.5 do | |
878 | swait() | |
879 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(300)),.3) | |
880 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
881 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
882 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
883 | end | |
884 | for i = 0,1,0.5 do | |
885 | swait() | |
886 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),.3) | |
887 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
888 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
889 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
890 | end | |
891 | slas:Destroy() | |
892 | swin2:Destroy() | |
893 | swin3:Destroy() | |
894 | end | |
895 | attack = false | |
896 | hit:disconnect() | |
897 | hit2:disconnect() | |
898 | hit3:disconnect() | |
899 | hit4:disconnect() | |
900 | wait(3) | |
901 | end | |
902 | ||
903 | function attackfour() | |
904 | attack = true | |
905 | for i = 0,1,0.1 do | |
906 | swait() | |
907 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-100)),.3) | |
908 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(100)),.3) | |
909 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
910 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
911 | end | |
912 | wait(0.05) | |
913 | local swin = Instance.new("Sound",blade) | |
914 | swin.SoundId = "rbxassetid://92597296" | |
915 | swin.Volume = 2.5 | |
916 | swin.Pitch = 0.75 | |
917 | swin:Play() | |
918 | for i = 0,1,0.1 do | |
919 | swait() | |
920 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
921 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
922 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
923 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3) | |
924 | end | |
925 | local lb = Instance.new("Part") | |
926 | lb.Parent = char | |
927 | lb.Material = "Neon" | |
928 | lb.BrickColor = BrickColor.new("Really red") | |
929 | lb.CanCollide = false | |
930 | lb.Shape = "Ball" | |
931 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
932 | lb.CFrame = lb.CFrame - vt(0,0.5,0) | |
933 | lb.Anchored = true | |
934 | lb.Size = vt(3,3,3) | |
935 | local thing = Instance.new("SpecialMesh",lb) | |
936 | thing.MeshType = meshtype | |
937 | local hitcircle = lb.Touched:connect(function(hit) | |
938 | Damagefunc(hit,7,14,5,"Normal",root,.2,1) | |
939 | end) | |
940 | local sa = Instance.new("Sound",lb) | |
941 | sa.SoundId = "rbxassetid://233091205" | |
942 | sa.Volume = 1.25 | |
943 | sa.Pitch = 1 | |
944 | sa:Play() | |
945 | local tra = Instance.new("ParticleEmitter",lb) | |
946 | tra.Texture = "rbxassetid://296874871" | |
947 | tra.LightEmission = 0.95 | |
948 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
949 | tra.Rate = 1000 | |
950 | tra.Lifetime = NumberRange.new(1) | |
951 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
952 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
953 | tra.Speed = NumberRange.new(10,25) | |
954 | tra.Rotation = NumberRange.new(-500,500) | |
955 | tra.VelocitySpread = 90000 | |
956 | tra.RotSpeed = NumberRange.new(-500,500) | |
957 | for i = 0, 24 do | |
958 | wait() | |
959 | thing.Scale = thing.Scale + vt(0.1,0.1,0.1) | |
960 | lb.Size = lb.Size + vt(0.1,0.1,0.1) | |
961 | lb.Transparency = lb.Transparency + 0.05 | |
962 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
963 | lb.CFrame = lb.CFrame - vt(0,0.5,0) | |
964 | end | |
965 | attack = false | |
966 | hitcircle:disconnect() | |
967 | tra.Rate = 0 | |
968 | wait(5) | |
969 | lb:Destroy() | |
970 | swin:Destroy() | |
971 | end | |
972 | ||
973 | local hold = false | |
974 | function do1() | |
975 | attack = true | |
976 | for i = 0,1,0.1 do | |
977 | swait() | |
978 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
979 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
980 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
981 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(-10), math.rad(-90)), 0.3) | |
982 | end | |
983 | local lb = Instance.new("Part") | |
984 | lb.Parent = char | |
985 | lb.Material = "Neon" | |
986 | lb.BrickColor = BrickColor.new("Really red") | |
987 | lb.CanCollide = false | |
988 | lb.Shape = "Ball" | |
989 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
990 | lb.Anchored = true | |
991 | lb.Size = vt(0.2,0.2,0.2) | |
992 | local thing = Instance.new("SpecialMesh",lb) | |
993 | thing.MeshType = meshtype | |
994 | local tra = Instance.new("ParticleEmitter",lb) | |
995 | tra.Texture = "rbxassetid://296874871" | |
996 | tra.LightEmission = 0.95 | |
997 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
998 | tra.Rate = 1000 | |
999 | tra.Lifetime = NumberRange.new(0.25) | |
1000 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,12.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1001 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.95,0)}) | |
1002 | tra.Speed = NumberRange.new(0) | |
1003 | tra.Rotation = NumberRange.new(-500,500) | |
1004 | tra.VelocitySpread = 90000 | |
1005 | tra.LockedToPart = true | |
1006 | tra.RotSpeed = NumberRange.new(-500,500) | |
1007 | local saz = Instance.new("Sound",lb) | |
1008 | saz.SoundId = "rbxassetid://192410062" | |
1009 | saz.Volume = 1.5 | |
1010 | saz.Pitch = 1 | |
1011 | saz:Play() | |
1012 | for i = 0, 24 do | |
1013 | wait() | |
1014 | lb.Size = lb.Size + vt(0.15,0.15,0.15) | |
1015 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
1016 | end | |
1017 | while wait() do | |
1018 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
1019 | if hold == false then | |
1020 | break | |
1021 | end | |
1022 | end | |
1023 | lb.Touched:connect(function(hit) | |
1024 | Damagefunc(hit,10,25,5,"Normal",root,.2,1) | |
1025 | end) | |
1026 | tra.Rate = 0 | |
1027 | lb.Anchored = false | |
1028 | local sa = Instance.new("Sound",lb) | |
1029 | sa.SoundId = "rbxassetid://233091205" | |
1030 | sa.Volume = 1.25 | |
1031 | sa.Pitch = 1 | |
1032 | sa:Play() | |
1033 | local trail = Instance.new("ParticleEmitter",lb) | |
1034 | trail.Texture = "rbxassetid://296874871" | |
1035 | trail.LightEmission = 0.95 | |
1036 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
1037 | trail.Rate = 10000 | |
1038 | trail.Lifetime = NumberRange.new(1.5) | |
1039 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1040 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1041 | trail.Speed = NumberRange.new(0,0) | |
1042 | trail.Rotation = NumberRange.new(-500,500) | |
1043 | trail.RotSpeed = NumberRange.new(-500,500) | |
1044 | local bv = Instance.new("BodyVelocity") | |
1045 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1046 | bv.velocity = mouse.Hit.lookVector *100 | |
1047 | bv.Parent = lb | |
1048 | wait(0.1) | |
1049 | attack = false | |
1050 | wait(10) | |
1051 | lb:Destroy() | |
1052 | end | |
1053 | ||
1054 | function do2() | |
1055 | attack = true | |
1056 | for i = 0,1,0.1 do | |
1057 | swait() | |
1058 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1059 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1060 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(60), math.rad(90)), 0.3) | |
1061 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1062 | end | |
1063 | local touched = false | |
1064 | local over = false | |
1065 | local delay = false | |
1066 | local spart = Instance.new("Part",char) | |
1067 | local thing = Instance.new("SpecialMesh",spart) | |
1068 | thing.MeshType = meshtype | |
1069 | spart.Size = vt(1,1,1) | |
1070 | spart.Anchored = true | |
1071 | spart.BrickColor = BrickColor.new("Really red") | |
1072 | spart.Transparency = 0.5 | |
1073 | spart.CanCollide = false | |
1074 | spart.Material = "Neon" | |
1075 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
1076 | local pt1e = NumberSequenceKeypoint.new(0,2,0) | |
1077 | local pt2e = NumberSequenceKeypoint.new(1,0.5,0) | |
1078 | local effecto = Instance.new("ParticleEmitter",spart) | |
1079 | effecto.Texture = "rbxassetid://296874871" | |
1080 | effecto.LightEmission = 1 | |
1081 | effecto.LockedToPart = true | |
1082 | effecto.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
1083 | effecto.Rate = 10000 | |
1084 | effecto.VelocitySpread = 900000000000 | |
1085 | effecto.Lifetime = NumberRange.new(0.25) | |
1086 | effecto.Size = NumberSequence.new({pt1e,pt2e}) | |
1087 | effecto.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1088 | effecto.Speed = NumberRange.new(10,25) | |
1089 | effecto.Rotation = NumberRange.new(-500,500) | |
1090 | effecto.RotSpeed = NumberRange.new(-500,500) | |
1091 | spart.CFrame = tors.CFrame + Vector3.new(0,0.1,0) | |
1092 | local tick2 = Instance.new("Sound",spart) | |
1093 | tick2.SoundId = "rbxassetid://233091205" | |
1094 | tick2.Volume = 2.5 | |
1095 | tick2.Pitch = 1 | |
1096 | tick2:Play() | |
1097 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
1098 | spart.Anchored = false | |
1099 | spart.Size = vt(0.75,12.5,12.5) | |
1100 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
1101 | local bv = Instance.new("BodyVelocity") | |
1102 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1103 | bv.velocity = hed.CFrame.lookVector * 175 | |
1104 | bv.Parent = spart | |
1105 | spart.Touched:connect(function(hit) | |
1106 | local saveposition = spart.CFrame | |
1107 | local effector2 = Instance.new("ParticleEmitter",spart) | |
1108 | effector2.Texture = "rbxassetid://296874871" | |
1109 | effector2.LightEmission = 1 | |
1110 | effector2.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
1111 | effector2.Rate = 10000 | |
1112 | effector2.Lifetime = NumberRange.new(0.25) | |
1113 | effector2.VelocitySpread = 999999999999999 | |
1114 | effector2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1115 | effector2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1116 | effector2.Speed = NumberRange.new(50) | |
1117 | effector2.Rotation = NumberRange.new(-500,500) | |
1118 | effector2.RotSpeed = NumberRange.new(-500,500) | |
1119 | Damagefunc(hit,12,22,-20,"Normal",root,.2,1) | |
1120 | over = true | |
1121 | wait(0.25) | |
1122 | effector2.Rate = 0 | |
1123 | wait(0.25) | |
1124 | effector2:Destroy() | |
1125 | end) | |
1126 | for i = 0,1,0.1 do | |
1127 | swait() | |
1128 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1129 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1130 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(90)), 0.3) | |
1131 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1132 | end | |
1133 | attack = false | |
1134 | wait(5) | |
1135 | effecto.Rate = 0 | |
1136 | wait(1.5) | |
1137 | spart:Destroy() | |
1138 | end | |
1139 | ||
1140 | function do3() | |
1141 | attack = true | |
1142 | local lb = Instance.new("Part") | |
1143 | lb.Parent = char | |
1144 | lb.Material = "Neon" | |
1145 | lb.BrickColor = BrickColor.new("Really red") | |
1146 | lb.CanCollide = false | |
1147 | lb.Shape = "Ball" | |
1148 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
1149 | lb.Anchored = true | |
1150 | lb.Size = vt(0.2,0.2,0.2) | |
1151 | local thing = Instance.new("SpecialMesh",lb) | |
1152 | thing.MeshType = meshtype | |
1153 | hum.WalkSpeed = 0 | |
1154 | for i = 0,1,0.75 do | |
1155 | swait() | |
1156 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1157 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1158 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1159 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1160 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1161 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1162 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1163 | end | |
1164 | for i = 0,1,0.75 do | |
1165 | swait() | |
1166 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1167 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1168 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1169 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1170 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1171 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(30), math.rad(90)), 0.3) | |
1172 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1173 | end | |
1174 | for i = 0,1,0.75 do | |
1175 | swait() | |
1176 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1177 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1178 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1179 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1180 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1181 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(60), math.rad(30), math.rad(90)), 0.3) | |
1182 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1183 | end | |
1184 | for i = 0,1,0.75 do | |
1185 | swait() | |
1186 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1187 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1188 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1189 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1190 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1191 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), 0.3) | |
1192 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1193 | end | |
1194 | for i = 0,1,0.75 do | |
1195 | swait() | |
1196 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1197 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1198 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1199 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1200 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1201 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(120), math.rad(30), math.rad(90)), 0.3) | |
1202 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1203 | end | |
1204 | for i = 0,1,0.75 do | |
1205 | swait() | |
1206 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1207 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1208 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1209 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1210 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1211 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(30), math.rad(90)), 0.3) | |
1212 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1213 | end | |
1214 | for i = 0,1,0.75 do | |
1215 | swait() | |
1216 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1217 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1218 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1219 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1220 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1221 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(240), math.rad(30), math.rad(90)), 0.3) | |
1222 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1223 | end | |
1224 | for i = 0,1,0.75 do | |
1225 | swait() | |
1226 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1227 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1228 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
1229 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1230 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1231 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(300), math.rad(30), math.rad(90)), 0.3) | |
1232 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1233 | end | |
1234 | local touched = false | |
1235 | local rotationval = 1 | |
1236 | local delay = false | |
1237 | local distance = 3.55 | |
1238 | local spart = Instance.new("Part",t) | |
1239 | local tick4 = Instance.new("Sound",t) | |
1240 | tick4.SoundId = "rbxassetid://228343271" | |
1241 | tick4.Volume = 2.5 | |
1242 | tick4.Pitch = 0.9 | |
1243 | local tick2 = Instance.new("Sound",t) | |
1244 | tick2.SoundId = "rbxassetid://233091205" | |
1245 | tick2.Volume = 5 | |
1246 | tick2.Pitch = 1 | |
1247 | tick2:Play() | |
1248 | spart.Size = vt(10,10,1) | |
1249 | spart.BrickColor = BrickColor.new("Really red") | |
1250 | spart.Transparency = 0.35 | |
1251 | spart.CanCollide = false | |
1252 | spart.Anchored = true | |
1253 | spart.Material = "Neon" | |
1254 | spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0) | |
1255 | wait(0.05) | |
1256 | spart.Touched:connect(function(hit) | |
1257 | local effector2 = Instance.new("ParticleEmitter",spart) | |
1258 | effector2.Texture = "http://www.roblox.com/asset/?id=296874871" | |
1259 | effector2.LightEmission = 1 | |
1260 | effector2.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
1261 | effector2.Rate = 10000 | |
1262 | effector2.Lifetime = NumberRange.new(0.25) | |
1263 | effector2.VelocitySpread = 999999999999999 | |
1264 | effector2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1265 | effector2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1266 | effector2.Speed = NumberRange.new(50) | |
1267 | effector2.Rotation = NumberRange.new(-500,500) | |
1268 | effector2.RotSpeed = NumberRange.new(-500,500) | |
1269 | Damagefunc(hit,5,15,-20,"Normal",root,.2,1) | |
1270 | wait(0.25) | |
1271 | effector2.Rate = 0 | |
1272 | wait(0.25) | |
1273 | end) | |
1274 | tick4:Play() | |
1275 | for x = 0, 9 do | |
1276 | for i = 0,1,0.75 do | |
1277 | swait() | |
1278 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1279 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1280 | distance = distance + 1*5 | |
1281 | rotationval = rotationval - 0.125 | |
1282 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1283 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1284 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1285 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1286 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1287 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1288 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1289 | end | |
1290 | for i = 0,1,0.75 do | |
1291 | swait() | |
1292 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1293 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1294 | distance = distance + 1*5 | |
1295 | rotationval = rotationval - 0.125 | |
1296 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1297 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1298 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1299 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1300 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1301 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(30), math.rad(90)), 0.3) | |
1302 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1303 | end | |
1304 | for i = 0,1,0.75 do | |
1305 | swait() | |
1306 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1307 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1308 | distance = distance + 1*5 | |
1309 | rotationval = rotationval - 0.125 | |
1310 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1311 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1312 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1313 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1314 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1315 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(60), math.rad(30), math.rad(90)), 0.3) | |
1316 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1317 | end | |
1318 | for i = 0,1,0.75 do | |
1319 | swait() | |
1320 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1321 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1322 | distance = distance + 1*5 | |
1323 | rotationval = rotationval - 0.125 | |
1324 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1325 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1326 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1327 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1328 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1329 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), 0.3) | |
1330 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1331 | end | |
1332 | for i = 0,1,0.75 do | |
1333 | swait() | |
1334 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1335 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1336 | distance = distance + 1*5 | |
1337 | rotationval = rotationval - 0.125 | |
1338 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1339 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1340 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1341 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1342 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1343 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(120), math.rad(30), math.rad(90)), 0.3) | |
1344 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1345 | end | |
1346 | for i = 0,1,0.75 do | |
1347 | swait() | |
1348 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1349 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1350 | distance = distance + 1*5 | |
1351 | rotationval = rotationval - 0.125 | |
1352 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1353 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1354 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1355 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1356 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1357 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(30), math.rad(90)), 0.3) | |
1358 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1359 | end | |
1360 | for i = 0,1,0.75 do | |
1361 | swait() | |
1362 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1363 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1364 | distance = distance + 1*5 | |
1365 | rotationval = rotationval - 0.125 | |
1366 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1367 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1368 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1369 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1370 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1371 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(240), math.rad(30), math.rad(90)), 0.3) | |
1372 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1373 | end | |
1374 | for i = 0,1,0.75 do | |
1375 | swait() | |
1376 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
1377 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
1378 | distance = distance + 1*5 | |
1379 | rotationval = rotationval - 0.125 | |
1380 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
1381 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
1382 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
1383 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1384 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1385 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(300), math.rad(30), math.rad(90)), 0.3) | |
1386 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1387 | end | |
1388 | end | |
1389 | spart:Destroy() | |
1390 | hum.WalkSpeed = 16 | |
1391 | attack = false | |
1392 | for i = 0, 24 do | |
1393 | lb.Transparency = lb.Transparency + 0.05 | |
1394 | thing.Scale = thing.Scale - vt(4.5,4.5,0) | |
1395 | wait() | |
1396 | end | |
1397 | lb:Destroy() | |
1398 | end | |
1399 | ||
1400 | function DeleteParent(parent) | |
1401 | for i,v in pairs(parent:children()) do | |
1402 | if v:IsA("Part") then | |
1403 | v:Destroy() | |
1404 | end | |
1405 | end | |
1406 | end | |
1407 | ||
1408 | ||
1409 | function do4() | |
1410 | hum.WalkSpeed = 0 | |
1411 | attack = true | |
1412 | for i = 0,1,0.1 do | |
1413 | swait() | |
1414 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1415 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1416 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1417 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3) | |
1418 | end | |
1419 | local shur = Instance.new("Part",char) | |
1420 | local gahd = Instance.new("Sound",shur) | |
1421 | gahd.SoundId = "rbxassetid://136007472" | |
1422 | gahd.Volume = 2.5 | |
1423 | gahd.Pitch = 0.7 | |
1424 | gahd:Play() | |
1425 | shur.Transparency = 1 | |
1426 | shur.Material = "Neon" | |
1427 | shur.BrickColor = bc("Bright red") | |
1428 | shur.Anchored = true | |
1429 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
1430 | shur.Size = vt(1,0.2,1) | |
1431 | shur.CanCollide = false | |
1432 | local dec = Instance.new("Decal",shur) | |
1433 | dec.Texture = "http://www.roblox.com/asset/?id=359972668" | |
1434 | dec.Face = "Top" | |
1435 | local dec2 = dec:Clone() | |
1436 | dec2.Parent = shur | |
1437 | dec2.Face = "Bottom" | |
1438 | local Meshshur = Instance.new("CylinderMesh",shur) | |
1439 | Meshshur.Scale = vt(0,1,0) | |
1440 | local value1 = 1*2.5 | |
1441 | game:service'RunService'.RenderStepped:connect(function() | |
1442 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
1443 | end) | |
1444 | for i = 0, 50 do | |
1445 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
1446 | value1 = value1 - 0.015*2.5 | |
1447 | wait() | |
1448 | end | |
1449 | local lb = Instance.new("Part") | |
1450 | lb.Parent = char | |
1451 | lb.Material = "Neon" | |
1452 | lb.BrickColor = BrickColor.new("Really red") | |
1453 | lb.CanCollide = false | |
1454 | lb.Shape = "Ball" | |
1455 | lb.Position = larm.Position | |
1456 | lb.CFrame = lb.CFrame + vt(0,1.5,0) | |
1457 | lb.Anchored = true | |
1458 | lb.Size = vt(0.2,0.2,0.2) | |
1459 | local thing = Instance.new("SpecialMesh",lb) | |
1460 | thing.MeshType = meshtype | |
1461 | local tra = Instance.new("ParticleEmitter",lb) | |
1462 | tra.Texture = "rbxassetid://296874871" | |
1463 | tra.LightEmission = 0.95 | |
1464 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
1465 | tra.Rate = 1000 | |
1466 | tra.Lifetime = NumberRange.new(0.25) | |
1467 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1468 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1469 | tra.Speed = NumberRange.new(0) | |
1470 | tra.Rotation = NumberRange.new(-500,500) | |
1471 | tra.VelocitySpread = 90000 | |
1472 | tra.LockedToPart = true | |
1473 | tra.RotSpeed = NumberRange.new(-500,500) | |
1474 | local tran = Instance.new("ParticleEmitter",lb) | |
1475 | tran.Texture = "rbxassetid://296874871" | |
1476 | tran.LightEmission = 0.95 | |
1477 | tran.Color = ColorSequence.new(lb.BrickColor.Color) | |
1478 | tran.Rate = 0 | |
1479 | tran.Lifetime = NumberRange.new(1) | |
1480 | tran.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,25,0)}) | |
1481 | tran.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1482 | tran.Speed = NumberRange.new(25,50) | |
1483 | tran.Rotation = NumberRange.new(-500,500) | |
1484 | tran.VelocitySpread = 90000 | |
1485 | tran.LockedToPart = true | |
1486 | tran.RotSpeed = NumberRange.new(-500,500) | |
1487 | local saz = Instance.new("Sound",lb) | |
1488 | saz.SoundId = "rbxassetid://192410062" | |
1489 | saz.Volume = 7.5 | |
1490 | saz.Pitch = 1 | |
1491 | saz:Play() | |
1492 | for i = 0, 59 do | |
1493 | wait() | |
1494 | lb.Size = lb.Size + vt(0.5,0.5,0.5) | |
1495 | lb.CFrame = lb.CFrame + vt(0,0.275,0) | |
1496 | end | |
1497 | local savepoint = Instance.new("Part",lb) | |
1498 | savepoint.CFrame = lb.CFrame | |
1499 | savepoint.Transparency = 1 | |
1500 | savepoint.CanCollide = false | |
1501 | savepoint.Anchored = true | |
1502 | for i = 0, 29 do | |
1503 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
1504 | lb.CFrame = savepoint.CFrame | |
1505 | lb.Size = lb.Size - vt(0.75,0.75,0.75) | |
1506 | local lba = Instance.new("Part") | |
1507 | lba.Parent = lb | |
1508 | lba.Material = "Neon" | |
1509 | lba.BrickColor = BrickColor.new("Really red") | |
1510 | lba.CanCollide = false | |
1511 | lba.Shape = "Ball" | |
1512 | lba.CFrame = lb.CFrame | |
1513 | lba.Size = vt(6,6,6) | |
1514 | local thinga = Instance.new("SpecialMesh",lba) | |
1515 | thinga.MeshType = meshtype | |
1516 | lba.Touched:connect(function(hit) | |
1517 | Damagefunc(hit,22,29,5,"Normal",root,.2,1) | |
1518 | end) | |
1519 | local sa = Instance.new("Sound",lb) | |
1520 | sa.SoundId = "rbxassetid://233091205" | |
1521 | sa.Volume = 1.25 | |
1522 | sa.Pitch = 0.75 | |
1523 | sa:Play() | |
1524 | local trail = Instance.new("ParticleEmitter",lba) | |
1525 | trail.Texture = "rbxassetid://296874871" | |
1526 | trail.LightEmission = 0.95 | |
1527 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
1528 | trail.Rate = 10000 | |
1529 | trail.Lifetime = NumberRange.new(1.5) | |
1530 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1531 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1532 | trail.Speed = NumberRange.new(0,0) | |
1533 | trail.Rotation = NumberRange.new(-500,500) | |
1534 | trail.RotSpeed = NumberRange.new(-500,500) | |
1535 | local bv = Instance.new("BodyVelocity") | |
1536 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1537 | bv.velocity = mouse.Hit.lookVector *100 | |
1538 | bv.Parent = lba | |
1539 | wait(0.25) | |
1540 | end | |
1541 | tra.Rate = 0 | |
1542 | tran.Rate = 9000 | |
1543 | local sar = Instance.new("Sound",lb) | |
1544 | sar.SoundId = "rbxassetid://233091205" | |
1545 | sar.Volume = 2.5 | |
1546 | sar.Pitch = 0.5 | |
1547 | sar:Play() | |
1548 | local hit = lb.Touched:connect(function(hit) | |
1549 | Damagefunc(hit,40,50,5,"Normal",root,.2,1) | |
1550 | end) | |
1551 | for i = 0, 44 do | |
1552 | lb.Size = lb.Size + vt(3,3,3) | |
1553 | lb.CFrame = savepoint.CFrame | |
1554 | lb.Transparency = lb.Transparency + 0.025 | |
1555 | wait() | |
1556 | end | |
1557 | tran.Rate = 0 | |
1558 | hit:disconnect() | |
1559 | attack = false | |
1560 | hum.WalkSpeed = 16 | |
1561 | for i = 0, 100 do | |
1562 | dec.Transparency = dec.Transparency + 0.015 | |
1563 | dec2.Transparency = dec.Transparency | |
1564 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
1565 | value1 = value1 - 0.015*2.5 | |
1566 | wait(0) | |
1567 | end | |
1568 | shur:Destroy() | |
1569 | wait(10) | |
1570 | lb:Destroy() | |
1571 | end | |
1572 | ||
1573 | function doSpecial() | |
1574 | hum.WalkSpeed = 0 | |
1575 | attack = true | |
1576 | local ff = Instance.new("ForceField",char) | |
1577 | for i = 0,1,0.1 do | |
1578 | swait() | |
1579 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1580 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1581 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1582 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3) | |
1583 | end | |
1584 | local shur = Instance.new("Part",char) | |
1585 | local gahd = Instance.new("Sound",char) | |
1586 | gahd.SoundId = "rbxassetid://136007472" | |
1587 | gahd.Volume = 1 | |
1588 | gahd.Pitch = 0.7 | |
1589 | gahd:Play() | |
1590 | shur.Transparency = 1 | |
1591 | shur.Material = "Neon" | |
1592 | shur.BrickColor = bc("Bright red") | |
1593 | shur.Anchored = true | |
1594 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
1595 | shur.Size = vt(1,0.2,1) | |
1596 | shur.CanCollide = false | |
1597 | local dec = Instance.new("Decal",shur) | |
1598 | dec.Texture = "http://www.roblox.com/asset/?id=359972668" | |
1599 | dec.Face = "Top" | |
1600 | local dec2 = dec:Clone() | |
1601 | dec2.Parent = shur | |
1602 | dec2.Face = "Bottom" | |
1603 | local Meshshur = Instance.new("CylinderMesh",shur) | |
1604 | Meshshur.Scale = vt(0,1,0) | |
1605 | local value1 = 1*5 | |
1606 | game:service'RunService'.RenderStepped:connect(function() | |
1607 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
1608 | end) | |
1609 | for i = 0, 50 do | |
1610 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
1611 | value1 = value1 - 0.015*5 | |
1612 | wait() | |
1613 | end | |
1614 | local ex = Instance.new("Sound",char) | |
1615 | ex.SoundId = "rbxassetid://197161452" | |
1616 | ex.Volume = 1 | |
1617 | ex.Pitch = 1 | |
1618 | ex:Play() | |
1619 | local ex2 = Instance.new("Sound",char) | |
1620 | ex2.SoundId = "rbxassetid://197161452" | |
1621 | ex2.Volume = 0.75 | |
1622 | ex2.Pitch = 0.85 | |
1623 | ex2:Play() | |
1624 | local ex3 = Instance.new("Sound",char) | |
1625 | ex3.SoundId = "rbxassetid://197161452" | |
1626 | ex3.Volume = 0.5 | |
1627 | ex3.Pitch = 0.65 | |
1628 | ex3:Play() | |
1629 | local ex4 = Instance.new("Sound",char) | |
1630 | ex4.SoundId = "rbxassetid://446876721" | |
1631 | ex4.Volume = 1 | |
1632 | ex4.Pitch = 0.5 | |
1633 | ex4:Play() | |
1634 | local ex5 = Instance.new("Sound",char) | |
1635 | ex5.SoundId = "rbxassetid://446876721" | |
1636 | ex5.Volume = 1.5 | |
1637 | ex5.Pitch = 0.5 | |
1638 | ex5:Play() | |
1639 | local seen = Instance.new("Sound",char) | |
1640 | seen.SoundId = "rbxassetid://445796828" | |
1641 | seen.Pitch = 0.75 | |
1642 | seen.Volume = 1.75 | |
1643 | seen.Looped = true | |
1644 | seen:Play() | |
1645 | local las = Instance.new("Part") | |
1646 | local expld = Instance.new("Explosion", las) | |
1647 | expld.BlastPressure = 1 | |
1648 | las.Parent = char | |
1649 | las.Material = "Neon" | |
1650 | las.BrickColor = BrickColor.new("Really red") | |
1651 | las.CanCollide = false | |
1652 | las.Shape = "Ball" | |
1653 | las.Transparency = 0 | |
1654 | las.Size = vt(60,60,60) | |
1655 | las.CFrame = shur.CFrame | |
1656 | las.Anchored = true | |
1657 | expld.BlastRadius = 9999999999 | |
1658 | expld.Position = las.Position | |
1659 | local thing = Instance.new("SpecialMesh",las) | |
1660 | thing.MeshType = "Sphere" | |
1661 | thing.Scale = vt(1,0.1,1) | |
1662 | local bo = Instance.new("Part") | |
1663 | bo.Parent = las | |
1664 | bo.Material = "Neon" | |
1665 | bo.BrickColor = BrickColor.new("Really red") | |
1666 | bo.CanCollide = false | |
1667 | bo.Shape = "Ball" | |
1668 | bo.Transparency = 0 | |
1669 | bo.Size = vt(1,1,1) | |
1670 | bo.CFrame = shur.CFrame | |
1671 | bo.Anchored = true | |
1672 | local thingbo = Instance.new("SpecialMesh",bo) | |
1673 | thingbo.MeshType = "Sphere" | |
1674 | thingbo.Scale = vt(90,90,90) | |
1675 | local boim = Instance.new("Part") | |
1676 | boim.Parent = las | |
1677 | boim.Material = "Neon" | |
1678 | boim.BrickColor = BrickColor.new("Really red") | |
1679 | boim.CanCollide = false | |
1680 | boim.Shape = "Ball" | |
1681 | boim.Transparency = 1 | |
1682 | boim.Size = vt(150,150,150) | |
1683 | boim.CFrame = shur.CFrame | |
1684 | boim.Anchored = true | |
1685 | local boim2 = Instance.new("Part") | |
1686 | boim2.Parent = las | |
1687 | boim2.Material = "Neon" | |
1688 | boim2.BrickColor = BrickColor.new("Really red") | |
1689 | boim2.CanCollide = false | |
1690 | boim2.Shape = "Ball" | |
1691 | boim2.Transparency = 0.65 | |
1692 | boim2.Size = vt(1,1,1) | |
1693 | boim2.CFrame = shur.CFrame | |
1694 | boim2.Anchored = true | |
1695 | local boimmsh = Instance.new("SpecialMesh",boim2) | |
1696 | boimmsh.MeshType = "FileMesh" | |
1697 | boimmsh.Scale = vt(165,165,165) | |
1698 | local shock = Instance.new("Part") | |
1699 | shock.Parent = las | |
1700 | shock.Material = "Neon" | |
1701 | shock.BrickColor = BrickColor.new("Really red") | |
1702 | shock.CanCollide = false | |
1703 | shock.Shape = "Ball" | |
1704 | shock.Transparency = 0.25 | |
1705 | shock.CFrame = shur.CFrame | |
1706 | shock.Anchored = true | |
1707 | shock.Size = vt(0.2,0.2,0.2) | |
1708 | local thingshock = Instance.new("SpecialMesh",shock) | |
1709 | thingshock.MeshType = "FileMesh" | |
1710 | thingshock.Scale = vt(50,25,50) | |
1711 | thingshock.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1712 | local shock2 = Instance.new("Part") | |
1713 | shock2.Parent = las | |
1714 | shock2.Material = "Neon" | |
1715 | shock2.BrickColor = BrickColor.new("Really red") | |
1716 | shock2.CanCollide = false | |
1717 | shock2.Shape = "Ball" | |
1718 | shock2.Transparency = 0.5 | |
1719 | shock2.CFrame = shur.CFrame | |
1720 | shock2.Anchored = true | |
1721 | shock2.Size = vt(0.2,0.2,0.2) | |
1722 | local thingshock2 = Instance.new("SpecialMesh",shock2) | |
1723 | thingshock2.MeshType = "FileMesh" | |
1724 | thingshock2.Scale = vt(85,20,85) | |
1725 | thingshock2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1726 | local shock3 = Instance.new("Part") | |
1727 | shock3.Parent = las | |
1728 | shock3.Material = "Neon" | |
1729 | shock3.BrickColor = BrickColor.new("Really red") | |
1730 | shock3.CanCollide = false | |
1731 | shock3.Shape = "Ball" | |
1732 | shock3.Transparency = 0.75 | |
1733 | shock3.CFrame = shur.CFrame | |
1734 | shock3.Anchored = true | |
1735 | shock3.Size = vt(0.2,0.2,0.2) | |
1736 | local thingshock3 = Instance.new("SpecialMesh",shock3) | |
1737 | thingshock3.MeshType = "FileMesh" | |
1738 | thingshock3.Scale = vt(100,15,100) | |
1739 | thingshock3.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1740 | local scaleval = 5 | |
1741 | game:service'RunService'.RenderStepped:connect(function() | |
1742 | scaleval = scaleval - 0.035 | |
1743 | boim.CFrame = shur.CFrame | |
1744 | bo.Transparency = bo.Transparency + 0.0055 | |
1745 | boimmsh.Scale = boimmsh.Scale + vt(1,1,1) | |
1746 | boim2.Transparency = boim2.Transparency + 0.00125 | |
1747 | thingbo.Scale = thingbo.Scale + vt(scaleval,scaleval,scaleval) | |
1748 | shock.CFrame = shock.CFrame*CFrame.Angles(0,0.1,0) | |
1749 | shock2.CFrame = shock2.CFrame*CFrame.Angles(0,-0.1,0) | |
1750 | shock3.CFrame = shock3.CFrame*CFrame.Angles(0,0.1,0) | |
1751 | las.CFrame = shur.CFrame + vt(math.random(-1,1),0,math.random(-1,1)) | |
1752 | thing.Scale = thing.Scale + vt(0,5,0) | |
1753 | end) | |
1754 | for i = 0, 15 do | |
1755 | local sa = Instance.new("Sound",char) | |
1756 | sa.SoundId = "rbxassetid://233091205" | |
1757 | sa.Volume = 0.85 | |
1758 | sa.Pitch = 0.85 | |
1759 | sa:Play() | |
1760 | local lb = Instance.new("Part") | |
1761 | lb.Parent = las | |
1762 | lb.Material = "Neon" | |
1763 | lb.BrickColor = BrickColor.new("Really red") | |
1764 | lb.CanCollide = false | |
1765 | lb.Shape = "Ball" | |
1766 | lb.CFrame = shur.CFrame | |
1767 | lb.Anchored = true | |
1768 | lb.Size = vt(0.2,0.2,0.2) | |
1769 | local thing = Instance.new("SpecialMesh",lb) | |
1770 | thing.MeshType = "FileMesh" | |
1771 | thing.Scale = vt(50,25,50) | |
1772 | thing.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1773 | local lb3 = Instance.new("Part") | |
1774 | lb3.Parent = las | |
1775 | lb3.Material = "Neon" | |
1776 | lb3.BrickColor = BrickColor.new("Really red") | |
1777 | lb3.CanCollide = false | |
1778 | lb3.Shape = "Ball" | |
1779 | lb3.CFrame = shur.CFrame | |
1780 | lb3.Anchored = true | |
1781 | lb3.Size = vt(0.2,0.2,0.2) | |
1782 | local thing3 = Instance.new("SpecialMesh",lb3) | |
1783 | thing3.MeshType = "FileMesh" | |
1784 | thing3.Scale = vt(50,30,50) | |
1785 | thing3.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1786 | local lb2 = Instance.new("Part") | |
1787 | lb2.Parent = las | |
1788 | lb2.Material = "Neon" | |
1789 | lb2.BrickColor = BrickColor.new("Really red") | |
1790 | lb2.CanCollide = false | |
1791 | lb2.Shape = "Ball" | |
1792 | lb2.CFrame = shur.CFrame | |
1793 | lb2.Anchored = true | |
1794 | lb2.Size = vt(0.2,0.2,0.2) | |
1795 | local thing2 = Instance.new("SpecialMesh",lb2) | |
1796 | thing2.MeshType = "FileMesh" | |
1797 | thing2.Scale = vt(50,40,50) | |
1798 | thing2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1799 | local ring = Instance.new("Part") | |
1800 | ring.Parent = las | |
1801 | ring.Material = "Neon" | |
1802 | ring.BrickColor = BrickColor.new("Really red") | |
1803 | ring.CanCollide = false | |
1804 | ring.Shape = "Ball" | |
1805 | ring.CFrame = shur.CFrame | |
1806 | ring.CFrame = ring.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1807 | ring.Anchored = true | |
1808 | ring.Size = vt(0.2,0.2,0.2) | |
1809 | local thingring = Instance.new("SpecialMesh",ring) | |
1810 | thingring.MeshType = "FileMesh" | |
1811 | thingring.Scale = vt(150,150,50) | |
1812 | thingring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1813 | local ring2 = Instance.new("Part") | |
1814 | ring2.Parent = las | |
1815 | ring2.Material = "Neon" | |
1816 | ring2.BrickColor = BrickColor.new("Really red") | |
1817 | ring2.CanCollide = false | |
1818 | ring2.Shape = "Ball" | |
1819 | ring2.CFrame = shur.CFrame | |
1820 | ring2.CFrame = ring2.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1821 | ring2.Anchored = true | |
1822 | ring2.Size = vt(0.2,0.2,0.2) | |
1823 | local thingring2 = Instance.new("SpecialMesh",ring2) | |
1824 | thingring2.MeshType = "FileMesh" | |
1825 | thingring2.Scale = vt(150,150,50) | |
1826 | thingring2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1827 | local circle = Instance.new("Part") | |
1828 | circle.Parent = las | |
1829 | circle.Material = "Neon" | |
1830 | circle.BrickColor = BrickColor.new("Really red") | |
1831 | circle.CanCollide = false | |
1832 | circle.Shape = "Ball" | |
1833 | circle.Transparency = 0 | |
1834 | circle.Size = vt(125,125,125) | |
1835 | circle.CFrame = shur.CFrame | |
1836 | circle.Anchored = true | |
1837 | local smooth = game:service'RunService'.RenderStepped:connect(function() | |
1838 | sa.Volume = sa.Volume - 0.025 | |
1839 | thingring.Scale = thingring.Scale + vt(1,1,0) | |
1840 | ring.Transparency = ring.Transparency + 0.025 | |
1841 | thingring2.Scale = thingring2.Scale + vt(1,1,0) | |
1842 | ring2.Transparency = ring2.Transparency + 0.025 | |
1843 | circle.Size = circle.Size + vt(1,1,1) | |
1844 | circle.Transparency = circle.Transparency + 0.025 | |
1845 | circle.CFrame = shur.CFrame | |
1846 | lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.05,0) | |
1847 | thing.Scale = thing.Scale + vt(5,0,5) | |
1848 | lb.Transparency = lb.Transparency + 0.025 | |
1849 | lb2.CFrame = lb2.CFrame*CFrame.Angles(0,0.05,0) | |
1850 | thing2.Scale = thing2.Scale + vt(3.5,0,3.5) | |
1851 | lb2.Transparency = lb2.Transparency + 0.025 | |
1852 | lb3.CFrame = lb3.CFrame*CFrame.Angles(0,-0.05,0) | |
1853 | thing3.Scale = thing3.Scale + vt(2.5,0,2.5) | |
1854 | lb3.Transparency = lb3.Transparency + 0.025 | |
1855 | end) | |
1856 | wait(1) | |
1857 | lb:Destroy() | |
1858 | lb2:Destroy() | |
1859 | lb3:Destroy() | |
1860 | circle:Destroy() | |
1861 | ring:Destroy() | |
1862 | ring2:Destroy() | |
1863 | sa:Destroy() | |
1864 | smooth:disconnect() | |
1865 | end | |
1866 | attack = false | |
1867 | hum.WalkSpeed = 16 | |
1868 | ex:Destroy() | |
1869 | ex2:Destroy() | |
1870 | ex3:Destroy() | |
1871 | ex4:Destroy() | |
1872 | ex5:Destroy() | |
1873 | for i = 0, 100 do | |
1874 | seen.Volume = seen.Volume - 0.05 | |
1875 | thing.Scale = thing.Scale - vt(0.01,0,0.01) | |
1876 | thingshock.Scale = thingshock.Scale - vt(1,0,1) | |
1877 | thingshock2.Scale = thingshock2.Scale - vt(1,0,1) | |
1878 | thingshock3.Scale = thingshock3.Scale - vt(1,0,1) | |
1879 | las.Transparency = las.Transparency + 0.025 | |
1880 | shock.Transparency = shock.Transparency + 0.025 | |
1881 | shock2.Transparency = shock2.Transparency + 0.025 | |
1882 | shock3.Transparency = shock3.Transparency + 0.025 | |
1883 | dec.Transparency = dec.Transparency + 0.015 | |
1884 | dec2.Transparency = dec.Transparency | |
1885 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
1886 | value1 = value1 - 0.015*5 | |
1887 | wait(0) | |
1888 | end | |
1889 | shur:Destroy() | |
1890 | gahd:Destroy() | |
1891 | ff:Destroy() | |
1892 | las:Destroy() | |
1893 | end | |
1894 | ||
1895 | attackcombo = 0 | |
1896 | ||
1897 | mouse.Button1Down:connect(function() | |
1898 | if hold == false then | |
1899 | if attack == false and attackcombo == 0 then | |
1900 | attackcombo = 1 | |
1901 | attackone() | |
1902 | elseif attack == false and attackcombo == 1 then | |
1903 | attackcombo = 2 | |
1904 | attacktwo() | |
1905 | elseif attack == false and attackcombo == 2 then | |
1906 | attackcombo = 3 | |
1907 | attackthree() | |
1908 | elseif attack == false and attackcombo == 3 then | |
1909 | attackcombo = 0 | |
1910 | attackfour() | |
1911 | end | |
1912 | end | |
1913 | if attack == true and hold == true then | |
1914 | hold = false | |
1915 | end | |
1916 | end) | |
1917 | mouse.KeyDown:connect(function(key) | |
1918 | if key == "z" and attack == false and hold == false then | |
1919 | hold = true | |
1920 | do1() | |
1921 | elseif key == "x" and attack == false then | |
1922 | do2() | |
1923 | elseif key == "c" and attack == false then | |
1924 | do3() | |
1925 | elseif key == "v" and attack == false then | |
1926 | do4() | |
1927 | elseif key == "q" and attack == false and plr.Name == "elementman124" then | |
1928 | doSpecial() | |
1929 | end | |
1930 | end) | |
1931 | char.Humanoid.Animator.Parent = nil | |
1932 | ||
1933 | game:GetService("RunService").Stepped:connect(function() | |
1934 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1935 | velocity = RootPart.Velocity.y | |
1936 | sine = sine + change | |
1937 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
1938 | if equipped == true or equipped == false then | |
1939 | if RootPart.Velocity.y > 1 and hit == nil then | |
1940 | Anim = "Jump" | |
1941 | 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)),.3) | |
1942 | 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)),.3) | |
1943 | if attack == false then | |
1944 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1945 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1946 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(25)), 0.3) | |
1947 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-25)), 0.3) | |
1948 | end | |
1949 | else | |
1950 | if RootPart.Velocity.y < -1 and hit == nil then | |
1951 | Anim = "Fall" | |
1952 | 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)),.3) | |
1953 | 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)),.3) | |
1954 | if attack == false then | |
1955 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1956 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
1957 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(25)), 0.3) | |
1958 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-25)), 0.3) | |
1959 | end | |
1960 | else | |
1961 | if Torsovelocity < 1 and hit ~= nil then | |
1962 | Anim = "Idle" | |
1963 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-20),math.rad(0)),.3) | |
1964 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1965 | if attack == false then | |
1966 | change = 1 | |
1967 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(0),math.rad(0),math.rad(10)),.3) | |
1968 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-10)),.3) | |
1969 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(10 - 2.5 * math.cos(sine / 32))), 0.3) | |
1970 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 32))), 0.3) | |
1971 | end | |
1972 | else | |
1973 | if Torsovelocity > 2 and hit ~= nil then | |
1974 | Anim = "Walk" | |
1975 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
1976 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
1977 | if attack == false then | |
1978 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
1979 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1980 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(75 + 1.5 * math.cos(sine / 5)), math.rad(75), math.rad(10)), 0.3) | |
1981 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 25 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3) | |
1982 | end | |
1983 | end | |
1984 | end | |
1985 | end | |
1986 | end | |
1987 | end | |
1988 | end) | |
1989 | end |