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