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