SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
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 Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
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 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | ||
146 | Services = setmetatable({},{__index=function(s,r) return game:service(r) end}) | |
147 | Player = Services.Players.LocalPlayer | |
148 | wait()script.Parent=nil | |
149 | BodyParts={} | |
150 | abs = function(int) | |
151 | if int < 0 then return -int else return int end | |
152 | end | |
153 | rad = function(deg) | |
154 | return deg * math.pi / 180 | |
155 | end | |
156 | deg = function(rad) | |
157 | return rad * 180 / math.pi | |
158 | end | |
159 | dist = function(p1,p2) | |
160 | r,e = ypcall(function() | |
161 | p1 = p1.Position | |
162 | end) | |
163 | if not r then p1 = p1 end | |
164 | r,e = ypcall(function() | |
165 | p2 = p2.Position | |
166 | end) | |
167 | if not r then p1 = p1 end | |
168 | return math.sqrt( (p2.X-p1.X)^2 + (p2.Y-p1.Y)^2 + (p2.Z-p1.Z)^2 ) | |
169 | end | |
170 | ||
171 | function GetChar() | |
172 | return Player.Character | |
173 | end | |
174 | function GetHum() | |
175 | for i,v in pairs(GetChar():children'') do | |
176 | if v.ClassName == 'Humanoid' then | |
177 | return v | |
178 | end | |
179 | end | |
180 | end | |
181 | ||
182 | function Died() | |
183 | for i,v in pairs(GetChar():children'') do | |
184 | if v.ClassName == 'Part' then | |
185 | table.insert(BodyParts,{v.CFrame,v}) | |
186 | elseif v.ClassName == 'Hat' then | |
187 | v.Parent=workspace | |
188 | table.insert(BodyParts,{v.Handle.CFrame,v.Handle,1}) | |
189 | end | |
190 | end | |
191 | ||
192 | wait(3) | |
193 | for i,v in pairs(BodyParts) do | |
194 | v[2].Anchored=true | |
195 | if v[2].Name == 'Torso' then pos = v[1] end | |
196 | end | |
197 | ||
198 | for i,v in pairs(BodyParts) do | |
199 | coroutine.resume(coroutine.create(function() | |
200 | repeat Services.RunService.Heartbeat:wait() | |
201 | v[2].CFrame = v[2].CFrame:lerp(v[1],.1) | |
202 | until dist(v[2],v[1]) < .05 | |
203 | v[2].CFrame=v[1] | |
204 | end)) | |
205 | end | |
206 | end | |
207 | ||
208 | Player.CharacterAdded:connect(function(char) | |
209 | char:WaitForChild('Torso') | |
210 | for i,v in pairs(BodyParts) do | |
211 | if v[3] then | |
212 | v[2]:Remove() | |
213 | end | |
214 | end | |
215 | BodyParts={} | |
216 | char.Torso.CFrame=pos or CFrame.new(0,12,0) | |
217 | GetHum().Died:connect(Died) | |
218 | end) | |
219 | GetHum().Died:connect(Died) | |
220 | print'rannering' | |
221 | ||
222 | --[[ | |
223 | Stand: The World | |
224 | User: DIO | |
225 | ]] | |
226 | ||
227 | ---Declarations | |
228 | local Cn=CFrame.new | |
229 | local CA=CFrame.Angles | |
230 | local mr=math.rad | |
231 | local rn=math.random | |
232 | local mc=math.cos | |
233 | local Vn=Vector3.new | |
234 | local NR=NumberRange.new | |
235 | local NSeq=NumberSequence.new | |
236 | local plrs=game:service"Players" | |
237 | local wrk=game:service"Workspace" | |
238 | local deb=game:service"Debris" | |
239 | local IS=game:GetService("InsertService") | |
240 | local p=plrs.LocalPlayer | |
241 | local cam=wrk.CurrentCamera | |
242 | local char=p.Character | |
243 | local mouse=p:GetMouse() | |
244 | local lam=char["Left Arm"] | |
245 | local ram=char["Right Arm"] | |
246 | local llg=char["Left Leg"] | |
247 | local rlg=char["Right Leg"] | |
248 | local hed=char.Head | |
249 | local tor=char.Torso | |
250 | local larm = lam | |
251 | local rarm = ram | |
252 | local lleg = llg | |
253 | local rleg = rlg | |
254 | local torso = tor | |
255 | local hrp=char.HumanoidRootPart | |
256 | local PlayerSpeed = char.Humanoid.WalkSpeed | |
257 | local on=false | |
258 | local noRig=false | |
259 | local curws=16 | |
260 | local sine=0 | |
261 | local ift={} | |
262 | local ifxd=false | |
263 | local run=false | |
264 | local stance="Cane" | |
265 | local Speed = 16 | |
266 | local Health = 9000 | |
267 | ||
268 | PlayerSpeed = 16 | |
269 | ||
270 | ypcall(function() | |
271 | char.Shirt:Destroy() | |
272 | char.Pants:Destroy() | |
273 | shirt = Instance.new("Shirt", char) | |
274 | shirt.Name = "Shirt" | |
275 | pants = Instance.new("Pants", char) | |
276 | pants.Name = "Pants" | |
277 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=298260655" | |
278 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=298260668" | |
279 | end) | |
280 | ||
281 | Debounces = { | |
282 | CanAttack = true; | |
283 | NoIdl = false; | |
284 | Slashing = false; | |
285 | Slashed = false; | |
286 | RPunch = false; | |
287 | RPunched = false; | |
288 | LPunch = false; | |
289 | LPunched = false; | |
290 | } | |
291 | ||
292 | local trappedTorsos = {} | |
293 | ||
294 | ---Functions | |
295 | ||
296 | function FndHm(flnm) | |
297 | for i,v in pairs(flnm:GetChildren()) do | |
298 | if v:IsA("Humanoid") then | |
299 | return v | |
300 | end | |
301 | end | |
302 | end | |
303 | local hum=FndHm(char) | |
304 | --hum.Name="" | |
305 | ||
306 | ||
307 | function chrDes(inst) | |
308 | local ret=nil | |
309 | for _,v in pairs(game.Players:GetChildren()) do | |
310 | if inst:IsDescendantOf(v) then | |
311 | ret=v | |
312 | break | |
313 | end | |
314 | end | |
315 | return ret | |
316 | end | |
317 | ||
318 | -- | |
319 | function get(a) | |
320 | local cont={} | |
321 | for i,v in pairs(a:GetChildren()) do | |
322 | if v==char then | |
323 | else | |
324 | table.insert(cont,v) | |
325 | pcall(function() | |
326 | for _,b in pairs(get(v)) do | |
327 | table.insert(cont,b) | |
328 | end | |
329 | end) | |
330 | end | |
331 | end | |
332 | return cont | |
333 | end | |
334 | for _,v in pairs(get(game.Workspace)) do | |
335 | if v:IsA("Sparkles") or v:IsA("Fire") then | |
336 | v:Destroy() | |
337 | end | |
338 | end | |
339 | ||
340 | -- | |
341 | function inT(qur,tbl) | |
342 | local a=false | |
343 | for i,v in pairs(tbl) do | |
344 | if v==qur then | |
345 | a=true | |
346 | break | |
347 | else | |
348 | a=false | |
349 | end | |
350 | end | |
351 | return a | |
352 | end | |
353 | ||
354 | -- | |
355 | function Tween(a,b,c) | |
356 | return a+(b-a)*c | |
357 | end | |
358 | ||
359 | -- | |
360 | function Avg(a,b) | |
361 | return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2) | |
362 | end | |
363 | ||
364 | -- | |
365 | function Lerp(c1,c2,tim) | |
366 | local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()} | |
367 | local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
368 | for i,v in pairs(com1) do | |
369 | com1[i]=v+(com2[i]-v)*tim | |
370 | end | |
371 | return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1))) | |
372 | end | |
373 | ||
374 | function RLerp(c1,c2,tim) | |
375 | return c1:lerp(c2,tim) | |
376 | end | |
377 | ||
378 | -- | |
379 | function ALerp(c1,c2,tim) | |
380 | local com1={c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
381 | local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
382 | for i,v in pairs(com1) do | |
383 | com1[i]=v+(com2[i]-v)*tim | |
384 | end | |
385 | return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1))) | |
386 | end | |
387 | ||
388 | -- | |
389 | function Lerprs(ud,ud2,al) | |
390 | local a,b,c,d=ud.X.Scale,ud.X.Offset,ud.Y.Scale,ud.Y.Offset | |
391 | local a2,b2,c2,d2=ud2.X.Scale,ud2.X.Offset,ud2.Y.Scale,ud2.Y.Offset | |
392 | local x,y,z,w=(a+(a2-a)*al),(b+(b2-b)*al),(c+(c2-c)*al),(d+(d2-d)*al) | |
393 | return UDim2.new(x,y,z,w) | |
394 | end | |
395 | ||
396 | -- | |
397 | function newAnim(wld) | |
398 | local asd={["Weld"]=wld;["Int"]=0;["Frame"]=1;} | |
399 | asd.getFrames=function() | |
400 | local num=0 | |
401 | for _,v in pairs(asd) do | |
402 | pcall(function() | |
403 | num=num+v.Length | |
404 | end) | |
405 | end | |
406 | return num | |
407 | end | |
408 | return asd | |
409 | end | |
410 | ||
411 | -- | |
412 | function newKF(tab,c0,lng,off) | |
413 | off=off or 1 | |
414 | table.insert(tab,{["C0"]=c0,["Length"]=lng,["Offset"]=off}) | |
415 | end | |
416 | ||
417 | -- | |
418 | function runKF(tab) | |
419 | tab.Int=tab.Int+1 | |
420 | if tab.Int>=tab[tab.Frame].Length then | |
421 | tab.Frame=tab.Frame+1 | |
422 | tab.Int=0 | |
423 | if tab.Frame>#tab then | |
424 | tab.Frame=1 | |
425 | end | |
426 | end | |
427 | tab.Weld.C0=RLerp(tab.Weld.C0,tab[tab.Frame].C0,(tab[tab.Frame].Offset/tab[tab.Frame].Length)*tab.Int) | |
428 | end | |
429 | ||
430 | -- | |
431 | function nwPrt(prnt,siz,cf,col) | |
432 | local prt=Instance.new("Part") | |
433 | prt.Parent=prnt | |
434 | prt.FormFactor=3 | |
435 | prt.Name="Part" | |
436 | prt.Size=siz | |
437 | prt.CanCollide=false | |
438 | prt.Anchored=true | |
439 | prt.Locked=true | |
440 | prt.TopSurface=10 | |
441 | prt.BottomSurface=10 | |
442 | prt.FrontSurface=10 | |
443 | prt.BackSurface=10 | |
444 | prt.LeftSurface=10 | |
445 | prt.RightSurface=10 | |
446 | prt:BreakJoints() | |
447 | prt.CFrame=cf or CFrame.new(30,10,30) | |
448 | prt.Material="SmoothPlastic" | |
449 | prt.BrickColor=BrickColor.new(col) | |
450 | m=Instance.new("SpecialMesh",prt) | |
451 | m.MeshType=6 | |
452 | return prt | |
453 | end | |
454 | ||
455 | -- | |
456 | function nwWdg(prnt,siz,cf,col) | |
457 | local prt=Instance.new("WedgePart") | |
458 | prt.Parent=prnt | |
459 | prt.FormFactor=3 | |
460 | prt.Name="Part" | |
461 | prt.Size=siz | |
462 | prt.CanCollide=false | |
463 | prt.Anchored=false | |
464 | prt.Locked=true | |
465 | prt.TopSurface=0 | |
466 | prt.BottomSurface=0 | |
467 | prt:BreakJoints() | |
468 | prt.CFrame=cf or CFrame.new(30,10,30) | |
469 | prt.Material="SmoothPlastic" | |
470 | prt.BrickColor=BrickColor.new(col) | |
471 | return prt | |
472 | end | |
473 | ||
474 | -- | |
475 | function newGui(prnt,clsnm,siz,pos,bsp,bc,bt) | |
476 | local gui=Instance.new(clsnm,prnt) | |
477 | gui.Size=siz or UDim2.new(0,100,0,100) | |
478 | gui.Position=pos or UDim2.new(0,0,0,0) | |
479 | gui.BorderSizePixel=bsp or 0 | |
480 | gui.BackgroundColor3=bc or Color3.new(0,0,0) | |
481 | gui.BackgroundTransparency=bt or 1 | |
482 | return gui | |
483 | end | |
484 | ||
485 | -- | |
486 | function nwWld(wp0,wp1,wc0) | |
487 | wld = Instance.new("Weld",wp1) | |
488 | wld.Part0=wp0 | |
489 | wld.Part1=wp1 | |
490 | wld.C0=wc0 or Cn(0,0,0) | |
491 | return wld | |
492 | end | |
493 | ||
494 | -- | |
495 | function nwSnd(prnt,pch,vol,id) | |
496 | local s=Instance.new("Sound",prnt) | |
497 | s.Pitch=pch | |
498 | s.Volume=vol | |
499 | s.SoundId="rbxassetid://"..id | |
500 | s.PlayOnRemove=true | |
501 | return s | |
502 | end | |
503 | ||
504 | -- | |
505 | function newRay(start,face,range,wat) | |
506 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
507 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
508 | return rey,hit,pos | |
509 | end | |
510 | ||
511 | function nooutline(part) | |
512 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
513 | end | |
514 | ||
515 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
516 | local fp=it("Part") | |
517 | fp.formFactor=formfactor | |
518 | fp.Parent=parent | |
519 | fp.Reflectance=reflectance | |
520 | fp.Transparency=transparency | |
521 | fp.CanCollide=false | |
522 | fp.Locked=true | |
523 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
524 | fp.Name=name | |
525 | fp.Size=size | |
526 | fp.Position=Character.Torso.Position | |
527 | nooutline(fp) | |
528 | fp.Material=material | |
529 | fp:BreakJoints() | |
530 | return fp | |
531 | end | |
532 | ||
533 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
534 | local mesh=it(Mesh) | |
535 | mesh.Parent=part | |
536 | if Mesh=="SpecialMesh" then | |
537 | mesh.MeshType=meshtype | |
538 | mesh.MeshId=meshid | |
539 | end | |
540 | mesh.Offset=offset | |
541 | mesh.Scale=scale | |
542 | return mesh | |
543 | end | |
544 | ||
545 | function weld(parent,part0,part1,c0,c1) | |
546 | local weld=it("Weld") | |
547 | weld.Parent=parent | |
548 | weld.Part0=part0 | |
549 | weld.Part1=part1 | |
550 | weld.C0=c0 | |
551 | weld.C1=c1 | |
552 | return weld | |
553 | end | |
554 | TfwTimeStopped = false | |
555 | function Damagefunc(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
556 | if hit.Parent==nil then | |
557 | return | |
558 | end | |
559 | h=hit.Parent:FindFirstChild("Humanoid") | |
560 | for _,v in pairs(hit.Parent:children()) do | |
561 | if v:IsA("Humanoid") then | |
562 | h=v | |
563 | end | |
564 | end | |
565 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
566 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
567 | end | |
568 | if hit.Parent.className=="Hat" then | |
569 | hit=hit.Parent.Parent:findFirstChild("Head") | |
570 | end | |
571 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
572 | if hit.Parent:findFirstChild("DebounceHit")~=nil then | |
573 | if hit.Parent.DebounceHit.Value==true then | |
574 | return | |
575 | end | |
576 | end | |
577 | --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
578 | return | |
579 | end]] | |
580 | --hs(hit,1.2) | |
581 | c=Instance.new("ObjectValue") | |
582 | c.Name="creator" | |
583 | c.Value=game:service("Players").LocalPlayer | |
584 | c.Parent=h | |
585 | game:GetService("Debris"):AddItem(c,.5) | |
586 | Damage=math.random(minim,maxim) | |
587 | --h:TakeDamage(Damage) | |
588 | blocked=false | |
589 | block=hit.Parent:findFirstChild("Block") | |
590 | if block~=nil then | |
591 | print(block.className) | |
592 | if block.className=="NumberValue" then | |
593 | if block.Value>0 then | |
594 | blocked=true | |
595 | if decreaseblock==nil then | |
596 | block.Value=block.Value-1 | |
597 | end | |
598 | end | |
599 | end | |
600 | if block.className=="IntValue" then | |
601 | if block.Value>0 then | |
602 | blocked=true | |
603 | if decreaseblock~=nil then | |
604 | block.Value=block.Value-1 | |
605 | end | |
606 | end | |
607 | end | |
608 | end | |
609 | if blocked==false then | |
610 | --h:TakeDamage(Damage) | |
611 | if TfwTimeStopped == false then | |
612 | h.Health=h.Health-Damage | |
613 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
614 | elseif TfwTimeStopped == true then | |
615 | repeat wait() until TfwTimeStopped == false | |
616 | h.Health=h.Health-0.1 | |
617 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
618 | end | |
619 | else | |
620 | h.Health=h.Health-(Damage/2) | |
621 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
622 | end | |
623 | if Type=="Knockdown" then | |
624 | hum=hit.Parent.Humanoid | |
625 | hum.PlatformStand=true | |
626 | coroutine.resume(coroutine.create(function(HHumanoid) | |
627 | swait(1) | |
628 | HHumanoid.PlatformStand=false | |
629 | end),hum) | |
630 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
631 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
632 | local bodvol=Instance.new("BodyVelocity") | |
633 | bodvol.velocity=angle*knockback | |
634 | bodvol.P=500 | |
635 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
636 | bodvol.Parent=hit | |
637 | game:GetService("Debris"):AddItem(bodvol,.5) | |
638 | game:GetService("Debris"):AddItem(rl,.5) | |
639 | elseif Type == "Killer Queen" then | |
640 | hum=hit.Parent.Humanoid | |
641 | hum.PlatformStand=true | |
642 | coroutine.resume(coroutine.create(function(HHumanoid) | |
643 | swait(1) | |
644 | HHumanoid.PlatformStand=false | |
645 | end),hum) | |
646 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
647 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
648 | local bodvol=Instance.new("BodyVelocity") | |
649 | bodvol.velocity=angle*knockback | |
650 | bodvol.P=500 | |
651 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
652 | bodvol.Parent=hit | |
653 | game:GetService("Debris"):AddItem(bodvol,.5) | |
654 | game:GetService("Debris"):AddItem(rl,.5) | |
655 | wait(3) | |
656 | ||
657 | elseif Type=="Normal" then | |
658 | vp=Instance.new("BodyVelocity") | |
659 | vp.P=500 | |
660 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
661 | --vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
662 | if KnockbackType==1 then | |
663 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
664 | elseif KnockbackType==2 then | |
665 | vp.velocity=Property.CFrame.lookVector*knockback | |
666 | end | |
667 | if knockback>0 then | |
668 | vp.Parent=hit.Parent.Torso | |
669 | end | |
670 | game:GetService("Debris"):AddItem(vp,.5) | |
671 | elseif Type=="Up" then | |
672 | local bodyVelocity=Instance.new("BodyVelocity") | |
673 | bodyVelocity.velocity=vt(0,60,0) | |
674 | bodyVelocity.P=5000 | |
675 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
676 | bodyVelocity.Parent=hit | |
677 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
678 | rl=Instance.new("BodyAngularVelocity") | |
679 | rl.P=3000 | |
680 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
681 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
682 | rl.Parent=hit | |
683 | game:GetService("Debris"):AddItem(rl,.5) | |
684 | elseif Type=="Snare" then | |
685 | bp=Instance.new("BodyPosition") | |
686 | bp.P=2000 | |
687 | bp.D=100 | |
688 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
689 | bp.position=hit.Parent.Torso.Position | |
690 | bp.Parent=hit.Parent.Torso | |
691 | game:GetService("Debris"):AddItem(bp,1) | |
692 | elseif Type=="Target" then | |
693 | local Targetting = false | |
694 | if Targetting==false then | |
695 | ZTarget=hit.Parent.Torso | |
696 | coroutine.resume(coroutine.create(function(Part) | |
697 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
698 | swait(5) | |
699 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
700 | end),ZTarget) | |
701 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
702 | local targetgui=Instance.new("BillboardGui") | |
703 | targetgui.Parent=ZTarget | |
704 | targetgui.Size=UDim2.new(10,100,10,100) | |
705 | local targ=Instance.new("ImageLabel") | |
706 | targ.Parent=targetgui | |
707 | targ.BackgroundTransparency=1 | |
708 | targ.Image="rbxassetid://4834067" | |
709 | targ.Size=UDim2.new(1,0,1,0) | |
710 | cam.CameraType="Scriptable" | |
711 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
712 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
713 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
714 | Targetting=true | |
715 | RocketTarget=ZTarget | |
716 | for i=1,Property do | |
717 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
718 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
719 | swait() | |
720 | end | |
721 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
722 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
723 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
724 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
725 | end | |
726 | Targetting=false | |
727 | RocketTarget=nil | |
728 | targetgui.Parent=nil | |
729 | cam.CameraType="Custom" | |
730 | end | |
731 | end | |
732 | local debounce=Instance.new("BoolValue") | |
733 | debounce.Name="DebounceHit" | |
734 | debounce.Parent=hit.Parent | |
735 | debounce.Value=true | |
736 | game:GetService("Debris"):AddItem(debounce,Delay) | |
737 | c=Instance.new("ObjectValue") | |
738 | c.Name="creator" | |
739 | c.Value=Player | |
740 | c.Parent=h | |
741 | game:GetService("Debris"):AddItem(c,.5) | |
742 | end | |
743 | end | |
744 | ||
745 | function ShowDamage(Pos, Text, Time, Color) | |
746 | local Rate = (1 / 30) | |
747 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
748 | local Text = (Text or "") | |
749 | local Time = (Time or 2) | |
750 | local Color = (Color or Color3.new(1, 0, 0)) | |
751 | local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
752 | EffectPart.Anchored = true | |
753 | local BillboardGui = Instance.new("BillboardGui") | |
754 | BillboardGui.Size = UDim2.new(3, 3, 3, 3) | |
755 | BillboardGui.Adornee = EffectPart | |
756 | local TextLabel = Instance.new("TextLabel") | |
757 | TextLabel.BackgroundTransparency = 1 | |
758 | TextLabel.Size = UDim2.new(3, 3, 3, 3) | |
759 | TextLabel.Text = Text | |
760 | TextLabel.TextColor3 = Color | |
761 | TextLabel.TextStrokeColor3 = BrickColor.new("Pearl").Color | |
762 | TextLabel.TextScaled = true | |
763 | TextLabel.TextStrokeTransparency = 0 | |
764 | TextLabel.Font = Enum.Font.SourceSansBold | |
765 | TextLabel.Parent = BillboardGui | |
766 | BillboardGui.Parent = EffectPart | |
767 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
768 | EffectPart.Parent = game:GetService("Workspace") | |
769 | Delay(0, function() | |
770 | local Frames = (Time / Rate) | |
771 | for Frame = 1, Frames do | |
772 | wait(Rate) | |
773 | local Percent = (Frame / Frames) | |
774 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
775 | TextLabel.TextTransparency = Percent | |
776 | TextLabel.TextStrokeTransparency = Percent | |
777 | end | |
778 | if EffectPart and EffectPart.Parent then | |
779 | EffectPart:Destroy() | |
780 | end | |
781 | end) | |
782 | end | |
783 | ||
784 | --[[local Player = game:service("Players").LocalPlayer | |
785 | repeat wait() until Player.Character ~= nil | |
786 | ||
787 | local Char = Player.Character | |
788 | local mouse = Player:GetMouse() | |
789 | local Backpack = Player.Backpack | |
790 | local PlayerGui = Player.PlayerGui | |
791 | local Camera = workspace.CurrentCamera | |
792 | local Humanoid = Char:findFirstChild("Humanoid") | |
793 | local Torso = Char:findFirstChild("Torso") | |
794 | local Head = Char:findFirstChild("Head") | |
795 | local ra = Char:findFirstChild("Right Arm") | |
796 | local la = Char:findFirstChild("Left Arm") | |
797 | local rl = Char:findFirstChild("Right Leg") | |
798 | local ll = Char:findFirstChild("Left Leg") | |
799 | local rs = Torso:findFirstChild("Right Shoulder") | |
800 | local ls = Torso:findFirstChild("Left Shoulder") | |
801 | local rh = Torso:findFirstChild("Right Hip") | |
802 | local lh = Torso:findFirstChild("Left Hip") | |
803 | local neck = Torso:findFirstChild("Neck") | |
804 | local rootpart = Char:findFirstChild("HumanoidRootPart") | |
805 | local rj = rootpart:findFirstChild("RootJoint") | |
806 | local anim = Char:findFirstChild("Animate") | |
807 | local RunService = game:GetService("RunService") | |
808 | local UIA = game:GetService("UserInputService") | |
809 | local CF = CFrame.new | |
810 | local CA = CFrame.Angles | |
811 | local FEA = CFrame.fromEulerAnglesXYZ | |
812 | local FAA = CFrame.fromAxisAngle | |
813 | local V3 = Vector3.new | |
814 | local CN = Color3.new | |
815 | local Ice = Instance.new | |
816 | local BC = BrickColor.new | |
817 | local UD2 = UDim2.new | |
818 | local C3 = Color3.new | |
819 | local MR = math.rad | |
820 | local MP = math.pi | |
821 | local MD = math.deg | |
822 | local MH = math.huge | |
823 | local MS = math.sin | |
824 | local MC = math.cos | |
825 | local MT = math.tan | |
826 | local MAS = math.asin | |
827 | local MAC = math.acos | |
828 | local MAT = math.atan | |
829 | local components = CF().components | |
830 | ||
831 | local State = {} | |
832 | State["Calm"] = "Active" | |
833 | ||
834 | function Tweenz(a,b,i) | |
835 | return a:lerp(b,i) | |
836 | end | |
837 | ||
838 | function Create(Instanc,prop) | |
839 | local p=Instance.new(Instanc) | |
840 | for i,v in pairs(prop) do | |
841 | p[i]=v | |
842 | end | |
843 | return p | |
844 | end | |
845 | ||
846 | local c0 = { | |
847 | RightArm = CF(1.5,0.5,0), | |
848 | LeftArm = CF(-1.5,0.5,0), | |
849 | RightLeg = CF(0.5,-1,0), | |
850 | LeftLeg = CF(-0.5,-1,0), | |
851 | RootJoint = CF(0,0,0), | |
852 | Neck = CF(0,1,0) | |
853 | } | |
854 | local c1 = { | |
855 | RightArm = CF(0,0.5,0), | |
856 | LeftArm = CF(0,0.5,0), | |
857 | RightLeg = CF(0,1,0), | |
858 | LeftLeg = CF(0,1,0), | |
859 | RootJoint = CF(0,0,0), | |
860 | Neck = CF(0,-0.5,0) | |
861 | } | |
862 | ||
863 | ||
864 | --RightArm = Create("Snap",{Parent=Torso,C0=c0.RightArm,C1=c1.RightArm,Part0=Torso,Part1=ra}) | |
865 | --LeftArm = Create("Snap",{Parent=Torso,C0=c0.LeftArm,C1=c1.LeftArm,Part0=Torso,Part1=la}) | |
866 | RightLeg = Create("Snap",{Parent=Torso,C0=c0.RightLeg,C1=c1.RightLeg,Part0=Torso,Part1=rl}) | |
867 | LeftLeg = Create("Snap",{Parent=Torso,C0=c0.LeftLeg,C1=c1.LeftLeg,Part0=Torso,Part1=ll}) | |
868 | ||
869 | neck.C0 = c0.Neck | |
870 | neck.C1 = c1.Neck | |
871 | ||
872 | local Spread = 12 | |
873 | local Smooth = 1 | |
874 | ||
875 | local angle = tick() | |
876 | game:GetService("RunService").Stepped:connect(function() | |
877 | local lefth = (Torso.CFrame*c0.LeftLeg) | |
878 | local righth = (Torso.CFrame*c0.RightLeg) | |
879 | angle = angle+0.2*Smooth | |
880 | local speed = V3(Torso.Velocity.X,0,Torso.Velocity.Z) | |
881 | local TiltOnAxis = (rootpart.CFrame-rootpart.CFrame.p):inverse()*speed/100 | |
882 | rj.C0 = Tweenz(rj.C0,CFrame.Angles(MR(-90)+TiltOnAxis.Z,TiltOnAxis.X,MR(180)+-TiltOnAxis.X),.1) | |
883 | --[[local offset = CFrame.new(0,5,0) | |
884 | rj.C0 = CF(V3(),(mouse.hit.p-rootpart.CFrame.p).unit*100)*CFrame.Angles(MR(-90),0,MR(180)) | |
885 | local h = (rootpart.CFrame*offset).p | |
886 | local d = CFrame.new(h,mouse.Hit.p) | |
887 | local e = rootpart.CFrame*CFrame.new(h) | |
888 | neck.C0 = ((d-d.p):inverse()*(e-e.p)):inverse()*CFrame.new(0,1,0)]] | |
889 | --[[local AnglePR = (righth-righth.p):inverse()*speed/100 | |
890 | local AnglePL = (lefth-lefth.p):inverse()*speed/100 | |
891 | if speed.magnitude < 2 then | |
892 | --RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(0,0,0),.1) | |
893 | --LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(0,0,0),.1) | |
894 | elseif speed.magnitude > 2 then | |
895 | RightLeg.C0 = Tweenz(RightLeg.C0,CF(0.5,-1+math.cos(angle)*.5,-0.2+-math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*-AnglePR.Z,AnglePR.X,math.sin(angle)*Spread*AnglePR.X),.1) | |
896 | LeftLeg.C0 = Tweenz(LeftLeg.C0,CF(-0.5,-1+-math.cos(angle)*.5,-0.2+math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,AnglePL.X,math.sin(angle)*Spread*-AnglePL.X),.1) | |
897 | --RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,0,0),.1) | |
898 | --LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(-math.sin(angle)*Spread*AnglePL.Z,0,0),.1) | |
899 | end | |
900 | end) | |
901 | ]]-- | |
902 | Player = p | |
903 | workspace[Player.Name].Archivable=true | |
904 | pchar = workspace[Player.Name]:Clone() --Create("Model",{Parent=workspace}) | |
905 | pchar.Parent=workspace[Player.Name] | |
906 | torso=pchar.Torso | |
907 | humane=pchar.Humanoid | |
908 | pchar.Name= "Za Warudo" | |
909 | pl=pchar | |
910 | humane.MaxHealth=Health | |
911 | wait() | |
912 | humane.Health=Health | |
913 | humane.WalkSpeed=Speed | |
914 | ||
915 | ---Weld | |
916 | ||
917 | local law=nwWld(tor,lam,Cn(-1.5,0.5,0)) | |
918 | law.C1=CFrame.new(0,0.5,0) | |
919 | local raw=nwWld(tor,ram,Cn(1.5,0.5,0)) | |
920 | raw.C1=CFrame.new(0,0.5,0) | |
921 | local hew=nwWld(tor,hed,Cn(0,1.5,0)) | |
922 | local llw=nwWld(tor,llg,Cn(-0.5,-1,0)) | |
923 | llw.C1=CFrame.new(0,1,0) | |
924 | local rlw=nwWld(tor,rlg,Cn(0.5,-1,0)) | |
925 | rlw.C1=CFrame.new(0,1,0) | |
926 | local tow=nwWld(hrp,tor,Cn(0,-1,0)) | |
927 | tow.C1=CFrame.new(0,-1,0) | |
928 | ||
929 | local hrp2 = pchar.HumanoidRootPart | |
930 | local tor2 = torso | |
931 | local hed2 = pchar.Head | |
932 | local lam2=pchar["Left Arm"] | |
933 | local ram2=pchar["Right Arm"] | |
934 | local llg2=pchar["Left Leg"] | |
935 | local rlg2=pchar["Right Leg"] | |
936 | ||
937 | local law2=nwWld(tor2,lam2,Cn(-1.5,0.5,0)) | |
938 | law2.C1=CFrame.new(0,0.5,0) | |
939 | local raw2=nwWld(tor2,ram2,Cn(1.5,0.5,0)) | |
940 | raw2.C1=CFrame.new(0,0.5,0) | |
941 | local hew2=nwWld(torso,hed2,Cn(0,1.5,0)) | |
942 | local llw2=nwWld(torso,llg2,Cn(-0.5,-1,0)) | |
943 | llw2.C1=CFrame.new(0,1,0) | |
944 | local rlw2=nwWld(tor2,rlg2,Cn(0.5,-1,0)) | |
945 | rlw2.C1=CFrame.new(0,1,0) | |
946 | local tow2=nwWld(hrp2,tor2,Cn(0,-1,0)) | |
947 | tow2.C1=CFrame.new(0,-1,0) | |
948 | ||
949 | ||
950 | local laD=CFrame.new(-1.5,0.5,0) | |
951 | local raD=CFrame.new(1.5,0.5,0) | |
952 | local hD=CFrame.new(0,1.5,0) | |
953 | local tD=CFrame.new(0,-1,0) | |
954 | local llD=CFrame.new(-0.5,-1,0) | |
955 | local rlD=CFrame.new(0.5,-1,0) | |
956 | ||
957 | ---Build | |
958 | ||
959 | ---Animations | |
960 | ||
961 | --Idle | |
962 | local heid=newAnim(hew) | |
963 | newKF(heid,hD*CA(mr(-15.5),0,0),50,0.3) | |
964 | newKF(heid,hD*CA(mr(-14),0,0),40,0.3) | |
965 | local toid=newAnim(tow) | |
966 | newKF(toid,tD*Cn(0,-0.0125,0)*CA(mr(16),0,0),50,0.3) | |
967 | newKF(toid,tD*Cn(0,0.0125,0)*CA(mr(15),0,0),40,0.3) | |
968 | local laid=newAnim(law) | |
969 | newKF(laid,laD*Cn(1,0.0125,-0.764)*CA(mr(80),0,mr(85)),50,0.3) | |
970 | newKF(laid,laD*Cn(1,-0.0125,-0.764)*CA(mr(70),0,mr(85)),40,0.3) | |
971 | local raid=newAnim(raw) | |
972 | newKF(raid,raD*Cn(-1,-0.0125,-0.764)*CA(mr(80),0,mr(-85)),50,0.3) | |
973 | newKF(raid,raD*Cn(-1,0.0125,-0.764)*CA(mr(70),0,mr(-85)),40,0.3) | |
974 | local llid=newAnim(llw) | |
975 | newKF(llid,llD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3) | |
976 | newKF(llid,llD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3) | |
977 | local rlid=newAnim(rlw) | |
978 | newKF(rlid,rlD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3) | |
979 | newKF(rlid,rlD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3) | |
980 | ||
981 | local heid2=newAnim(hew2) | |
982 | newKF(heid2,hD*CA(mr(16),0,0),40,0.3) | |
983 | newKF(heid2,hD*CA(mr(14),0,0),40,0.3) | |
984 | local toid2=newAnim(tow2) | |
985 | newKF(toid2,tD*Cn(0,0.5,3)*CA(mr(0),0,0),50,1) | |
986 | newKF(toid2,tD*Cn(0,1,3)*CA(mr(0),0,0),40,1) | |
987 | local laid2=newAnim(law2) | |
988 | newKF(laid2,laD*Cn(0.5,0.0125,-1)*CA(mr(20),mr(50),mr(20)),50,0.3) | |
989 | newKF(laid2,laD*Cn(0.5,-0.0125,-1)*CA(mr(20),mr(50),mr(20)),40,0.3) | |
990 | local raid2=newAnim(raw2) | |
991 | newKF(raid2,raD*Cn(-0.5,-0.0125,-1)*CA(mr(20),mr(-50),mr(-20)),50,0.3) | |
992 | newKF(raid2,raD*Cn(-0.5,0.0125,-1)*CA(mr(20),mr(-50),mr(-20)),40,0.3) | |
993 | local llid2=newAnim(llw2) | |
994 | newKF(llid2,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3) | |
995 | newKF(llid2,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3) | |
996 | local rlid2=newAnim(rlw2) | |
997 | newKF(rlid2,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3) | |
998 | newKF(rlid2,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3) | |
999 | ||
1000 | --Walk | |
1001 | local hewk=newAnim(hew) | |
1002 | newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4) | |
1003 | newKF(hewk,hD*CA(mr(-5),mr(-3),0),13,0.4) | |
1004 | newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4) | |
1005 | newKF(hewk,hD*CA(mr(-5),mr(3),0),13,0.4) | |
1006 | local towk=newAnim(tow) | |
1007 | newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2) | |
1008 | newKF(towk,tD*CA(mr(15),mr(5),0),13,0.4) | |
1009 | newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2) | |
1010 | newKF(towk,tD*CA(mr(15),mr(-5),0),13,0.4) | |
1011 | local lawk=newAnim(law) | |
1012 | newKF(lawk,laD*CA(mr(30),0,0),25,0.4) | |
1013 | newKF(lawk,laD*CA(mr(-30),0,0),25,0.4) | |
1014 | local rawk=newAnim(raw) | |
1015 | newKF(rawk,raD*CA(mr(-30),0,0),25,0.4) | |
1016 | newKF(rawk,raD*CA(mr(30),0,0),25,0.4) | |
1017 | local llwk=newAnim(llw) | |
1018 | newKF(llwk,llD*CA(mr(-40),mr(-10),mr(-2)),25,0.4) | |
1019 | newKF(llwk,llD*Cn(0,0.3,0)*CA(mr(-5),0,mr(-3)),12,0.4) | |
1020 | newKF(llwk,llD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(10),mr(-3)),13,0.4) | |
1021 | local rlwk=newAnim(rlw) | |
1022 | newKF(rlwk,rlD*Cn(0,0.3,0)*CA(mr(-5),0,mr(3)),12,0.4) | |
1023 | newKF(rlwk,rlD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(-10),mr(3)),13,0.4) | |
1024 | newKF(rlwk,rlD*CA(mr(-40),mr(10),mr(2)),25,0.4) | |
1025 | ||
1026 | --Sprint | |
1027 | local hesp=newAnim(hew) | |
1028 | newKF(hesp,hD*CA(mr(5),mr(-10),0),10,0.2) | |
1029 | newKF(hesp,hD*CA(mr(10),0,0),10,0.2) | |
1030 | newKF(hesp,hD*CA(mr(5),mr(10),0),10,0.2) | |
1031 | newKF(hesp,hD*CA(mr(10),0,0),10,0.2) | |
1032 | local tosp=newAnim(tow) | |
1033 | newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(10),0),10,0.4) | |
1034 | newKF(tosp,tD*CA(mr(-10),0,0),10,0.4) | |
1035 | newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(-10),0),10,0.4) | |
1036 | newKF(tosp,tD*CA(mr(-10),0,0),10,0.4) | |
1037 | local lasp=newAnim(law) | |
1038 | newKF(lasp,laD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4) | |
1039 | newKF(lasp,laD*CA(mr(-40),0,0),20,0.4) | |
1040 | local rasp=newAnim(raw) | |
1041 | newKF(rasp,raD*CA(mr(-40),0,0),20,0.4) | |
1042 | newKF(rasp,raD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4) | |
1043 | local llsp=newAnim(llw) | |
1044 | newKF(llsp,llD*CA(mr(-50),mr(-10),mr(-2)),20,0.4) | |
1045 | newKF(llsp,llD*Cn(0,0.5,0)*CA(mr(15),0,mr(-3)),10,0.4) | |
1046 | newKF(llsp,llD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(10),mr(-3)),10,0.4) | |
1047 | local rlsp=newAnim(rlw) | |
1048 | newKF(rlsp,rlD*Cn(0,0.3,0)*CA(mr(15),0,mr(3)),10,0.4) | |
1049 | newKF(rlsp,rlD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(-10),mr(3)),10,0.4) | |
1050 | newKF(rlsp,rlD*CA(mr(-50),mr(10),mr(2)),20,0.4) | |
1051 | ||
1052 | --Freefall | |
1053 | local heff=newAnim(hew) | |
1054 | newKF(heff,hD*CA(mr(-5),0,0),8,0.6) | |
1055 | newKF(heff,hD*CA(mr(-5),0,0),8,0.6) | |
1056 | local toff=newAnim(tow) | |
1057 | newKF(toff,tD*CA(mr(10),0,0),8,0.6) | |
1058 | newKF(toff,tD*CA(mr(10),0,0),8,0.6) | |
1059 | local laff=newAnim(law) | |
1060 | newKF(laff,laD*CA(mr(140),0,0),16,0.4) | |
1061 | newKF(laff,laD*CA(mr(140),0,0),16,0.4) | |
1062 | local raff=newAnim(raw) | |
1063 | newKF(raff,raD*CA(mr(140),0,0),16,0.4) | |
1064 | newKF(raff,raD*CA(mr(140),0,0),16,0.4) | |
1065 | local llff=newAnim(llw) | |
1066 | newKF(llff,llD*CA(0,0,mr(-5)),16,0.4) | |
1067 | newKF(llff,llD*CA(0,0,mr(-5)),16,0.4) | |
1068 | local rlff=newAnim(rlw) | |
1069 | newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4) | |
1070 | newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4) | |
1071 | ||
1072 | --Time Has Stopped | |
1073 | local hesp2=newAnim(hew) | |
1074 | newKF(hesp2,hD*CA(mr(-30),mr(0),mr(0)),10,0.5) | |
1075 | local tosp2=newAnim(tow) | |
1076 | newKF(tosp2,tD*Cn(0,0,0)*CA(mr(30),mr(0),mr(0)),10,0.5) | |
1077 | local lasp2=newAnim(law) | |
1078 | newKF(lasp2,laD*CA(mr(90),mr(0),mr(-60)),20,1.5) | |
1079 | local rasp2=newAnim(raw) | |
1080 | newKF(rasp2,raD*CA(mr(90),mr(0),mr(60)),20,1.5) | |
1081 | local llsp2=newAnim(llw) | |
1082 | newKF(llsp2,llD*Cn(0,0,0)*CA(mr(-30),mr(0),mr(0)),20,0.5) | |
1083 | local rlsp2=newAnim(rlw) | |
1084 | newKF(rlsp2,rlD*Cn(0,0,0)*CA(mr(-30),0,mr(0)),10,0.5) | |
1085 | ||
1086 | local hesp3=newAnim(hew2) | |
1087 | newKF(hesp3,hD*CA(mr(-15),mr(0),mr(0)),50,0.2) | |
1088 | local tosp3=newAnim(tow2) | |
1089 | newKF(tosp3,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),50,0.4) | |
1090 | local lasp3=newAnim(law2) | |
1091 | newKF(lasp3,laD*CA(mr(80),mr(0),mr(65)),30,0.4) | |
1092 | newKF(lasp3,laD*CA(mr(120),mr(0),mr(-60)),50,0.4) | |
1093 | local rasp3=newAnim(raw2) | |
1094 | newKF(rasp3,raD*CA(mr(80),mr(0),mr(-65)),30,0.4) | |
1095 | newKF(rasp3,raD*CA(mr(120),mr(0),mr(60)),50,0.4) | |
1096 | local llsp3=newAnim(llw2) | |
1097 | newKF(llsp3,llD*CA(mr(0),mr(0),mr(1.5)),50,0.4) | |
1098 | local rlsp3=newAnim(rlw2) | |
1099 | newKF(rlsp3,rlD*CA(mr(0),mr(0),mr(-1.5)),50,0.4) | |
1100 | ||
1101 | local hesp4=newAnim(hew2) | |
1102 | newKF(hesp4,hD*CA(mr(-10),mr(0),mr(0)),10,0.2) | |
1103 | local tosp4=newAnim(tow2) | |
1104 | newKF(tosp4,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),10,0.4) | |
1105 | local lasp4=newAnim(law2) | |
1106 | newKF(lasp4,laD*CA(mr(120),mr(0),mr(-60)),20,0.4) | |
1107 | local rasp4=newAnim(raw2) | |
1108 | newKF(rasp4,raD*CA(mr(120),mr(0),mr(60)),20,0.4) | |
1109 | local llsp4=newAnim(llw2) | |
1110 | newKF(llsp4,llD*CA(mr(0),mr(0),mr(1.5)),20,0.4) | |
1111 | local rlsp4=newAnim(rlw2) | |
1112 | newKF(rlsp4,rlD*CA(mr(0),mr(0),mr(-1.5)),10,0.4) | |
1113 | ||
1114 | --Let time flow again | |
1115 | local hetoki=newAnim(hew) | |
1116 | newKF(hetoki,hD*CA(mr(0),mr(0),mr(0)),10,0.2) | |
1117 | local totoki=newAnim(tow) | |
1118 | newKF(totoki,tD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4) | |
1119 | local latoki=newAnim(law) | |
1120 | newKF(latoki,laD*Cn(0,-0.1,-0.2)*CA(mr(0),mr(0),mr(0)),20,0.4) | |
1121 | local ratoki=newAnim(raw) | |
1122 | newKF(ratoki,raD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
1123 | local lltoki=newAnim(llw) | |
1124 | newKF(lltoki,llD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
1125 | local rltoki=newAnim(rlw) | |
1126 | newKF(rltoki,rlD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4) | |
1127 | --//Example of Keyframe | |
1128 | --[[ | |
1129 | local hesp2=newAnim(hew) | |
1130 | newKF(hesp2,hD*CA(mr(0),mr(0),mr(0)),10,0.2) | |
1131 | local tosp2=newAnim(tow) | |
1132 | newKF(tosp2,tD*CA(mr(0),mr(0),mr(0)),10,0.4) | |
1133 | local lasp2=newAnim(law) | |
1134 | newKF(lasp2,laD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
1135 | local rasp2=newAnim(raw) | |
1136 | newKF(rasp2,raD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
1137 | local llsp2=newAnim(llw) | |
1138 | newKF(llsp2,llD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
1139 | local rlsp2=newAnim(rlw) | |
1140 | newKF(rlsp2,rlD*CA(mr(0),mr(0),mr(0)),10,0.4) | |
1141 | ]] | |
1142 | function onDamage(Part) | |
1143 | if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then | |
1144 | Part.Anchored = true | |
1145 | if Part:findFirstChild("Mesh") ~= nil then | |
1146 | z = Part:findFirstChild("Mesh") | |
1147 | for i = 1,5 do | |
1148 | z.Scale = z.Scale + Vector3.new(1,1,1) | |
1149 | wait(0.05) | |
1150 | end | |
1151 | end | |
1152 | end | |
1153 | end | |
1154 | ||
1155 | function trappedTorsos:isTrapped(t) | |
1156 | for nildata, index in next,self do | |
1157 | if index==t then | |
1158 | return true | |
1159 | end | |
1160 | end | |
1161 | return false | |
1162 | end | |
1163 | ||
1164 | function trappedTorsos:Capture(hit) | |
1165 | if hit:isA'BasePart' then | |
1166 | if not trappedTorsos:isTrapped(hit) and not hit:IsDescendantOf(char) then | |
1167 | table.insert(trappedTorsos, hit) | |
1168 | hit.Anchored = true --trapped! | |
1169 | --print'trapped!' | |
1170 | end | |
1171 | end | |
1172 | end | |
1173 | ||
1174 | function trappedTorsos:Release() | |
1175 | for i,v in next, self do | |
1176 | if type(v)=='userdata' then | |
1177 | if v:isA('BasePart') then | |
1178 | v.Anchored = false | |
1179 | self[i] = nil | |
1180 | end | |
1181 | end | |
1182 | end | |
1183 | end | |
1184 | ||
1185 | --Za Warudo | |
1186 | Attacking = false | |
1187 | WasOn = true | |
1188 | function TheWorld(Mode) | |
1189 | if Mode == "Time Stop" then | |
1190 | noRig = true | |
1191 | Attacking = true | |
1192 | if WasOn == true and StandOn == false then | |
1193 | StandOn = true | |
1194 | WasOn = false | |
1195 | end | |
1196 | hum.WalkSpeed = 0 | |
1197 | for i = 1,30 do | |
1198 | runKF(hesp2) | |
1199 | runKF(tosp2) | |
1200 | runKF(lasp2) | |
1201 | runKF(rasp2) | |
1202 | runKF(llsp2) | |
1203 | runKF(rlsp2) | |
1204 | runKF(hesp3) | |
1205 | runKF(tosp3) | |
1206 | runKF(lasp3) | |
1207 | runKF(rasp3) | |
1208 | runKF(llsp3) | |
1209 | runKF(rlsp3) | |
1210 | wait() | |
1211 | end | |
1212 | wait() | |
1213 | local ZAWARUDO = Instance.new("Sound",tor) | |
1214 | ZAWARUDO.SoundId = "rbxassetid://290807377" | |
1215 | ZAWARUDO.Volume = 1 | |
1216 | ZAWARUDO.Looped = false | |
1217 | ZAWARUDO:Play() | |
1218 | local TimeStop = Instance.new("Sound",tor) | |
1219 | TimeStop.SoundId = "rbxassetid://520743795" | |
1220 | TimeStop.Looped = false | |
1221 | TimeStop.Volume = 1 | |
1222 | local AreaOfEffect = Instance.new("Part",char) | |
1223 | AreaOfEffect.Position = tor.Position | |
1224 | AreaOfEffect.Size = Vector3.new(0.01,0.01,0.01) | |
1225 | AreaOfEffect.Anchored = true | |
1226 | AreaOfEffect.CanCollide = false | |
1227 | AreaOfEffect.BrickColor = BrickColor.new("Institutional white") | |
1228 | AreaOfEffect.Transparency = 0.9 | |
1229 | AreaOfEffect.Shape = "Ball" | |
1230 | AreaOfEffect.Material = "Neon" | |
1231 | ||
1232 | for i = 1,10 do | |
1233 | runKF(hesp4) | |
1234 | runKF(tosp4) | |
1235 | runKF(lasp4) | |
1236 | runKF(rasp4) | |
1237 | runKF(llsp4) | |
1238 | runKF(rlsp4) | |
1239 | wait() | |
1240 | end | |
1241 | TimeStop:Play() | |
1242 | for i = 1,10 do | |
1243 | AreaOfEffect.Size = AreaOfEffect.Size + Vector3.new(4.1,4.1,4.1) | |
1244 | AreaOfEffect.CFrame = char.Torso.CFrame | |
1245 | wait() | |
1246 | end | |
1247 | coroutine.wrap(function() | |
1248 | do local me={} | |
1249 | ||
1250 | me.plrs = game:service'Workspace':children'' | |
1251 | ||
1252 | function me:getNear(mag) | |
1253 | local rtn = {} | |
1254 | ||
1255 | for k,v in next,me.plrs do | |
1256 | local chxr = v | |
1257 | ||
1258 | if chxr then | |
1259 | if chxr:findFirstChild'Torso' then | |
1260 | local pos = (chxr.Torso.Position-tor.Position).magnitude | |
1261 | ||
1262 | if pos<=mag then | |
1263 | for a,b in pairs(chxr:children()) do | |
1264 | if b:IsA("BasePart") then | |
1265 | table.insert(rtn, b) | |
1266 | end | |
1267 | end | |
1268 | end | |
1269 | end | |
1270 | end | |
1271 | end | |
1272 | return rtn | |
1273 | end | |
1274 | ||
1275 | for no, torso in ipairs(me:getNear(25)) do | |
1276 | --print(torso:GetFullName()) | |
1277 | --print(torso:GetFullName()) | |
1278 | trappedTorsos:Capture(torso) | |
1279 | end | |
1280 | ||
1281 | ||
1282 | end | |
1283 | end)() | |
1284 | AreaOfEffect:Destroy() | |
1285 | local TimeHasStopped = Instance.new("Sound",tor) | |
1286 | TimeHasStopped.SoundId = "rbxassetid://" | |
1287 | TimeHasStopped.Looped = false | |
1288 | TimeHasStopped.Volume = 1 | |
1289 | wait(1.3) | |
1290 | TimeHasStopped:Play() | |
1291 | workspace.Gravity = 70 | |
1292 | for i,v in pairs(char:children()) do | |
1293 | if v:IsA("Part") then | |
1294 | v.Anchored = false | |
1295 | end | |
1296 | if v:IsA("Hat") then | |
1297 | v.Handle.Anchored = false | |
1298 | end | |
1299 | end | |
1300 | for i,v in pairs(pchar:children()) do | |
1301 | if v:IsA("Part") then | |
1302 | v.Anchored = false | |
1303 | end | |
1304 | if v:IsA("Hat") then | |
1305 | v.Handle.Anchored = false | |
1306 | end | |
1307 | end | |
1308 | if WasOn == false then | |
1309 | StandOn = false | |
1310 | WasOn = true | |
1311 | end | |
1312 | hum.WalkSpeed = 16 | |
1313 | noRig = false | |
1314 | Attacking = false | |
1315 | end | |
1316 | if Mode == "World Time Stop" then | |
1317 | noRig = true | |
1318 | Attacking = true | |
1319 | if WasOn == true and StandOn == false then | |
1320 | StandOn = true | |
1321 | WasOn = false | |
1322 | end | |
1323 | hum.WalkSpeed = 0 | |
1324 | for i = 1,30 do | |
1325 | runKF(hesp2) | |
1326 | runKF(tosp2) | |
1327 | runKF(lasp2) | |
1328 | runKF(rasp2) | |
1329 | runKF(llsp2) | |
1330 | runKF(rlsp2) | |
1331 | runKF(hesp3) | |
1332 | runKF(tosp3) | |
1333 | runKF(lasp3) | |
1334 | runKF(rasp3) | |
1335 | runKF(llsp3) | |
1336 | runKF(rlsp3) | |
1337 | wait() | |
1338 | end | |
1339 | wait() | |
1340 | local ZAWARUDO = Instance.new("Sound",tor) | |
1341 | ZAWARUDO.SoundId = "rbxassetid://290807377" | |
1342 | ZAWARUDO.Volume = 1 | |
1343 | ZAWARUDO.Looped = false | |
1344 | ZAWARUDO:Play() | |
1345 | local TimeStop = Instance.new("Sound",tor) | |
1346 | TimeStop.SoundId = "rbxassetid://520743795" | |
1347 | TimeStop.Looped = false | |
1348 | TimeStop.Volume = 1 | |
1349 | local AreaOfEffect = Instance.new("Part",char) | |
1350 | AreaOfEffect.Position = tor.Position | |
1351 | AreaOfEffect.Size = Vector3.new(0.01,0.01,0.01) | |
1352 | AreaOfEffect.Anchored = true | |
1353 | AreaOfEffect.CanCollide = false | |
1354 | AreaOfEffect.BrickColor = BrickColor.new("Institutional white") | |
1355 | AreaOfEffect.Transparency = 0.9 | |
1356 | AreaOfEffect.Shape = "Ball" | |
1357 | AreaOfEffect.Material = "Neon" | |
1358 | ||
1359 | for i = 1,10 do | |
1360 | runKF(hesp4) | |
1361 | runKF(tosp4) | |
1362 | runKF(lasp4) | |
1363 | runKF(rasp4) | |
1364 | runKF(llsp4) | |
1365 | runKF(rlsp4) | |
1366 | wait() | |
1367 | end | |
1368 | TimeStop:Play() | |
1369 | for i = 1,10 do | |
1370 | AreaOfEffect.Size = AreaOfEffect.Size + Vector3.new(4.1,4.1,4.1) | |
1371 | AreaOfEffect.CFrame = char.Torso.CFrame | |
1372 | wait() | |
1373 | end | |
1374 | coroutine.wrap(function() | |
1375 | do local me={} | |
1376 | ||
1377 | me.plrs = game:service'Workspace':children'' | |
1378 | ||
1379 | function me:getNear(mag) | |
1380 | local rtn = {} | |
1381 | ||
1382 | for k,v in next,me.plrs do | |
1383 | local chxr = v | |
1384 | ||
1385 | if chxr then | |
1386 | if chxr:findFirstChild'Torso' then | |
1387 | local pos = (chxr.Torso.Position-tor.Position).magnitude | |
1388 | ||
1389 | if pos<=mag then | |
1390 | for a,b in pairs(chxr:children()) do | |
1391 | if b:IsA("BasePart") then | |
1392 | table.insert(rtn, b) | |
1393 | end | |
1394 | end | |
1395 | end | |
1396 | end | |
1397 | end | |
1398 | end | |
1399 | return rtn | |
1400 | end | |
1401 | ||
1402 | for no, torso in ipairs(me:getNear(5555)) do | |
1403 | --print(torso:GetFullName()) | |
1404 | --print(torso:GetFullName()) | |
1405 | trappedTorsos:Capture(torso) | |
1406 | end | |
1407 | ||
1408 | ||
1409 | end | |
1410 | end)() | |
1411 | AreaOfEffect:Destroy() | |
1412 | local TimeHasStopped = Instance.new("Sound",tor) | |
1413 | TimeHasStopped.SoundId = "rbxassetid://290807397" | |
1414 | TimeHasStopped.Looped = false | |
1415 | TimeHasStopped.Volume = 1 | |
1416 | wait(1.3) | |
1417 | TimeHasStopped:Play() | |
1418 | workspace.Gravity = 70 | |
1419 | for i,v in pairs(char:children()) do | |
1420 | if v:IsA("Part") then | |
1421 | v.Anchored = false | |
1422 | end | |
1423 | if v:IsA("Hat") then | |
1424 | v.Handle.Anchored = false | |
1425 | end | |
1426 | end | |
1427 | for i,v in pairs(pchar:children()) do | |
1428 | if v:IsA("Part") then | |
1429 | v.Anchored = false | |
1430 | end | |
1431 | if v:IsA("Hat") then | |
1432 | v.Handle.Anchored = false | |
1433 | end | |
1434 | end | |
1435 | if WasOn == false then | |
1436 | StandOn = false | |
1437 | WasOn = true | |
1438 | end | |
1439 | hum.WalkSpeed = 16 | |
1440 | noRig = false | |
1441 | Attacking = false | |
1442 | end | |
1443 | if Mode == "Time Start" then | |
1444 | local Toki = Instance.new("Sound",tor) | |
1445 | Toki.SoundId = "rbxassetid://290810519" | |
1446 | Toki.Volume = 1 | |
1447 | Toki.Looped = false | |
1448 | Toki:Play() | |
1449 | local AreaOfEffect2 = Instance.new("Part",tor) | |
1450 | AreaOfEffect2.Position = tor.Position | |
1451 | AreaOfEffect2.Size = Vector3.new(0.01,0.01,0.01) | |
1452 | AreaOfEffect2.Anchored = true | |
1453 | AreaOfEffect2.CanCollide = false | |
1454 | AreaOfEffect2.Transparency = 1 | |
1455 | AreaOfEffect2.BrickColor = BrickColor.new("Institutional white") | |
1456 | AreaOfEffect2.Transparency = 0.99 | |
1457 | AreaOfEffect2.Shape = "Ball" | |
1458 | AreaOfEffect2.Material = "Neon" | |
1459 | AreaOfEffect2.Touched:connect(function(hit) | |
1460 | if hit ~= "Base" then | |
1461 | --hit.Anchored = false | |
1462 | end | |
1463 | end) | |
1464 | for i = 1,10 do | |
1465 | AreaOfEffect2.Size = AreaOfEffect2.Size + Vector3.new(4.1,4.1,4.1) | |
1466 | AreaOfEffect2.CFrame = char.Torso.CFrame | |
1467 | wait() | |
1468 | end | |
1469 | trappedTorsos:Release() | |
1470 | AreaOfEffect2:Destroy() | |
1471 | TfwTimeStopped = false | |
1472 | workspace.Gravity = 196.2 | |
1473 | end | |
1474 | if Mode == "Wry" then | |
1475 | local WWRRRYYYYY = Instance.new("Sound",tor) | |
1476 | WWRRRYYYYY.SoundId = "rbxassetid://499932933" | |
1477 | WWRRRYYYYY.Volume = 1 | |
1478 | WWRRRYYYYY.Looped = false | |
1479 | WWRRRYYYYY:Play() | |
1480 | end | |
1481 | end | |
1482 | ||
1483 | Rapid = false | |
1484 | TimeStopped = false | |
1485 | OneSecond = false | |
1486 | Cha = char | |
1487 | Character = char | |
1488 | it=Instance.new | |
1489 | vt=Vector3.new | |
1490 | cn=CFrame.new | |
1491 | euler=CFrame.fromEulerAnglesXYZ | |
1492 | angles=CFrame.Angles | |
1493 | RootPart = hrp | |
1494 | mouse.KeyDown:connect(function(key) | |
1495 | if key == "q" then | |
1496 | if TimeStopped == false and Attacking == false then | |
1497 | TheWorld("Time Stop") | |
1498 | TimeStopped = true | |
1499 | TfwTimeStopped = true | |
1500 | --[[wait(10) | |
1501 | if TimeStopped == true then | |
1502 | TheWorld("Time Start") | |
1503 | TimeStopped = false | |
1504 | end]] | |
1505 | elseif TimeStopped == true and Attacking == false then | |
1506 | TheWorld("Time Start") | |
1507 | TimeStopped = false | |
1508 | end | |
1509 | end | |
1510 | if key == "p" and TimeStopped == false and Attacking == false then | |
1511 | TheWorld("World Time Stop") | |
1512 | TimeStopped = true | |
1513 | TfwTimeStopped = true | |
1514 | end | |
1515 | if key == "f" then | |
1516 | if StandOn then | |
1517 | StandOn = false | |
1518 | else | |
1519 | StandOn = true | |
1520 | TheWorld("Wry") | |
1521 | end | |
1522 | end | |
1523 | if key == "t" and OneSecond == false then | |
1524 | OneSecond = true | |
1525 | for i, v in pairs(Cha:GetChildren()) do | |
1526 | if v:IsA('Hat') then | |
1527 | v.Handle.Transparency=1 | |
1528 | end | |
1529 | end | |
1530 | Cha.Head.Transparency = 0.2 | |
1531 | Cha.Torso.Transparency = 0.2 | |
1532 | Cha["Right Arm"].Transparency = 0.2 | |
1533 | Cha["Left Arm"].Transparency = 0.2 | |
1534 | Cha["Right Leg"].Transparency = 0.2 | |
1535 | Cha["Left Leg"].Transparency = 0.2 | |
1536 | wait() | |
1537 | Cha.Head.Transparency = 0.4 | |
1538 | Cha.Torso.Transparency = 0.4 | |
1539 | Cha["Right Arm"].Transparency = 0.4 | |
1540 | Cha["Left Arm"].Transparency = 0.4 | |
1541 | Cha["Right Leg"].Transparency = 0.4 | |
1542 | Cha["Left Leg"].Transparency = 0.4 | |
1543 | wait() | |
1544 | Cha.Head.Transparency = 0.6 | |
1545 | Cha.Torso.Transparency = 0.6 | |
1546 | Cha["Right Arm"].Transparency = 0.6 | |
1547 | Cha["Left Arm"].Transparency = 0.6 | |
1548 | Cha["Right Leg"].Transparency = 0.6 | |
1549 | Cha["Left Leg"].Transparency = 0.6 | |
1550 | wait() | |
1551 | Cha.Head.Transparency = 0.8 | |
1552 | Cha.Torso.Transparency = 0.8 | |
1553 | Cha["Right Arm"].Transparency = 0.8 | |
1554 | Cha["Left Arm"].Transparency = 0.8 | |
1555 | Cha["Right Leg"].Transparency = 0.8 | |
1556 | Cha["Left Leg"].Transparency = 0.8 | |
1557 | wait() | |
1558 | Cha.Head.Transparency = 1 | |
1559 | Cha.Torso.Transparency = 1 | |
1560 | Cha["Right Arm"].Transparency = 1 | |
1561 | Cha["Left Arm"].Transparency = 1 | |
1562 | Cha["Right Leg"].Transparency = 1 | |
1563 | Cha["Left Leg"].Transparency = 1 | |
1564 | ||
1565 | Targ = CFrame.new(Vector3.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)) | |
1566 | print("ZA WARUDO!") | |
1567 | ||
1568 | Player.Character.Torso.CFrame = Targ | |
1569 | ||
1570 | wait() | |
1571 | for i, v in pairs(Cha:GetChildren()) do | |
1572 | if v:IsA('Hat') then | |
1573 | v.Handle.Transparency=0 | |
1574 | end | |
1575 | end | |
1576 | Cha.Head.Transparency = 0.8 | |
1577 | Cha.Torso.Transparency = 0.8 | |
1578 | Cha["Right Arm"].Transparency = 0.8 | |
1579 | Cha["Left Arm"].Transparency = 0.8 | |
1580 | Cha["Right Leg"].Transparency = 0.8 | |
1581 | Cha["Left Leg"].Transparency = 0.8 | |
1582 | wait() | |
1583 | Cha.Head.Transparency = 0.6 | |
1584 | Cha.Torso.Transparency = 0.6 | |
1585 | Cha["Right Arm"].Transparency = 0.6 | |
1586 | Cha["Left Arm"].Transparency = 0.6 | |
1587 | Cha["Right Leg"].Transparency = 0.6 | |
1588 | Cha["Left Leg"].Transparency = 0.6 | |
1589 | wait() | |
1590 | Cha.Head.Transparency = 0.4 | |
1591 | Cha.Torso.Transparency = 0.4 | |
1592 | Cha["Right Arm"].Transparency = 0.4 | |
1593 | Cha["Left Arm"].Transparency = 0.4 | |
1594 | Cha["Right Leg"].Transparency = 0.4 | |
1595 | Cha["Left Leg"].Transparency = 0.4 | |
1596 | wait() | |
1597 | Cha.Head.Transparency = 0.2 | |
1598 | Cha.Torso.Transparency = 0.2 | |
1599 | Cha["Right Arm"].Transparency = 0.2 | |
1600 | Cha["Left Arm"].Transparency = 0.2 | |
1601 | Cha["Right Leg"].Transparency = 0.2 | |
1602 | Cha["Left Leg"].Transparency = 0.2 | |
1603 | wait() | |
1604 | Cha.Head.Transparency = 0 | |
1605 | Cha.Torso.Transparency = 0 | |
1606 | Cha["Right Arm"].Transparency = 0 | |
1607 | Cha["Left Arm"].Transparency = 0 | |
1608 | Cha["Right Leg"].Transparency = 0 | |
1609 | Cha["Left Leg"].Transparency = 0 | |
1610 | ||
1611 | wait() | |
1612 | OneSecond = false | |
1613 | end | |
1614 | if key == "v" then | |
1615 | Rapid = true | |
1616 | local ORA = Instance.new("Sound",char) | |
1617 | ORA.SoundId = "rbxassetid://291088692" | |
1618 | ORA.Volume = 1 | |
1619 | ORA.Looped = false | |
1620 | ORA:Play() | |
1621 | Attacking = true | |
1622 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,4,math.random(0,0),"Killer Queen",RootPart,.2,1) end) | |
1623 | con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,4,2,math.random(0,0),"Killer Queen",RootPart,.2,1) end) | |
1624 | while Rapid == true do | |
1625 | for i = 1, 3 do | |
1626 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1627 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7) | |
1628 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1629 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1630 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1631 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1632 | wait() | |
1633 | end | |
1634 | for i = 1, 3 do | |
1635 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7) | |
1636 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7) | |
1637 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
1638 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
1639 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
1640 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
1641 | wait() | |
1642 | end | |
1643 | for i = 1, 3 do | |
1644 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1645 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7) | |
1646 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1647 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1648 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1649 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1650 | wait() | |
1651 | end | |
1652 | for i = 1, 3 do | |
1653 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7) | |
1654 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7) | |
1655 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
1656 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
1657 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
1658 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
1659 | wait() | |
1660 | end | |
1661 | end | |
1662 | con1:disconnect() | |
1663 | con2:disconnect() | |
1664 | local MIDORA = Instance.new("Sound",char) | |
1665 | MIDORA.SoundId = "rbxassetid://291088797" | |
1666 | MIDORA.Looped = false | |
1667 | MIDORA:Play() | |
1668 | ORA:Stop() | |
1669 | Attacking = false | |
1670 | end | |
1671 | if key == "e" then | |
1672 | if StandOn == true then | |
1673 | Rapid = true | |
1674 | local ORA = Instance.new("Sound",char) | |
1675 | ORA.SoundId = "rbxassetid://291088692" | |
1676 | ORA.Volume = 1 | |
1677 | ORA.Looped = false | |
1678 | ORA:Play() | |
1679 | Attacking = true | |
1680 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,3,1,math.random(0,0),"Normal",RootPart,.2,1) end) | |
1681 | con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,3,math.random(0,0),"Normal",RootPart,.2,1) end) | |
1682 | while Rapid == true do | |
1683 | for i = 1, 3 do | |
1684 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1685 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7) | |
1686 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1687 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1688 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1689 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1690 | wait() | |
1691 | end | |
1692 | for i = 1, 3 do | |
1693 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7) | |
1694 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7) | |
1695 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
1696 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
1697 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
1698 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
1699 | wait() | |
1700 | end | |
1701 | for i = 1, 3 do | |
1702 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1703 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7) | |
1704 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1705 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1706 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1707 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1708 | wait() | |
1709 | end | |
1710 | for i = 1, 3 do | |
1711 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7) | |
1712 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7) | |
1713 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
1714 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
1715 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
1716 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
1717 | wait() | |
1718 | end | |
1719 | end | |
1720 | con1:disconnect() | |
1721 | con2:disconnect() | |
1722 | local MIDORA = Instance.new("Sound",char) | |
1723 | MIDORA.SoundId = "rbxassetid://291088797" | |
1724 | MIDORA.Looped = false | |
1725 | MIDORA:Play() | |
1726 | ORA:Stop() | |
1727 | Attacking = false | |
1728 | elseif StandOn == false then | |
1729 | Rapid = true | |
1730 | local ORA = Instance.new("Sound",char) | |
1731 | ORA.SoundId = "rbxassetid://291088692" | |
1732 | ORA.Volume = 1 | |
1733 | ORA.Looped = false | |
1734 | ORA:Play() | |
1735 | con1 = ram.Touched:connect(function(hit) Damagefunc(torso,hit,4,1,math.random(0,0),"Normal",RootPart,.2,1) end) | |
1736 | con2 = lam.Touched:connect(function(hit) Damagefunc(torso,hit,1,5,math.random(0,0),"Normal",RootPart,.2,1) end) | |
1737 | while Rapid == true do | |
1738 | for i = 1, 3 do | |
1739 | raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1740 | law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7) | |
1741 | hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1742 | tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1743 | llw.C0 = RLerp(llw.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1744 | rlw.C0 = RLerp(rlw.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1745 | wait() | |
1746 | end | |
1747 | for i = 1, 3 do | |
1748 | raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7) | |
1749 | law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7) | |
1750 | hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
1751 | tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
1752 | llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
1753 | rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
1754 | wait() | |
1755 | end | |
1756 | for i = 1, 3 do | |
1757 | raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1758 | law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7) | |
1759 | hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1760 | tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1761 | llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1762 | rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1763 | wait() | |
1764 | end | |
1765 | for i = 1, 3 do | |
1766 | raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7) | |
1767 | law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7) | |
1768 | hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
1769 | tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
1770 | llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
1771 | rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
1772 | wait() | |
1773 | end | |
1774 | end | |
1775 | con1:disconnect() | |
1776 | con2:disconnect() | |
1777 | local MIDORA = Instance.new("Sound",char) | |
1778 | MIDORA.SoundId = "rbxassetid://291088797" | |
1779 | MIDORA.Looped = false | |
1780 | MIDORA:Play() | |
1781 | ORA:Stop() | |
1782 | end | |
1783 | end | |
1784 | if key == "r" and Attacking == false then | |
1785 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,4,2,math.random(100,100),"Knockdown",RootPart,.2,1) end) | |
1786 | Attacking = true | |
1787 | for i = 1, 3 do | |
1788 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1789 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7) | |
1790 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1791 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1792 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1793 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1794 | wait() | |
1795 | end | |
1796 | local MIDORA = Instance.new("Sound",char) | |
1797 | MIDORA.SoundId = "rbxassetid://291088797" | |
1798 | MIDORA.Looped = false | |
1799 | MIDORA:Play() | |
1800 | wait(1) | |
1801 | con1:disconnect() | |
1802 | Attacking = false | |
1803 | end | |
1804 | if key == "g" and Attacking == false then | |
1805 | con1 = ram2.Touched:connect(function(hit) | |
1806 | Damagefunc(torso,hit,5,15,math.random(100,100),"Killer Queen",RootPart,.2,1) | |
1807 | end) | |
1808 | Attacking = true | |
1809 | for i = 1, 3 do | |
1810 | raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7) | |
1811 | law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7) | |
1812 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
1813 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
1814 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
1815 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
1816 | wait() | |
1817 | end | |
1818 | local MIDORA = Instance.new("Sound",char) | |
1819 | MIDORA.SoundId = "rbxassetid://291088797" | |
1820 | MIDORA.Looped = false | |
1821 | MIDORA:Play() | |
1822 | wait(1) | |
1823 | con1:disconnect() | |
1824 | Attacking = false | |
1825 | end | |
1826 | end) | |
1827 | ||
1828 | mouse.KeyUp:connect(function(key) | |
1829 | if key == "e" and Rapid == true or key == "v" and Rapid == true then | |
1830 | Rapid = false | |
1831 | end | |
1832 | end) | |
1833 | ||
1834 | for i, v in pairs(pchar:GetChildren()) do | |
1835 | if v:IsA('Hat') then | |
1836 | v.Handle.Transparency=1 | |
1837 | end | |
1838 | if v:IsA("Part") then | |
1839 | v.BrickColor = BrickColor.new("Pearl") | |
1840 | end | |
1841 | end | |
1842 | ||
1843 | -------------------------------Sprint | |
1844 | mouse.KeyDown:connect(function(key) | |
1845 | if string.byte(key) == 48 then | |
1846 | hum.WalkSpeed = 48 | |
1847 | end | |
1848 | end) | |
1849 | mouse.KeyUp:connect(function(key) | |
1850 | if string.byte(key) == 48 then | |
1851 | hum.WalkSpeed=16 | |
1852 | end | |
1853 | end) | |
1854 | ------------------------------------- | |
1855 | hum.FreeFalling:connect(function(f) | |
1856 | if f then | |
1857 | ffing=true | |
1858 | else | |
1859 | ffing=false | |
1860 | end | |
1861 | end) | |
1862 | StandOn = true | |
1863 | local hrprv=0 | |
1864 | angle = 0 | |
1865 | angle2 = 0 | |
1866 | angle3 = 0 | |
1867 | anglespeed = 2 | |
1868 | anglespeed2 = 1 | |
1869 | anglespeed3 = .4 | |
1870 | MyHealth = hum.Health | |
1871 | MyMaxHealth = hum.MaxHealth | |
1872 | MyMaxHealth = humane.Health | |
1873 | MyHealth = humane.Health | |
1874 | humane.Name = "The Worldo" | |
1875 | game:GetService("RunService").Stepped:connect(function() | |
1876 | angle = ((angle % 100) + anglespeed/10) | |
1877 | angle2 = ((angle2 % 100) + anglespeed2/10) | |
1878 | angle3 = ((angle3 % 100) + anglespeed3/10) | |
1879 | hrprv=Tween(hrprv,hrp.RotVelocity.Y,0.4) | |
1880 | sine=sine+1 | |
1881 | if StandOn == false then | |
1882 | for i,v in pairs(pchar:children()) do | |
1883 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then | |
1884 | v.Transparency = 1 | |
1885 | end | |
1886 | end | |
1887 | elseif StandOn == true then | |
1888 | for i,v in pairs(pchar:children()) do | |
1889 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then | |
1890 | v.Transparency = 0 | |
1891 | end | |
1892 | end | |
1893 | end | |
1894 | MyHealth = humane.Health | |
1895 | humane.Health = MyHealth | |
1896 | if hum.Sit==true then | |
1897 | animpose="Sitting" | |
1898 | elseif ffing==true then | |
1899 | animpose="Freefalling" | |
1900 | elseif (hrp.Velocity*Vn(1,0,1)).magnitude<2 then | |
1901 | animpose="Idle" | |
1902 | elseif (hrp.Velocity*Vn(1,0,1)).magnitude<20 then | |
1903 | animpose="Walking" | |
1904 | elseif (hrp.Velocity*Vn(1,0,1)).magnitude>20 then | |
1905 | animpose="Sprinting" | |
1906 | end | |
1907 | if Attacking == false then | |
1908 | torso.CFrame = hrp.CFrame*CFrame.new(0,0,2) | |
1909 | runKF(heid2) | |
1910 | runKF(toid2) | |
1911 | runKF(laid2) | |
1912 | runKF(raid2) | |
1913 | runKF(llid2) | |
1914 | runKF(rlid2) | |
1915 | end | |
1916 | if noRig==false then | |
1917 | if animpose=="Idle" then | |
1918 | runKF(heid) | |
1919 | runKF(toid) | |
1920 | runKF(laid) | |
1921 | runKF(raid) | |
1922 | runKF(llid) | |
1923 | runKF(rlid) | |
1924 | elseif animpose=="Walking" then | |
1925 | runKF(hewk) | |
1926 | runKF(towk) | |
1927 | runKF(lawk) | |
1928 | runKF(rawk) | |
1929 | runKF(llwk) | |
1930 | runKF(rlwk) | |
1931 | --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/25),0.4) | |
1932 | --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/25),0.4) | |
1933 | ---llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/25),0.4) | |
1934 | elseif animpose=="Sprinting" then | |
1935 | runKF(hesp) | |
1936 | runKF(tosp) | |
1937 | runKF(lasp) | |
1938 | runKF(rasp) | |
1939 | runKF(llsp) | |
1940 | runKF(rlsp) | |
1941 | --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4) | |
1942 | --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/10),0.4) | |
1943 | --llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/10),0.4) | |
1944 | elseif animpose=="Freefalling" then | |
1945 | runKF(heff) | |
1946 | runKF(toff) | |
1947 | runKF(laff) | |
1948 | runKF(raff) | |
1949 | runKF(llff) | |
1950 | runKF(rlff) | |
1951 | --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4) | |
1952 | end | |
1953 | end | |
1954 | end) |