SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- This script has been converted to FE by iPxter |
| 1 | + | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
|
| 2 | do | |
| 3 | script.Parent = owner.Character | |
| 4 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 4 | + | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
|
| 5 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 5 | + | local function NewFakeEvent() |
| 6 | local Bind = Instance.new("BindableEvent")
| |
| 7 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 7 | + | local Fake;Fake = {Connections = {},
|
| 8 | - | script.Parent = Player.Character |
| 8 | + | fakeEvent=true; |
| 9 | Connect=function(self,Func) | |
| 10 | - | --RemoteEvent for communicating |
| 10 | + | Bind.Event:connect(Func) |
| 11 | - | local Event = Instance.new("RemoteEvent")
|
| 11 | + | self.Connections[Bind] = true |
| 12 | - | Event.Name = "UserInput_Event" |
| 12 | + | return setmetatable({Connected = true},{
|
| 13 | __index = function (self,Index) | |
| 14 | - | --Fake event to make stuff like Mouse.KeyDown work |
| 14 | + | if Index:lower() == "disconnect" then |
| 15 | - | local function fakeEvent() |
| 15 | + | return function() Fake.Connections[Bind] = false;self.Connected = false end |
| 16 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 16 | + | |
| 17 | - | t.connect = t.Connect |
| 17 | + | return Fake[Index] |
| 18 | - | return t |
| 18 | + | end; |
| 19 | - | end |
| 19 | + | __tostring = function() return "Connection" end; |
| 20 | }) | |
| 21 | - | --Creating fake input objects with fake variables |
| 21 | + | end} |
| 22 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 22 | + | Fake.connect = Fake.Connect;return Fake; |
| 23 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 23 | + | |
| 24 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 24 | + | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
|
| 25 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 25 | + | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
|
| 26 | - | end} |
| 26 | + | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
|
| 27 | - | --Merged 2 functions into one by checking amount of arguments |
| 27 | + | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
|
| 28 | - | CAS.UnbindAction = CAS.BindAction |
| 28 | + | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
| 29 | local function TriggerEvent(self,Event,...) | |
| 30 | - | --This function will trigger the events that have been :Connect()'ed |
| 30 | + | local Trigger = Mouse[Event] |
| 31 | - | local function te(self,ev,...) |
| 31 | + | if Trigger and Trigger.fakeEvent and Trigger.Connections then |
| 32 | - | local t = m[ev] |
| 32 | + | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end |
| 33 | - | if t and t._fakeEvent and t.Function then |
| 33 | + | |
| 34 | - | t.Function(...) |
| 34 | + | |
| 35 | - | end |
| 35 | + | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent |
| 36 | - | end |
| 36 | + | Event.OnServerEvent:Connect(function(FiredBy,Input) |
| 37 | - | m.TrigEvent = te |
| 37 | + | if FiredBy.Name ~= owner.Name then return end |
| 38 | - | UIS.TrigEvent = te |
| 38 | + | if Input.MouseEvent then |
| 39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 40 | - | Event.OnServerEvent:Connect(function(plr,io) |
| 40 | + | |
| 41 | - | if plr~=Player then return end |
| 41 | + | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
| 42 | - | if io.isMouse then |
| 42 | + | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end |
| 43 | - | m.Target = io.Target |
| 43 | + | for _,Action in pairs(ContextActionService.Actions) do |
| 44 | - | m.Hit = io.Hit |
| 44 | + | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end |
| 45 | - | else |
| 45 | + | |
| 46 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
| 46 | + | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) |
| 47 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 47 | + | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
| 48 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 48 | + | |
| 49 | - | end |
| 49 | + | end) |
| 50 | - | for _,t in pairs(CAS.Actions) do |
| 50 | + | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService |
| 51 | - | for _,k in pairs(t.Keys) do |
| 51 | + | Event.Parent = NLS([[ |
| 52 | - | if k==io.KeyCode then |
| 52 | + | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
|
| 53 | - | t.Function(t.Name,io.UserInputState,io) |
| 53 | + | local Input = function(Input,gameProcessedEvent) |
| 54 | - | end |
| 54 | + | if gameProcessedEvent then return end |
| 55 | - | end |
| 55 | + | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
|
| 56 | - | end |
| 56 | + | |
| 57 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 57 | + | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) |
| 58 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 58 | + | local Hit,Target |
| 59 | - | end |
| 59 | + | while wait(1/30) do |
| 60 | - | end) |
| 60 | + | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
| 61 | - | Event.Parent = NLS([==[ |
| 61 | + | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
|
| 62 | - | local Player = game:GetService("Players").LocalPlayer
|
| 62 | + | |
| 63 | - | local Event = script:WaitForChild("UserInput_Event")
|
| 63 | + | |
| 64 | ]],owner.Character) | |
| 65 | - | local UIS = game:GetService("UserInputService")
|
| 65 | + | |
| 66 | - | local input = function(io,a) |
| 66 | + | RealGame = game;game = setmetatable({},{
|
| 67 | - | if a then return end |
| 67 | + | __index = function (self,Index) |
| 68 | - | --Since InputObject is a client-side instance, we create and pass table instead |
| 68 | + | local Sandbox = function (Thing) |
| 69 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
|
| 69 | + | if Thing:IsA("Player") then
|
| 70 | - | end |
| 70 | + | local RealPlayer = Thing |
| 71 | - | UIS.InputBegan:Connect(input) |
| 71 | + | return setmetatable({},{
|
| 72 | - | UIS.InputEnded:Connect(input) |
| 72 | + | __index = function (self,Index) |
| 73 | local Type = type(RealPlayer[Index]) | |
| 74 | - | local Mouse = Player:GetMouse() |
| 74 | + | if Type == "function" then |
| 75 | - | local h,t |
| 75 | + | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
| 76 | - | --Give the server mouse data 30 times every second, but only if the values changed |
| 76 | + | return function (self)return InternalData["Mouse"] end |
| 77 | - | --If player is not moving their mouse, client won't fire events |
| 77 | + | end |
| 78 | - | while wait(1/30) do |
| 78 | + | return function (self,...)return RealPlayer[Index](RealPlayer,...) end |
| 79 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
| 79 | + | |
| 80 | - | h,t=Mouse.Hit,Mouse.Target |
| 80 | + | return RealPlayer[Index] |
| 81 | - | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 81 | + | end; |
| 82 | - | end |
| 82 | + | __tostring = function(self) return RealPlayer.Name end |
| 83 | - | end]==],Player.Character) |
| 83 | + | }) |
| 84 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
| 84 | + | |
| 85 | end | |
| 86 | if RealGame[Index] then | |
| 87 | - | Stand: Killer Queen |
| 87 | + | local Type = type(RealGame[Index]) |
| 88 | - | User: Yoshikage Kira |
| 88 | + | if Type == "function" then |
| 89 | - | https://www.dropbox.com/s/jiqyo6hlec6sgaa/Yoshikage%20Kira.lua?dl=1 |
| 89 | + | if Index:lower() == "getservice" or Index:lower() == "service" then |
| 90 | return function (self,Service) | |
| 91 | local FakeServices = {
| |
| 92 | ["players"] = function() | |
| 93 | return setmetatable({},{
| |
| 94 | __index = function (self2,Index2) | |
| 95 | local RealService = RealGame:GetService(Service) | |
| 96 | local Type2 = type(Index2) | |
| 97 | if Type2 == "function" then | |
| 98 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 99 | else | |
| 100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 101 | return RealService[Index2] | |
| 102 | end | |
| 103 | end; | |
| 104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 105 | }) | |
| 106 | end; | |
| 107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 109 | ["runservice"] = function() | |
| 110 | return setmetatable({},{
| |
| 111 | __index = function(self2,Index2) | |
| 112 | local RealService = RealGame:GetService(Service) | |
| 113 | local Type2 = type(Index2) | |
| 114 | if Type2 == "function" then | |
| 115 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 116 | else | |
| 117 | local RunServices = {
| |
| 118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 120 | } | |
| 121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 122 | return RealService[Index2] | |
| 123 | end | |
| 124 | end | |
| 125 | }) | |
| 126 | end | |
| 127 | } | |
| 128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 129 | return RealGame:GetService(Service) | |
| 130 | end | |
| 131 | end | |
| 132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 133 | else | |
| 134 | if game:GetService(Index) then return game:GetService(Index) end | |
| 135 | return RealGame[Index] | |
| 136 | end | |
| 137 | end | |
| 138 | return nil | |
| 139 | end | |
| 140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
| |
| 141 | --//Paste script below this line. | |
| 142 | local asd = owner | |
| 143 | repeat wait() until asd.Character | |
| 144 | local asdchar = asd.Character | |
| 145 | local transPoints = {NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.207, 0.594, 0.0187), NumberSequenceKeypoint.new(0.4, 0.55, 0.031), NumberSequenceKeypoint.new(0.57, 0.619, 0.05), NumberSequenceKeypoint.new(0.76, 0.8, 0.0375), NumberSequenceKeypoint.new(1, 1, 0)}
| |
| 146 | local sizePoints = {NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 1.9, 0)}
| |
| 147 | local Size = NumberSequence.new(sizePoints) | |
| 148 | local Transparency = NumberSequence.new(transPoints) | |
| 149 | efxBlock = Instance.new("Part", asdchar)
| |
| 150 | efxBlock.CanCollide = false | |
| 151 | efxBlock.Material = "Neon" | |
| 152 | efxBlock.FormFactor = "Custom" | |
| 153 | efxBlock.Transparency = 1 | |
| 154 | efxBlock.Size = Vector3.new(0.25, 0.25, 0.25) | |
| 155 | local mesh = Instance.new("SpecialMesh", efxBlock)
| |
| 156 | mesh.MeshType = Enum.MeshType.Sphere | |
| 157 | mesh.Scale = Vector3.new(1, 1, 1) | |
| 158 | local particles = Instance.new("ParticleEmitter", efxBlock)
| |
| 159 | particles.LightEmission = 0 | |
| 160 | particles.Size = Size | |
| 161 | particles.Name = "Fire" | |
| 162 | particles.Transparency = Transparency | |
| 163 | particles.LockedToPart = false | |
| 164 | particles.VelocityInheritance = -0.5 | |
| 165 | particles.LockedToPart = false | |
| 166 | particles.Rate = 3 | |
| 167 | particles.Texture = "rbxassetid://262850915" | |
| 168 | particles.Lifetime = NumberRange.new(3, 3) | |
| 169 | particles.Speed = NumberRange.new(3, 3) | |
| 170 | particles.VelocitySpread = 25 | |
| 171 | local offset = Vector3.new(-0.11, 0.23, -0.5) | |
| 172 | local weld = Instance.new("Weld", asdchar.Head)
| |
| 173 | weld.Part0 = asdchar.Head | |
| 174 | weld.Part1 = efxBlock | |
| 175 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40), math.rad(40), math.rad(40)) | |
| 176 | ||
| 177 | ---Declarations | |
| 178 | local Cn=CFrame.new | |
| 179 | local CA=CFrame.Angles | |
| 180 | local mr=math.rad | |
| 181 | local rn=math.random | |
| 182 | local mc=math.cos | |
| 183 | local Vn=Vector3.new | |
| 184 | local NR=NumberRange.new | |
| 185 | local NSeq=NumberSequence.new | |
| 186 | local plrs=game:service"Players" | |
| 187 | local wrk=game:service"Workspace" | |
| 188 | local deb=game:service"Debris" | |
| 189 | local IS=game:GetService("InsertService")
| |
| 190 | local p=owner | |
| 191 | local cam=wrk.CurrentCamera | |
| 192 | local char=p.Character | |
| 193 | local lam=char["Left Arm"] | |
| 194 | local ram=char["Right Arm"] | |
| 195 | local llg=char["Left Leg"] | |
| 196 | local rlg=char["Right Leg"] | |
| 197 | local hed=char.Head | |
| 198 | local tor=char.Torso | |
| 199 | local larm = lam | |
| 200 | local rarm = ram | |
| 201 | local lleg = llg | |
| 202 | local rleg = rlg | |
| 203 | local torso = tor | |
| 204 | local hrp=char.HumanoidRootPart | |
| 205 | local PlayerSpeed = char.Humanoid.WalkSpeed | |
| 206 | local on=false | |
| 207 | local noRig=false | |
| 208 | local curws=16 | |
| 209 | local sine=0 | |
| 210 | local ift={}
| |
| 211 | local ifxd=false | |
| 212 | local run=false | |
| 213 | local stance="Cane" | |
| 214 | local Speed = 16 | |
| 215 | local Health = 9000 | |
| 216 | ||
| 217 | PlayerSpeed = 16 | |
| 218 | ||
| 219 | ypcall(function() | |
| 220 | char.Shirt:Destroy() | |
| 221 | char.Pants:Destroy() | |
| 222 | shirt = Instance.new("Shirt", char)
| |
| 223 | shirt.Name = "Shirt" | |
| 224 | pants = Instance.new("Pants", char)
| |
| 225 | pants.Name = "Pants" | |
| 226 | char.Shirt.ShirtTemplate = "rbxassetid://495761990" | |
| 227 | char.Pants.PantsTemplate = "rbxassetid://495762126" | |
| 228 | end) | |
| 229 | ||
| 230 | Debounces = {
| |
| 231 | CanAttack = true; | |
| 232 | NoIdl = false; | |
| 233 | Slashing = false; | |
| 234 | Slashed = false; | |
| 235 | RPunch = false; | |
| 236 | RPunched = false; | |
| 237 | LPunch = false; | |
| 238 | LPunched = false; | |
| 239 | } | |
| 240 | ||
| 241 | local trappedTorsos = {}
| |
| 242 | local trappedTorsoss = {}
| |
| 243 | ---Functions | |
| 244 | ||
| 245 | function FndHm(flnm) | |
| 246 | for i,v in pairs(flnm:GetChildren()) do | |
| 247 | if v:IsA("Humanoid") then
| |
| 248 | return v | |
| 249 | end | |
| 250 | end | |
| 251 | end | |
| 252 | local hum=FndHm(char) | |
| 253 | ||
| 254 | ||
| 255 | ||
| 256 | function chrDes(inst) | |
| 257 | local ret=nil | |
| 258 | for _,v in pairs(game.Players:GetChildren()) do | |
| 259 | if inst:IsDescendantOf(v) then | |
| 260 | ret=v | |
| 261 | break | |
| 262 | end | |
| 263 | end | |
| 264 | return ret | |
| 265 | end | |
| 266 | ||
| 267 | -- | |
| 268 | function get(a) | |
| 269 | local cont={}
| |
| 270 | for i,v in pairs(a:GetChildren()) do | |
| 271 | if v==char then | |
| 272 | else | |
| 273 | table.insert(cont,v) | |
| 274 | pcall(function() | |
| 275 | for _,b in pairs(get(v)) do | |
| 276 | table.insert(cont,b) | |
| 277 | end | |
| 278 | end) | |
| 279 | end | |
| 280 | end | |
| 281 | return cont | |
| 282 | end | |
| 283 | for _,v in pairs(get(game.Workspace)) do | |
| 284 | if v:IsA("Sparkles") or v:IsA("Fire") then
| |
| 285 | v:Destroy() | |
| 286 | end | |
| 287 | end | |
| 288 | ||
| 289 | -- | |
| 290 | function inT(qur,tbl) | |
| 291 | local a=false | |
| 292 | for i,v in pairs(tbl) do | |
| 293 | if v==qur then | |
| 294 | a=true | |
| 295 | break | |
| 296 | else | |
| 297 | a=false | |
| 298 | end | |
| 299 | end | |
| 300 | return a | |
| 301 | end | |
| 302 | ||
| 303 | -- | |
| 304 | function Tween(a,b,c) | |
| 305 | return a+(b-a)*c | |
| 306 | end | |
| 307 | ||
| 308 | -- | |
| 309 | function Avg(a,b) | |
| 310 | return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2) | |
| 311 | end | |
| 312 | ||
| 313 | -- | |
| 314 | function Lerp(c1,c2,tim) | |
| 315 | local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()}
| |
| 316 | local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 317 | for i,v in pairs(com1) do | |
| 318 | com1[i]=v+(com2[i]-v)*tim | |
| 319 | end | |
| 320 | return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1))) | |
| 321 | end | |
| 322 | ||
| 323 | function RLerp(c1,c2,tim) | |
| 324 | return c1:lerp(c2,tim) | |
| 325 | end | |
| 326 | ||
| 327 | -- | |
| 328 | function ALerp(c1,c2,tim) | |
| 329 | local com1={c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 330 | local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 331 | for i,v in pairs(com1) do | |
| 332 | com1[i]=v+(com2[i]-v)*tim | |
| 333 | end | |
| 334 | return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1))) | |
| 335 | end | |
| 336 | ||
| 337 | -- | |
| 338 | function Lerprs(ud,ud2,al) | |
| 339 | local a,b,c,d=ud.X.Scale,ud.X.Offset,ud.Y.Scale,ud.Y.Offset | |
| 340 | local a2,b2,c2,d2=ud2.X.Scale,ud2.X.Offset,ud2.Y.Scale,ud2.Y.Offset | |
| 341 | local x,y,z,w=(a+(a2-a)*al),(b+(b2-b)*al),(c+(c2-c)*al),(d+(d2-d)*al) | |
| 342 | return UDim2.new(x,y,z,w) | |
| 343 | end | |
| 344 | ||
| 345 | -- | |
| 346 | function newAnim(wld) | |
| 347 | local asd={["Weld"]=wld;["Int"]=0;["Frame"]=1;}
| |
| 348 | asd.getFrames=function() | |
| 349 | local num=0 | |
| 350 | for _,v in pairs(asd) do | |
| 351 | pcall(function() | |
| 352 | num=num+v.Length | |
| 353 | end) | |
| 354 | end | |
| 355 | return num | |
| 356 | end | |
| 357 | return asd | |
| 358 | end | |
| 359 | ||
| 360 | -- | |
| 361 | function newKF(tab,c0,lng,off) | |
| 362 | off=off or 1 | |
| 363 | table.insert(tab,{["C0"]=c0,["Length"]=lng,["Offset"]=off})
| |
| 364 | end | |
| 365 | ||
| 366 | -- | |
| 367 | function runKF(tab) | |
| 368 | tab.Int=tab.Int+1 | |
| 369 | if tab.Int>=tab[tab.Frame].Length then | |
| 370 | tab.Frame=tab.Frame+1 | |
| 371 | tab.Int=0 | |
| 372 | if tab.Frame>#tab then | |
| 373 | tab.Frame=1 | |
| 374 | end | |
| 375 | end | |
| 376 | tab.Weld.C0=RLerp(tab.Weld.C0,tab[tab.Frame].C0,(tab[tab.Frame].Offset/tab[tab.Frame].Length)*tab.Int) | |
| 377 | end | |
| 378 | ||
| 379 | -- | |
| 380 | function nwPrt(prnt,siz,cf,col) | |
| 381 | local prt=Instance.new("Part")
| |
| 382 | prt.Parent=prnt | |
| 383 | prt.FormFactor=3 | |
| 384 | prt.Name="Part" | |
| 385 | prt.Size=siz | |
| 386 | prt.CanCollide=false | |
| 387 | prt.Anchored=true | |
| 388 | prt.Locked=true | |
| 389 | prt.TopSurface=10 | |
| 390 | prt.BottomSurface=10 | |
| 391 | prt.FrontSurface=10 | |
| 392 | prt.BackSurface=10 | |
| 393 | prt.LeftSurface=10 | |
| 394 | prt.RightSurface=10 | |
| 395 | prt:BreakJoints() | |
| 396 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 397 | prt.Material="SmoothPlastic" | |
| 398 | prt.BrickColor=BrickColor.new(col) | |
| 399 | m=Instance.new("SpecialMesh",prt)
| |
| 400 | m.MeshType=6 | |
| 401 | return prt | |
| 402 | end | |
| 403 | ||
| 404 | -- | |
| 405 | function nwWdg(prnt,siz,cf,col) | |
| 406 | local prt=Instance.new("WedgePart")
| |
| 407 | prt.Parent=prnt | |
| 408 | prt.FormFactor=3 | |
| 409 | prt.Name="Part" | |
| 410 | prt.Size=siz | |
| 411 | prt.CanCollide=false | |
| 412 | prt.Anchored=false | |
| 413 | prt.Locked=true | |
| 414 | prt.TopSurface=0 | |
| 415 | prt.BottomSurface=0 | |
| 416 | prt:BreakJoints() | |
| 417 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 418 | prt.Material="SmoothPlastic" | |
| 419 | prt.BrickColor=BrickColor.new(col) | |
| 420 | return prt | |
| 421 | end | |
| 422 | ||
| 423 | -- | |
| 424 | function newGui(prnt,clsnm,siz,pos,bsp,bc,bt) | |
| 425 | local gui=Instance.new(clsnm,prnt) | |
| 426 | gui.Size=siz or UDim2.new(0,100,0,100) | |
| 427 | gui.Position=pos or UDim2.new(0,0,0,0) | |
| 428 | gui.BorderSizePixel=bsp or 0 | |
| 429 | gui.BackgroundColor3=bc or Color3.new(0,0,0) | |
| 430 | gui.BackgroundTransparency=bt or 1 | |
| 431 | return gui | |
| 432 | end | |
| 433 | ||
| 434 | -- | |
| 435 | function nwWld(wp0,wp1,wc0) | |
| 436 | wld = Instance.new("Weld",wp1)
| |
| 437 | wld.Part0=wp0 | |
| 438 | wld.Part1=wp1 | |
| 439 | wld.C0=wc0 or Cn(0,0,0) | |
| 440 | return wld | |
| 441 | end | |
| 442 | ||
| 443 | -- | |
| 444 | function nwSnd(prnt,pch,vol,id) | |
| 445 | local s=Instance.new("Sound",prnt)
| |
| 446 | s.Pitch=pch | |
| 447 | s.Volume=vol | |
| 448 | s.SoundId="rbxassetid://"..id | |
| 449 | s.PlayOnRemove=true | |
| 450 | return s | |
| 451 | end | |
| 452 | ||
| 453 | -- | |
| 454 | function newRay(start,face,range,wat) | |
| 455 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
| 456 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
| 457 | return rey,hit,pos | |
| 458 | end | |
| 459 | ||
| 460 | function nooutline(part) | |
| 461 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 462 | end | |
| 463 | ||
| 464 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 465 | local fp=it("Part")
| |
| 466 | fp.formFactor=formfactor | |
| 467 | fp.Parent=parent | |
| 468 | fp.Reflectance=reflectance | |
| 469 | fp.Transparency=transparency | |
| 470 | fp.CanCollide=false | |
| 471 | fp.Locked=true | |
| 472 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 473 | fp.Name=name | |
| 474 | fp.Size=size | |
| 475 | fp.Position=Character.Torso.Position | |
| 476 | nooutline(fp) | |
| 477 | fp.Material=material | |
| 478 | fp:BreakJoints() | |
| 479 | return fp | |
| 480 | end | |
| 481 | ||
| 482 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 483 | local mesh=it(Mesh) | |
| 484 | mesh.Parent=part | |
| 485 | if Mesh=="SpecialMesh" then | |
| 486 | mesh.MeshType=meshtype | |
| 487 | mesh.MeshId=meshid | |
| 488 | end | |
| 489 | mesh.Offset=offset | |
| 490 | mesh.Scale=scale | |
| 491 | return mesh | |
| 492 | end | |
| 493 | ||
| 494 | function weld(parent,part0,part1,c0,c1) | |
| 495 | local weld=it("Weld")
| |
| 496 | weld.Parent=parent | |
| 497 | weld.Part0=part0 | |
| 498 | weld.Part1=part1 | |
| 499 | weld.C0=c0 | |
| 500 | weld.C1=c1 | |
| 501 | return weld | |
| 502 | end | |
| 503 | TfwTimeStopped = false | |
| 504 | function Damagefunc(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 505 | if hit.Parent==nil then | |
| 506 | return | |
| 507 | end | |
| 508 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 509 | for _,v in pairs(hit.Parent:children()) do | |
| 510 | if v:IsA("Humanoid") then
| |
| 511 | h=v | |
| 512 | end | |
| 513 | end | |
| 514 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 515 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 516 | end | |
| 517 | if hit.Parent.className=="Hat" then | |
| 518 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 519 | end | |
| 520 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 521 | if hit.Parent:findFirstChild("DebounceHit")~=nil then
| |
| 522 | if hit.Parent.DebounceHit.Value==true then | |
| 523 | return | |
| 524 | end | |
| 525 | end | |
| 526 | --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 527 | return | |
| 528 | end]] | |
| 529 | --hs(hit,1.2) | |
| 530 | c=Instance.new("ObjectValue")
| |
| 531 | c.Name="creator" | |
| 532 | c.Value=owner | |
| 533 | c.Parent=h | |
| 534 | game:GetService("Debris"):AddItem(c,.5)
| |
| 535 | Damage=math.random(minim,maxim) | |
| 536 | --h:TakeDamage(Damage) | |
| 537 | blocked=false | |
| 538 | block=hit.Parent:findFirstChild("Block")
| |
| 539 | if block~=nil then | |
| 540 | print(block.className) | |
| 541 | if block.className=="NumberValue" then | |
| 542 | if block.Value>0 then | |
| 543 | blocked=true | |
| 544 | if decreaseblock==nil then | |
| 545 | block.Value=block.Value-1 | |
| 546 | end | |
| 547 | end | |
| 548 | end | |
| 549 | if block.className=="IntValue" then | |
| 550 | if block.Value>0 then | |
| 551 | blocked=true | |
| 552 | if decreaseblock~=nil then | |
| 553 | block.Value=block.Value-1 | |
| 554 | end | |
| 555 | end | |
| 556 | end | |
| 557 | end | |
| 558 | if blocked==false then | |
| 559 | --h:TakeDamage(Damage) | |
| 560 | if TfwTimeStopped == false then | |
| 561 | h.Health=h.Health-Damage | |
| 562 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "PUNCH", 1.5, Part.BrickColor.Color) | |
| 563 | elseif TfwTimeStopped == true then | |
| 564 | repeat wait() until TfwTimeStopped == false | |
| 565 | h.Health=h.Health-0.1 | |
| 566 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
| 567 | end | |
| 568 | else | |
| 569 | h.Health=h.Health-(Damage/2) | |
| 570 | 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)
| |
| 571 | end | |
| 572 | if Type=="Knockdown" then | |
| 573 | hum=hit.Parent.Humanoid | |
| 574 | hum.PlatformStand=true | |
| 575 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 576 | swait(1) | |
| 577 | HHumanoid.PlatformStand=false | |
| 578 | end),hum) | |
| 579 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 580 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 581 | local bodvol=Instance.new("BodyVelocity")
| |
| 582 | bodvol.velocity=angle*knockback | |
| 583 | bodvol.P=500 | |
| 584 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 585 | bodvol.Parent=hit | |
| 586 | rl = Instance.new("BodyAngularVelocity")
| |
| 587 | rl.P = 3000 | |
| 588 | rl.maxTorque = Vector3.new(500000, 500000, 500000) | |
| 589 | rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 590 | rl.Parent = hit | |
| 591 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 592 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 593 | elseif Type=="ORA" then | |
| 594 | hum=hit.Parent.Humanoid | |
| 595 | hum.PlatformStand=true | |
| 596 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 597 | swait(1) | |
| 598 | HHumanoid.PlatformStand=false | |
| 599 | end),hum) | |
| 600 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 601 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 602 | local bodvol=Instance.new("BodyVelocity")
| |
| 603 | bodvol.velocity=angle*knockback | |
| 604 | bodvol.P=500 | |
| 605 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 606 | bodvol.Parent=hit | |
| 607 | rl = Instance.new("BodyAngularVelocity")
| |
| 608 | rl.P = 3000 | |
| 609 | rl.maxTorque = Vector3.new(500000, 500000, 500000) | |
| 610 | rl.angularvelocity = Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)) | |
| 611 | rl.Parent = hit | |
| 612 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 613 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 614 | elseif Type == "Killer Queen" then | |
| 615 | hum=hit.Parent.Humanoid | |
| 616 | hum.PlatformStand=true | |
| 617 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 618 | swait(1) | |
| 619 | HHumanoid.PlatformStand=false | |
| 620 | end),hum) | |
| 621 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 622 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 623 | local bodvol=Instance.new("BodyVelocity")
| |
| 624 | bodvol.velocity=angle*knockback | |
| 625 | bodvol.P=500 | |
| 626 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 627 | bodvol.Parent=hit | |
| 628 | rl = Instance.new("BodyAngularVelocity")
| |
| 629 | rl.P = 3000 | |
| 630 | rl.maxTorque = Vector3.new(500000, 500000, 500000) | |
| 631 | rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 632 | rl.Parent = hit | |
| 633 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 634 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 635 | wait(3) | |
| 636 | KillerQueen = Instance.new("Explosion",hit)
| |
| 637 | KillerQueen.Position = hit.Position | |
| 638 | elseif Type=="Normal" then | |
| 639 | vp=Instance.new("BodyVelocity")
| |
| 640 | vp.P=500 | |
| 641 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 642 | --vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 643 | if KnockbackType==1 then | |
| 644 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 645 | elseif KnockbackType==2 then | |
| 646 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 647 | end | |
| 648 | if knockback>0 then | |
| 649 | vp.Parent=hit.Parent.Torso | |
| 650 | end | |
| 651 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 652 | elseif Type=="Up" then | |
| 653 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 654 | bodyVelocity.velocity=vt(0,60,0) | |
| 655 | bodyVelocity.P=5000 | |
| 656 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 657 | bodyVelocity.Parent=hit | |
| 658 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 659 | rl=Instance.new("BodyAngularVelocity")
| |
| 660 | rl.P=3000 | |
| 661 | rl.maxTorque=Vector3.new(500000,500000,500000) | |
| 662 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
| 663 | rl.Parent=hit | |
| 664 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 665 | elseif Type=="Snare" then | |
| 666 | bp=Instance.new("BodyPosition")
| |
| 667 | bp.P=2000 | |
| 668 | bp.D=100 | |
| 669 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 670 | bp.position=hit.Parent.Torso.Position | |
| 671 | bp.Parent=hit.Parent.Torso | |
| 672 | game:GetService("Debris"):AddItem(bp,1)
| |
| 673 | elseif Type=="Target" then | |
| 674 | local Targetting = false | |
| 675 | if Targetting==false then | |
| 676 | ZTarget=hit.Parent.Torso | |
| 677 | coroutine.resume(coroutine.create(function(Part) | |
| 678 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 679 | swait(5) | |
| 680 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 681 | end),ZTarget) | |
| 682 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 683 | local targetgui=Instance.new("BillboardGui")
| |
| 684 | targetgui.Parent=ZTarget | |
| 685 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 686 | local targ=Instance.new("ImageLabel")
| |
| 687 | targ.Parent=targetgui | |
| 688 | targ.BackgroundTransparency=1 | |
| 689 | targ.Image="rbxassetid://4834067" | |
| 690 | targ.Size=UDim2.new(1,0,1,0) | |
| 691 | cam.CameraType="Scriptable" | |
| 692 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 693 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 694 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 695 | Targetting=true | |
| 696 | RocketTarget=ZTarget | |
| 697 | for i=1,Property do | |
| 698 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 699 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 700 | swait() | |
| 701 | end | |
| 702 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 703 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 704 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 705 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 706 | end | |
| 707 | Targetting=false | |
| 708 | RocketTarget=nil | |
| 709 | targetgui.Parent=nil | |
| 710 | cam.CameraType="Custom" | |
| 711 | end | |
| 712 | end | |
| 713 | local debounce=Instance.new("BoolValue")
| |
| 714 | debounce.Name="DebounceHit" | |
| 715 | debounce.Parent=hit.Parent | |
| 716 | debounce.Value=true | |
| 717 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 718 | c=Instance.new("ObjectValue")
| |
| 719 | c.Name="creator" | |
| 720 | c.Value=Player | |
| 721 | c.Parent=h | |
| 722 | game:GetService("Debris"):AddItem(c,.5)
| |
| 723 | end | |
| 724 | end | |
| 725 | ||
| 726 | function ShowDamage(Pos, Text, Time, Color) | |
| 727 | local Rate = (1 / 30) | |
| 728 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 729 | local Text = (Text or "") | |
| 730 | local Time = (Time or 2) | |
| 731 | local Color = (Color or Color3.new(1, 0, 0)) | |
| 732 | local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
| |
| 733 | EffectPart.Anchored = true | |
| 734 | local BillboardGui = Instance.new("BillboardGui")
| |
| 735 | BillboardGui.Size = UDim2.new(3, 3, 3, 3) | |
| 736 | BillboardGui.Adornee = EffectPart | |
| 737 | local TextLabel = Instance.new("TextLabel")
| |
| 738 | TextLabel.BackgroundTransparency = 1 | |
| 739 | TextLabel.Size = UDim2.new(3, 3, 3, 3) | |
| 740 | TextLabel.Text = Text | |
| 741 | TextLabel.TextColor3 = Color | |
| 742 | TextLabel.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 743 | TextLabel.TextScaled = true | |
| 744 | TextLabel.TextStrokeTransparency = 0 | |
| 745 | TextLabel.Font = Enum.Font.SourceSansBold | |
| 746 | TextLabel.Parent = BillboardGui | |
| 747 | BillboardGui.Parent = EffectPart | |
| 748 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
| 749 | EffectPart.Parent = game:GetService("Workspace")
| |
| 750 | Delay(0, function() | |
| 751 | local Frames = (Time / Rate) | |
| 752 | for Frame = 1, Frames do | |
| 753 | wait(Rate) | |
| 754 | local Percent = (Frame / Frames) | |
| 755 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 756 | TextLabel.TextTransparency = Percent | |
| 757 | TextLabel.TextStrokeTransparency = Percent | |
| 758 | end | |
| 759 | if EffectPart and EffectPart.Parent then | |
| 760 | EffectPart:Destroy() | |
| 761 | end | |
| 762 | end) | |
| 763 | end | |
| 764 | ||
| 765 | Player = p | |
| 766 | workspace[Player.Name].Archivable=true | |
| 767 | pchar = workspace[Player.Name]:Clone() --Create("Model",{Parent=workspace})
| |
| 768 | pchar.Parent=workspace[Player.Name] | |
| 769 | torso=pchar.Torso | |
| 770 | humane=pchar.Humanoid | |
| 771 | pchar.Name= "Killer Queen" | |
| 772 | pl=pchar | |
| 773 | humane.MaxHealth=Health | |
| 774 | wait() | |
| 775 | humane.Health=Health | |
| 776 | humane.WalkSpeed=Speed | |
| 777 | ||
| 778 | pchar.Shirt.ShirtTemplate = "rbxassetid://497255957" | |
| 779 | pchar.Pants.PantsTemplate = "rbxassetid://497256087" | |
| 780 | ||
| 781 | ---Weld | |
| 782 | ||
| 783 | local law=nwWld(tor,lam,Cn(-1.5,0.5,0)) | |
| 784 | law.C1=CFrame.new(0,0.5,0) | |
| 785 | local raw=nwWld(tor,ram,Cn(1.5,0.5,0)) | |
| 786 | raw.C1=CFrame.new(0,0.5,0) | |
| 787 | local hew=nwWld(tor,hed,Cn(0,1.5,0)) | |
| 788 | local llw=nwWld(tor,llg,Cn(-0.5,-1,0)) | |
| 789 | llw.C1=CFrame.new(0,1,0) | |
| 790 | local rlw=nwWld(tor,rlg,Cn(0.5,-1,0)) | |
| 791 | rlw.C1=CFrame.new(0,1,0) | |
| 792 | local tow=nwWld(hrp,tor,Cn(0,-1,0)) | |
| 793 | tow.C1=CFrame.new(0,-1,0) | |
| 794 | ||
| 795 | local hrp2 = pchar.HumanoidRootPart | |
| 796 | local tor2 = torso | |
| 797 | local hed2 = pchar.Head | |
| 798 | local lam2=pchar["Left Arm"] | |
| 799 | local ram2=pchar["Right Arm"] | |
| 800 | local llg2=pchar["Left Leg"] | |
| 801 | local rlg2=pchar["Right Leg"] | |
| 802 | ||
| 803 | local law2=nwWld(tor2,lam2,Cn(-1.5,0.5,0)) | |
| 804 | law2.C1=CFrame.new(0,0.5,0) | |
| 805 | local raw2=nwWld(tor2,ram2,Cn(1.5,0.5,0)) | |
| 806 | raw2.C1=CFrame.new(0,0.5,0) | |
| 807 | local hew2=nwWld(torso,hed2,Cn(0,1.5,0)) | |
| 808 | local llw2=nwWld(torso,llg2,Cn(-0.5,-1,0)) | |
| 809 | llw2.C1=CFrame.new(0,1,0) | |
| 810 | local rlw2=nwWld(tor2,rlg2,Cn(0.5,-1,0)) | |
| 811 | rlw2.C1=CFrame.new(0,1,0) | |
| 812 | local tow2=nwWld(hrp2,tor2,Cn(0,-1,0)) | |
| 813 | tow2.C1=CFrame.new(0,-1,0) | |
| 814 | ||
| 815 | ||
| 816 | local laD=CFrame.new(-1.5,0.5,0) | |
| 817 | local raD=CFrame.new(1.5,0.5,0) | |
| 818 | local hD=CFrame.new(0,1.5,0) | |
| 819 | local tD=CFrame.new(0,-1,0) | |
| 820 | local llD=CFrame.new(-0.5,-1,0) | |
| 821 | local rlD=CFrame.new(0.5,-1,0) | |
| 822 | ||
| 823 | ---Build | |
| 824 | ||
| 825 | ---Animations | |
| 826 | ||
| 827 | --Idle | |
| 828 | local heid=newAnim(hew) | |
| 829 | newKF(heid,hD*CA(mr(-15.5),0,0),50,0.3) | |
| 830 | newKF(heid,hD*CA(mr(-14),0,0),40,0.3) | |
| 831 | local toid=newAnim(tow) | |
| 832 | newKF(toid,tD*Cn(0,-0.0125,0)*CA(mr(0),0,0),50,0.3) | |
| 833 | newKF(toid,tD*Cn(0,0.0125,0)*CA(mr(0),0,0),40,0.3) | |
| 834 | local laid=newAnim(law) | |
| 835 | newKF(laid,laD*Cn(1,0.0125,-0.764)*CA(mr(80),0,mr(85)),50,0.3) | |
| 836 | newKF(laid,laD*Cn(1,-0.0125,-0.764)*CA(mr(70),0,mr(85)),40,0.3) | |
| 837 | local raid=newAnim(raw) | |
| 838 | newKF(raid,raD*Cn(-1,-0.0125,-0.764)*CA(mr(80),0,mr(-85)),50,0.3) | |
| 839 | newKF(raid,raD*Cn(-1,0.0125,-0.764)*CA(mr(70),0,mr(-85)),40,0.3) | |
| 840 | local llid=newAnim(llw) | |
| 841 | newKF(llid,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3) | |
| 842 | newKF(llid,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3) | |
| 843 | local rlid=newAnim(rlw) | |
| 844 | newKF(rlid,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3) | |
| 845 | newKF(rlid,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3) | |
| 846 | ||
| 847 | local heid2=newAnim(hew2) | |
| 848 | newKF(heid2,hD*CA(mr(0),0,0),40,0.3) | |
| 849 | newKF(heid2,hD*CA(mr(0),0,0),40,0.3) | |
| 850 | local toid2=newAnim(tow2) | |
| 851 | newKF(toid2,tD*Cn(0,0.5,3)*CA(mr(0),0,0),50,1) | |
| 852 | newKF(toid2,tD*Cn(0,1,3)*CA(mr(0),0,0),40,1) | |
| 853 | local laid2=newAnim(law2) | |
| 854 | newKF(laid2,laD*Cn(0,0.0125,0)*CA(mr(0),mr(0),mr(-20)),50,0.3) | |
| 855 | newKF(laid2,laD*Cn(0,-0.0125,0)*CA(mr(0),mr(0),mr(-20)),40,0.3) | |
| 856 | local raid2=newAnim(raw2) | |
| 857 | newKF(raid2,raD*Cn(0,-0.0125,0)*CA(mr(0),mr(0),mr(20)),50,0.3) | |
| 858 | newKF(raid2,raD*Cn(0,0.0125,0)*CA(mr(0),mr(0),mr(20)),40,0.3) | |
| 859 | local llid2=newAnim(llw2) | |
| 860 | newKF(llid2,llD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3) | |
| 861 | newKF(llid2,llD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3) | |
| 862 | local rlid2=newAnim(rlw2) | |
| 863 | newKF(rlid2,rlD*Cn(0,0.0125,0)*CA(mr(0),0,0),50,0.3) | |
| 864 | newKF(rlid2,rlD*Cn(0,-0.0125,0)*CA(mr(0),0,mr(0)),40,0.3) | |
| 865 | ||
| 866 | --Walk | |
| 867 | local hewk=newAnim(hew) | |
| 868 | newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4) | |
| 869 | newKF(hewk,hD*CA(mr(-5),mr(-3),0),13,0.4) | |
| 870 | newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4) | |
| 871 | newKF(hewk,hD*CA(mr(-5),mr(3),0),13,0.4) | |
| 872 | local towk=newAnim(tow) | |
| 873 | newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2) | |
| 874 | newKF(towk,tD*CA(mr(15),mr(5),0),13,0.4) | |
| 875 | newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2) | |
| 876 | newKF(towk,tD*CA(mr(15),mr(-5),0),13,0.4) | |
| 877 | local lawk=newAnim(law) | |
| 878 | newKF(lawk,laD*CA(mr(30),0,0),25,0.4) | |
| 879 | newKF(lawk,laD*CA(mr(-30),0,0),25,0.4) | |
| 880 | local rawk=newAnim(raw) | |
| 881 | newKF(rawk,raD*CA(mr(-30),0,0),25,0.4) | |
| 882 | newKF(rawk,raD*CA(mr(30),0,0),25,0.4) | |
| 883 | local llwk=newAnim(llw) | |
| 884 | newKF(llwk,llD*CA(mr(-40),mr(-10),mr(-2)),25,0.4) | |
| 885 | newKF(llwk,llD*Cn(0,0.3,0)*CA(mr(-5),0,mr(-3)),12,0.4) | |
| 886 | newKF(llwk,llD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(10),mr(-3)),13,0.4) | |
| 887 | local rlwk=newAnim(rlw) | |
| 888 | newKF(rlwk,rlD*Cn(0,0.3,0)*CA(mr(-5),0,mr(3)),12,0.4) | |
| 889 | newKF(rlwk,rlD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(-10),mr(3)),13,0.4) | |
| 890 | newKF(rlwk,rlD*CA(mr(-40),mr(10),mr(2)),25,0.4) | |
| 891 | ||
| 892 | --Sprint | |
| 893 | local hesp=newAnim(hew) | |
| 894 | newKF(hesp,hD*CA(mr(5),mr(-10),0),10,0.2) | |
| 895 | newKF(hesp,hD*CA(mr(10),0,0),10,0.2) | |
| 896 | newKF(hesp,hD*CA(mr(5),mr(10),0),10,0.2) | |
| 897 | newKF(hesp,hD*CA(mr(10),0,0),10,0.2) | |
| 898 | local tosp=newAnim(tow) | |
| 899 | newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(10),0),10,0.4) | |
| 900 | newKF(tosp,tD*CA(mr(-10),0,0),10,0.4) | |
| 901 | newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(-10),0),10,0.4) | |
| 902 | newKF(tosp,tD*CA(mr(-10),0,0),10,0.4) | |
| 903 | local lasp=newAnim(law) | |
| 904 | newKF(lasp,laD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4) | |
| 905 | newKF(lasp,laD*CA(mr(-40),0,0),20,0.4) | |
| 906 | local rasp=newAnim(raw) | |
| 907 | newKF(rasp,raD*CA(mr(-40),0,0),20,0.4) | |
| 908 | newKF(rasp,raD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4) | |
| 909 | local llsp=newAnim(llw) | |
| 910 | newKF(llsp,llD*CA(mr(-50),mr(-10),mr(-2)),20,0.4) | |
| 911 | newKF(llsp,llD*Cn(0,0.5,0)*CA(mr(15),0,mr(-3)),10,0.4) | |
| 912 | newKF(llsp,llD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(10),mr(-3)),10,0.4) | |
| 913 | local rlsp=newAnim(rlw) | |
| 914 | newKF(rlsp,rlD*Cn(0,0.3,0)*CA(mr(15),0,mr(3)),10,0.4) | |
| 915 | newKF(rlsp,rlD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(-10),mr(3)),10,0.4) | |
| 916 | newKF(rlsp,rlD*CA(mr(-50),mr(10),mr(2)),20,0.4) | |
| 917 | ||
| 918 | --Freefall | |
| 919 | local heff=newAnim(hew) | |
| 920 | newKF(heff,hD*CA(mr(-5),0,0),8,0.6) | |
| 921 | newKF(heff,hD*CA(mr(-5),0,0),8,0.6) | |
| 922 | local toff=newAnim(tow) | |
| 923 | newKF(toff,tD*CA(mr(10),0,0),8,0.6) | |
| 924 | newKF(toff,tD*CA(mr(10),0,0),8,0.6) | |
| 925 | local laff=newAnim(law) | |
| 926 | newKF(laff,laD*CA(mr(140),0,0),16,0.4) | |
| 927 | newKF(laff,laD*CA(mr(140),0,0),16,0.4) | |
| 928 | local raff=newAnim(raw) | |
| 929 | newKF(raff,raD*CA(mr(140),0,0),16,0.4) | |
| 930 | newKF(raff,raD*CA(mr(140),0,0),16,0.4) | |
| 931 | local llff=newAnim(llw) | |
| 932 | newKF(llff,llD*CA(0,0,mr(-5)),16,0.4) | |
| 933 | newKF(llff,llD*CA(0,0,mr(-5)),16,0.4) | |
| 934 | local rlff=newAnim(rlw) | |
| 935 | newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4) | |
| 936 | newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4) | |
| 937 | ||
| 938 | --Time Has Stopped | |
| 939 | local hesp2=newAnim(hew) | |
| 940 | newKF(hesp2,hD*CA(mr(-30),mr(0),mr(0)),10,0.5) | |
| 941 | local tosp2=newAnim(tow) | |
| 942 | newKF(tosp2,tD*Cn(0,0,0)*CA(mr(30),mr(0),mr(0)),10,0.5) | |
| 943 | local lasp2=newAnim(law) | |
| 944 | newKF(lasp2,laD*CA(mr(90),mr(0),mr(-60)),20,1.5) | |
| 945 | local rasp2=newAnim(raw) | |
| 946 | newKF(rasp2,raD*CA(mr(90),mr(0),mr(60)),20,1.5) | |
| 947 | local llsp2=newAnim(llw) | |
| 948 | newKF(llsp2,llD*Cn(0,0,0)*CA(mr(-30),mr(0),mr(0)),20,0.5) | |
| 949 | local rlsp2=newAnim(rlw) | |
| 950 | newKF(rlsp2,rlD*Cn(0,0,0)*CA(mr(-30),0,mr(0)),10,0.5) | |
| 951 | ||
| 952 | local hesp3=newAnim(hew2) | |
| 953 | newKF(hesp3,hD*CA(mr(-15),mr(0),mr(0)),50,0.2) | |
| 954 | local tosp3=newAnim(tow2) | |
| 955 | newKF(tosp3,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),50,0.4) | |
| 956 | local lasp3=newAnim(law2) | |
| 957 | newKF(lasp3,laD*CA(mr(80),mr(0),mr(65)),30,0.4) | |
| 958 | newKF(lasp3,laD*CA(mr(120),mr(0),mr(-60)),50,0.4) | |
| 959 | local rasp3=newAnim(raw2) | |
| 960 | newKF(rasp3,raD*CA(mr(80),mr(0),mr(-65)),30,0.4) | |
| 961 | newKF(rasp3,raD*CA(mr(120),mr(0),mr(60)),50,0.4) | |
| 962 | local llsp3=newAnim(llw2) | |
| 963 | newKF(llsp3,llD*CA(mr(0),mr(0),mr(1.5)),50,0.4) | |
| 964 | local rlsp3=newAnim(rlw2) | |
| 965 | newKF(rlsp3,rlD*CA(mr(0),mr(0),mr(-1.5)),50,0.4) | |
| 966 | ||
| 967 | local hesp4=newAnim(hew2) | |
| 968 | newKF(hesp4,hD*CA(mr(-10),mr(0),mr(0)),10,0.2) | |
| 969 | local tosp4=newAnim(tow2) | |
| 970 | newKF(tosp4,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),10,0.4) | |
| 971 | local lasp4=newAnim(law2) | |
| 972 | newKF(lasp4,laD*CA(mr(120),mr(0),mr(-60)),20,0.4) | |
| 973 | local rasp4=newAnim(raw2) | |
| 974 | newKF(rasp4,raD*CA(mr(120),mr(0),mr(60)),20,0.4) | |
| 975 | local llsp4=newAnim(llw2) | |
| 976 | newKF(llsp4,llD*CA(mr(0),mr(0),mr(1.5)),20,0.4) | |
| 977 | local rlsp4=newAnim(rlw2) | |
| 978 | newKF(rlsp4,rlD*CA(mr(0),mr(0),mr(-1.5)),10,0.4) | |
| 979 | ||
| 980 | --Let time flow again | |
| 981 | local hetoki=newAnim(hew) | |
| 982 | newKF(hetoki,hD*CA(mr(0),mr(0),mr(0)),10,0.2) | |
| 983 | local totoki=newAnim(tow) | |
| 984 | newKF(totoki,tD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4) | |
| 985 | local latoki=newAnim(law) | |
| 986 | newKF(latoki,laD*Cn(0,-0.1,-0.2)*CA(mr(0),mr(0),mr(0)),20,0.4) | |
| 987 | local ratoki=newAnim(raw) | |
| 988 | newKF(ratoki,raD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
| 989 | local lltoki=newAnim(llw) | |
| 990 | newKF(lltoki,llD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
| 991 | local rltoki=newAnim(rlw) | |
| 992 | newKF(rltoki,rlD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4) | |
| 993 | --//Example of Keyframe | |
| 994 | --[[ | |
| 995 | local hesp2=newAnim(hew) | |
| 996 | newKF(hesp2,hD*CA(mr(0),mr(0),mr(0)),10,0.2) | |
| 997 | local tosp2=newAnim(tow) | |
| 998 | newKF(tosp2,tD*CA(mr(0),mr(0),mr(0)),10,0.4) | |
| 999 | local lasp2=newAnim(law) | |
| 1000 | newKF(lasp2,laD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
| 1001 | local rasp2=newAnim(raw) | |
| 1002 | newKF(rasp2,raD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
| 1003 | local llsp2=newAnim(llw) | |
| 1004 | newKF(llsp2,llD*CA(mr(0),mr(0),mr(0)),20,0.4) | |
| 1005 | local rlsp2=newAnim(rlw) | |
| 1006 | newKF(rlsp2,rlD*CA(mr(0),mr(0),mr(0)),10,0.4) | |
| 1007 | ]] | |
| 1008 | function onDamage(Part) | |
| 1009 | if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then
| |
| 1010 | Part.Anchored = true | |
| 1011 | if Part:findFirstChild("Mesh") ~= nil then
| |
| 1012 | z = Part:findFirstChild("Mesh")
| |
| 1013 | for i = 1,5 do | |
| 1014 | z.Scale = z.Scale + Vector3.new(1,1,1) | |
| 1015 | wait(0.05) | |
| 1016 | end | |
| 1017 | end | |
| 1018 | end | |
| 1019 | end | |
| 1020 | ||
| 1021 | function trappedTorsos:isTrapped(t) | |
| 1022 | for nildata, index in next,self do | |
| 1023 | if index==t then | |
| 1024 | return true | |
| 1025 | end | |
| 1026 | end | |
| 1027 | return false | |
| 1028 | end | |
| 1029 | ||
| 1030 | function trappedTorsos:Capture(hit) | |
| 1031 | if hit:isA'BasePart' then | |
| 1032 | if not trappedTorsos:isTrapped(hit) and not hit:IsDescendantOf(char) then | |
| 1033 | print(hit.Parent:GetFullName()) | |
| 1034 | table.insert(trappedTorsos, hit.Parent) | |
| 1035 | Bitten = true | |
| 1036 | repeat wait() if hit.Parent == nil then Bitten = false end until Bitten == false | |
| 1037 | print("Find a new Target!")
| |
| 1038 | --hit.Anchored = true --trapped! | |
| 1039 | --print'trapped!' | |
| 1040 | end | |
| 1041 | end | |
| 1042 | end | |
| 1043 | ||
| 1044 | function trappedTorsoss:isTrapped(t) | |
| 1045 | for nildata, index in next,self do | |
| 1046 | if index==t then | |
| 1047 | return true | |
| 1048 | end | |
| 1049 | end | |
| 1050 | return false | |
| 1051 | end | |
| 1052 | Bitten2 = false | |
| 1053 | function trappedTorsoss:Capture2(hit) | |
| 1054 | if not trappedTorsoss:isTrapped(hit) and not hit:IsDescendantOf(char) and hit:isA'BasePart' then | |
| 1055 | table.insert(trappedTorsoss, hit) | |
| 1056 | Bitten2 = true | |
| 1057 | repeat wait() until Bitten2 == false | |
| 1058 | KillerQueens = Instance.new("Explosion",Workspace)
| |
| 1059 | KillerQueens.Position = hit.Position | |
| 1060 | KillerQueens.BlastPressure = 0 | |
| 1061 | KillerQueens.BlastRadius = 10 | |
| 1062 | hit:breakJoints() | |
| 1063 | hit:remove() | |
| 1064 | print("BITTEN!")
| |
| 1065 | --hit.Anchored = true --trapped! | |
| 1066 | --print'trapped!' | |
| 1067 | end | |
| 1068 | end | |
| 1069 | function LetsBiteZaDusto(hit) | |
| 1070 | if not hit:IsDescendantOf(char) and hit:isA'BasePart' and hit.Name ~= "Terrain" and hit ~= workspace.Terrain then | |
| 1071 | KillerQueens = Instance.new("Explosion",Workspace)
| |
| 1072 | KillerQueens.Position = hit.Position | |
| 1073 | KillerQueens.BlastPressure = 0 | |
| 1074 | KillerQueens.BlastRadius = 10 | |
| 1075 | pcall(function() | |
| 1076 | hit:breakJoints() | |
| 1077 | hit:remove() | |
| 1078 | end) | |
| 1079 | end | |
| 1080 | end | |
| 1081 | ||
| 1082 | function trappedTorsos:Release() | |
| 1083 | for i,v in next, self do | |
| 1084 | if type(v)=='userdata' then | |
| 1085 | if v:isA('BasePart') then
| |
| 1086 | v.Anchored = false | |
| 1087 | self[i] = nil | |
| 1088 | end | |
| 1089 | end | |
| 1090 | end | |
| 1091 | end | |
| 1092 | ||
| 1093 | DUWANG = Instance.new("Sound",char)
| |
| 1094 | DUWANG.SoundId = "rbxassetid://583598537" | |
| 1095 | DUWANG.Looped = true | |
| 1096 | DUWANG:Play() | |
| 1097 | ||
| 1098 | --Za Warudo | |
| 1099 | Attacking = false | |
| 1100 | WasOn = true | |
| 1101 | Rapid = false | |
| 1102 | TimeStopped = false | |
| 1103 | OneSecond = false | |
| 1104 | BubbleBomb = false | |
| 1105 | TheTarget = nil | |
| 1106 | Cha = char | |
| 1107 | Character = char | |
| 1108 | it=Instance.new | |
| 1109 | vt=Vector3.new | |
| 1110 | cn=CFrame.new | |
| 1111 | euler=CFrame.fromEulerAnglesXYZ | |
| 1112 | angles=CFrame.Angles | |
| 1113 | RootPart = hrp | |
| 1114 | mouse.KeyDown:connect(function(key) | |
| 1115 | if key == "q" and Attacking == false then | |
| 1116 | Attacking = true | |
| 1117 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,0,0,math.random(0,0),"Knockdown",RootPart,.2,1) trappedTorsoss:Capture2(hit) end) | |
| 1118 | for i = 1, 3 do | |
| 1119 | 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) | |
| 1120 | 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) | |
| 1121 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1122 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1123 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1124 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1125 | wait() | |
| 1126 | end | |
| 1127 | wait(1) | |
| 1128 | con1:disconnect() | |
| 1129 | Attacking = false | |
| 1130 | end | |
| 1131 | if key == "p" and Bitten2 == true then | |
| 1132 | Bitten2 = false | |
| 1133 | end | |
| 1134 | if key == "f" then | |
| 1135 | if StandOn then | |
| 1136 | StandOn = false | |
| 1137 | else | |
| 1138 | StandOn = true | |
| 1139 | end | |
| 1140 | end | |
| 1141 | if key == "v" and Rapid ~= true then | |
| 1142 | Rapid = true | |
| 1143 | Attacking = true | |
| 1144 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) trappedTorsoss:Capture2(hit) end) | |
| 1145 | con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) trappedTorsoss:Capture2(hit) end) | |
| 1146 | while Rapid == true do | |
| 1147 | for i = 1, 3 do | |
| 1148 | 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) | |
| 1149 | 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) | |
| 1150 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1151 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1152 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1153 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1154 | wait() | |
| 1155 | end | |
| 1156 | for i = 1, 3 do | |
| 1157 | 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) | |
| 1158 | 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) | |
| 1159 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
| 1160 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
| 1161 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
| 1162 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
| 1163 | wait() | |
| 1164 | end | |
| 1165 | for i = 1, 3 do | |
| 1166 | 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) | |
| 1167 | 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) | |
| 1168 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1169 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1170 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1171 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1172 | wait() | |
| 1173 | end | |
| 1174 | for i = 1, 3 do | |
| 1175 | 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) | |
| 1176 | 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) | |
| 1177 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
| 1178 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
| 1179 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
| 1180 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
| 1181 | wait() | |
| 1182 | end | |
| 1183 | end | |
| 1184 | con1:disconnect() | |
| 1185 | con2:disconnect() | |
| 1186 | Attacking = false | |
| 1187 | end | |
| 1188 | if key == "e" and Rapid ~= true then | |
| 1189 | Rapid = true | |
| 1190 | Attacking = true | |
| 1191 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) end) | |
| 1192 | con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,1,2,math.random(0,0),"ORA",RootPart,.2,1) end) | |
| 1193 | while Rapid == true do | |
| 1194 | for i = 1, 3 do | |
| 1195 | 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) | |
| 1196 | 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) | |
| 1197 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1198 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1199 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1200 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1201 | wait() | |
| 1202 | end | |
| 1203 | for i = 1, 3 do | |
| 1204 | 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) | |
| 1205 | 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) | |
| 1206 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
| 1207 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
| 1208 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
| 1209 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
| 1210 | wait() | |
| 1211 | end | |
| 1212 | for i = 1, 3 do | |
| 1213 | 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) | |
| 1214 | 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) | |
| 1215 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1216 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1217 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1218 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1219 | wait() | |
| 1220 | end | |
| 1221 | for i = 1, 3 do | |
| 1222 | 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) | |
| 1223 | 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) | |
| 1224 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3) | |
| 1225 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3) | |
| 1226 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3) | |
| 1227 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3) | |
| 1228 | wait() | |
| 1229 | end | |
| 1230 | end | |
| 1231 | con1:disconnect() | |
| 1232 | con2:disconnect() | |
| 1233 | Attacking = false | |
| 1234 | end | |
| 1235 | if key == "r" and Attacking == false and Bitten2 == false then | |
| 1236 | con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,5,15,math.random(100,100),"Knockdown",RootPart,.2,1) trappedTorsoss:Capture2(hit) end) | |
| 1237 | Attacking = true | |
| 1238 | for i = 1, 3 do | |
| 1239 | 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) | |
| 1240 | 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) | |
| 1241 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1242 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1243 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1244 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1245 | wait() | |
| 1246 | end | |
| 1247 | wait(1) | |
| 1248 | con1:disconnect() | |
| 1249 | Attacking = false | |
| 1250 | end | |
| 1251 | if key == "g" and Attacking == false then | |
| 1252 | con1 = ram2.Touched:connect(function(hit) | |
| 1253 | Damagefunc(torso,hit,5,15,math.random(100,100),"Killer Queen",RootPart,.2,1) | |
| 1254 | end) | |
| 1255 | Attacking = true | |
| 1256 | for i = 1, 3 do | |
| 1257 | 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) | |
| 1258 | 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) | |
| 1259 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3) | |
| 1260 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1261 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1262 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1263 | wait() | |
| 1264 | end | |
| 1265 | wait(1) | |
| 1266 | con1:disconnect() | |
| 1267 | Attacking = false | |
| 1268 | end | |
| 1269 | if key == "t" and Attacking == false then | |
| 1270 | Attacking = true | |
| 1271 | BubbleBomb = true | |
| 1272 | for i = 1, 3 do | |
| 1273 | 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) | |
| 1274 | 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) | |
| 1275 | hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(-50),0), 1.3) | |
| 1276 | tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3) | |
| 1277 | llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3) | |
| 1278 | rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3) | |
| 1279 | wait() | |
| 1280 | end | |
| 1281 | ContactBubble = Instance.new("Part",char)
| |
| 1282 | ContactBubble.Material = "Neon" | |
| 1283 | ContactBubble.Transparency = 0.85 | |
| 1284 | ContactBubble.Shape = "Ball" | |
| 1285 | ContactBubble.CFrame = hed2.CFrame + hed2.CFrame.lookVector*10 | |
| 1286 | Shooter = Instance.new('BodyVelocity',ContactBubble)
| |
| 1287 | Shooter.maxForce = Vector3.new(1,1,1)*math.huge | |
| 1288 | Shooter.velocity = tor.CFrame.lookVector*10 | |
| 1289 | Attacking = false | |
| 1290 | wait(0.5) | |
| 1291 | ContactBubble.Touched:connect(function(hit) | |
| 1292 | if hit:IsA"BasePart" then | |
| 1293 | local KillerQueenEx = Instance.new("Explosion",hit)
| |
| 1294 | KillerQueenEx.Position = hit.Position | |
| 1295 | ContactBubble:Destroy() | |
| 1296 | hit:breakJoints() | |
| 1297 | hit:Remove() | |
| 1298 | end | |
| 1299 | end) | |
| 1300 | end | |
| 1301 | if key == "[" and hum.Health > 25 and Daisobakuden == false then | |
| 1302 | Daisobakuden = true | |
| 1303 | end | |
| 1304 | if key == "]" and hum.Health > 25 and Daisobakuden == true then | |
| 1305 | Daisobakuden = false | |
| 1306 | end | |
| 1307 | end) | |
| 1308 | ||
| 1309 | mouse.KeyUp:connect(function(key) | |
| 1310 | if key == "e" and Rapid == true or key == "v" and Rapid == true then | |
| 1311 | Rapid = false | |
| 1312 | end | |
| 1313 | end) | |
| 1314 | function getAllParts() | |
| 1315 | local rtn = {}
| |
| 1316 | ||
| 1317 | local function recurse(object) | |
| 1318 | for q,e in next, object:children() do | |
| 1319 | if e:isA'BasePart' then | |
| 1320 | table.insert(rtn, e) | |
| 1321 | end | |
| 1322 | recurse(e) | |
| 1323 | end | |
| 1324 | end | |
| 1325 | ||
| 1326 | recurse(workspace) | |
| 1327 | return rtn | |
| 1328 | end | |
| 1329 | Bitten = false | |
| 1330 | ||
| 1331 | for i, v in pairs(pchar:GetChildren()) do | |
| 1332 | if v:IsA('Hat') then
| |
| 1333 | v.Handle.Transparency=1 | |
| 1334 | end | |
| 1335 | if v:IsA("Part") then
| |
| 1336 | v.BrickColor = BrickColor.new("Hot pink")
| |
| 1337 | end | |
| 1338 | end | |
| 1339 | ||
| 1340 | -------------------------------Sprint | |
| 1341 | mouse.KeyDown:connect(function(key) | |
| 1342 | if string.byte(key) == 48 then | |
| 1343 | hum.WalkSpeed = 48 | |
| 1344 | end | |
| 1345 | end) | |
| 1346 | mouse.KeyUp:connect(function(key) | |
| 1347 | if string.byte(key) == 48 then | |
| 1348 | hum.WalkSpeed=16 | |
| 1349 | end | |
| 1350 | end) | |
| 1351 | ------------------------------------- | |
| 1352 | hum.FreeFalling:connect(function(f) | |
| 1353 | if f then | |
| 1354 | ffing=true | |
| 1355 | else | |
| 1356 | ffing=false | |
| 1357 | end | |
| 1358 | end) | |
| 1359 | StandOn = true | |
| 1360 | local hrprv=0 | |
| 1361 | angle = 0 | |
| 1362 | angle2 = 0 | |
| 1363 | angle3 = 0 | |
| 1364 | anglespeed = 2 | |
| 1365 | anglespeed2 = 1 | |
| 1366 | anglespeed3 = .4 | |
| 1367 | MyHealth = hum.Health | |
| 1368 | MyMaxHealth = hum.MaxHealth | |
| 1369 | MyMaxHealth = humane.Health | |
| 1370 | MyHealth = humane.Health | |
| 1371 | humane.Name = "Killer Queen" | |
| 1372 | ||
| 1373 | game:GetService("RunService").Stepped:connect(function()
| |
| 1374 | for i, v in pairs(pchar:GetChildren()) do | |
| 1375 | if v:IsA('Hat') then
| |
| 1376 | v.Handle.Transparency=1 | |
| 1377 | end | |
| 1378 | if v:IsA("Part") then
| |
| 1379 | v.BrickColor = BrickColor.new("Hot pink")
| |
| 1380 | end | |
| 1381 | end | |
| 1382 | if hum.Health < 25 then | |
| 1383 | Daisobakuden = true | |
| 1384 | end | |
| 1385 | angle = ((angle % 100) + anglespeed/10) | |
| 1386 | angle2 = ((angle2 % 100) + anglespeed2/10) | |
| 1387 | angle3 = ((angle3 % 100) + anglespeed3/10) | |
| 1388 | hrprv=Tween(hrprv,hrp.RotVelocity.Y,0.4) | |
| 1389 | sine=sine+1 | |
| 1390 | if StandOn == false then | |
| 1391 | for i,v in pairs(pchar:children()) do | |
| 1392 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
| |
| 1393 | v.Transparency = 1 | |
| 1394 | end | |
| 1395 | end | |
| 1396 | elseif StandOn == true then | |
| 1397 | for i,v in pairs(pchar:children()) do | |
| 1398 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
| |
| 1399 | v.Transparency = 0 | |
| 1400 | end | |
| 1401 | end | |
| 1402 | end | |
| 1403 | MyHealth = humane.Health | |
| 1404 | humane.Health = MyHealth | |
| 1405 | if hum.Sit==true then | |
| 1406 | animpose="Sitting" | |
| 1407 | elseif ffing==true then | |
| 1408 | animpose="Freefalling" | |
| 1409 | elseif (hrp.Velocity*Vn(1,0,1)).magnitude<2 then | |
| 1410 | animpose="Idle" | |
| 1411 | elseif (hrp.Velocity*Vn(1,0,1)).magnitude<20 then | |
| 1412 | animpose="Walking" | |
| 1413 | elseif (hrp.Velocity*Vn(1,0,1)).magnitude>20 then | |
| 1414 | animpose="Sprinting" | |
| 1415 | end | |
| 1416 | if Attacking == false then | |
| 1417 | torso.CFrame = hrp.CFrame*CFrame.new(0,0,2) | |
| 1418 | runKF(heid2) | |
| 1419 | runKF(toid2) | |
| 1420 | runKF(laid2) | |
| 1421 | runKF(raid2) | |
| 1422 | runKF(llid2) | |
| 1423 | runKF(rlid2) | |
| 1424 | end | |
| 1425 | if noRig==false then | |
| 1426 | if animpose=="Idle" then | |
| 1427 | runKF(heid) | |
| 1428 | runKF(toid) | |
| 1429 | runKF(laid) | |
| 1430 | runKF(raid) | |
| 1431 | runKF(llid) | |
| 1432 | runKF(rlid) | |
| 1433 | elseif animpose=="Walking" then | |
| 1434 | runKF(hewk) | |
| 1435 | runKF(towk) | |
| 1436 | runKF(lawk) | |
| 1437 | runKF(rawk) | |
| 1438 | runKF(llwk) | |
| 1439 | runKF(rlwk) | |
| 1440 | --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/25),0.4) | |
| 1441 | --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/25),0.4) | |
| 1442 | ---llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/25),0.4) | |
| 1443 | elseif animpose=="Sprinting" then | |
| 1444 | runKF(hesp) | |
| 1445 | runKF(tosp) | |
| 1446 | runKF(lasp) | |
| 1447 | runKF(rasp) | |
| 1448 | runKF(llsp) | |
| 1449 | runKF(rlsp) | |
| 1450 | --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4) | |
| 1451 | --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/10),0.4) | |
| 1452 | --llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/10),0.4) | |
| 1453 | elseif animpose=="Freefalling" then | |
| 1454 | runKF(heff) | |
| 1455 | runKF(toff) | |
| 1456 | runKF(laff) | |
| 1457 | runKF(raff) | |
| 1458 | runKF(llff) | |
| 1459 | runKF(rlff) | |
| 1460 | --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4) | |
| 1461 | end | |
| 1462 | end | |
| 1463 | end) | |
| 1464 | ||
| 1465 | AnotherOneBitesZaDusto = 500 | |
| 1466 | hum.MaxHealth = 500 | |
| 1467 | wait() | |
| 1468 | hum.Health = 500 | |
| 1469 | while wait(100) do | |
| 1470 | AnotherOneBitesZaDusto = hum.Health | |
| 1471 | print'Changed' | |
| 1472 | end |