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,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | ||
| 7 | plr = game.Players.LocalPlayer | |
| 8 | chr = plr.Character or plr.CharacterAdded:wait() | |
| 9 | mouse = plr:GetMouse() | |
| 10 | fire = Instance.new("Fire")
| |
| 11 | shield = Instance.new('Part')
| |
| 12 | shield.FormFactor = "Custom" | |
| 13 | shield.Size = Vector3.new(.2,.2,.2) | |
| 14 | shield.BottomSurface = "Smooth" | |
| 15 | shield.TopSurface = "Smooth" | |
| 16 | shield.Anchored = true | |
| 17 | shield.CanCollide = false | |
| 18 | shield.BrickColor = BrickColor.new(0,0,0) | |
| 19 | shield.Transparency = .5 | |
| 20 | mesh = Instance.new("SpecialMesh",shield)
| |
| 21 | mesh.MeshType = "Sphere" | |
| 22 | tele = Instance.new("Part")
| |
| 23 | tele.Anchored = true | |
| 24 | tele.Transparency = .5 | |
| 25 | tele.CanCollide = false | |
| 26 | cil = Instance.new("CylinderMesh",tele)
| |
| 27 | tele.BrickColor = BrickColor.new(1,1,1) | |
| 28 | tele.Size = Vector3.new(5,1,5) | |
| 29 | box = Instance.new("Part")
| |
| 30 | box.Transparency = .5 | |
| 31 | box.Anchored = true | |
| 32 | box.CanCollide = false | |
| 33 | box.FormFactor = Enum.FormFactor.Custom | |
| 34 | box.Size = Vector3.new(.2,.2,.2) | |
| 35 | box.TopSurface = Enum.SurfaceType.Smooth | |
| 36 | box.BottomSurface = Enum.SurfaceType.Smooth | |
| 37 | ||
| 38 | mouse.KeyDown:connect(function(key) | |
| 39 | if key == 'f'then | |
| 40 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
| 41 | local clone = fire:Clone() | |
| 42 | clone.Parent = chr["Right Arm"] | |
| 43 | clone.Color = Color3.new(1,1,1) | |
| 44 | clone.SecondaryColor = clone.Color | |
| 45 | wait(2) | |
| 46 | clone:Destroy() | |
| 47 | local target = mouse.Target | |
| 48 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent) | |
| 49 | victim.Character.Torso.Anchored = true | |
| 50 | while true do | |
| 51 | game:GetService('RunService').RenderStepped:wait()
| |
| 52 | victim.Character.HumanoidRootPart.CFrame = victim.Character.HumanoidRootPart.CFrame + Vector3.new(0,.1,0) | |
| 53 | end | |
| 54 | end | |
| 55 | elseif key == '' then | |
| 56 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
| 57 | local clone = fire:Clone() | |
| 58 | clone.Parent = chr["Right Arm"] | |
| 59 | clone.Color = Color3.new(0.3333333333333333,0.6666666666666667,1) | |
| 60 | clone.SecondaryColor = clone.Color | |
| 61 | wait(2) | |
| 62 | clone:Destroy() | |
| 63 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent) | |
| 64 | local children = victim.Character:GetChildren() | |
| 65 | victim.Character.Humanoid.WalkSpeed = 0 | |
| 66 | victim.Character.Torso.Anchored = true | |
| 67 | for i,v in pairs(children) do | |
| 68 | if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 69 | v.Anchored = true | |
| 70 | v.CanCollide = false | |
| 71 | for i = 0,1,.1 do | |
| 72 | wait() | |
| 73 | v.Transparency = i | |
| 74 | end | |
| 75 | end | |
| 76 | end | |
| 77 | end | |
| 78 | elseif key == 'c' then | |
| 79 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
| 80 | local clone = fire:Clone() | |
| 81 | clone.Parent = chr["Right Arm"] | |
| 82 | clone.Color = Color3.new(1,0,0) | |
| 83 | clone.SecondaryColor = clone.Color | |
| 84 | wait(2) | |
| 85 | clone:Destroy() | |
| 86 | local explosion = Instance.new('Explosion',workspace)
| |
| 87 | explosion.Position = mouse.Target.Position | |
| 88 | end | |
| 89 | elseif key == 'q' then | |
| 90 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
| 91 | local clone = fire:Clone() | |
| 92 | clone.Parent = chr["Right Arm"] | |
| 93 | clone.Color = Color3.new(0,1,0) | |
| 94 | clone.SecondaryColor = clone.Color | |
| 95 | wait(2) | |
| 96 | clone:Destroy() | |
| 97 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent) | |
| 98 | local children = victim.Character:GetChildren() | |
| 99 | victim.Character.Humanoid.WalkSpeed = 0 | |
| 100 | victim.Character.Torso.Anchored = true | |
| 101 | for i,v in pairs(children) do | |
| 102 | if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 103 | wait(.25) | |
| 104 | v.BrickColor = BrickColor.Green() | |
| 105 | v.CanCollide = false | |
| 106 | v.Parent = workspace | |
| 107 | v.Anchored = false | |
| 108 | end | |
| 109 | end | |
| 110 | end | |
| 111 | elseif key == 'r' then | |
| 112 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
| 113 | local clone = fire:Clone() | |
| 114 | clone.Parent = chr["Right Arm"] | |
| 115 | clone.Color = Color3.new(0,0,0) | |
| 116 | clone.SecondaryColor = clone.Color | |
| 117 | wait(2) | |
| 118 | clone:Destroy() | |
| 119 | local ball = shield:Clone() | |
| 120 | ball.Parent = workspace | |
| 121 | ||
| 122 | ball.Touched:connect(function(p) | |
| 123 | if p.Name ~= "Base" and p.Parent ~=chr or p.Name ~= "Base" and p.Parent.Parent ~= chr then | |
| 124 | p:Destroy() | |
| 125 | end | |
| 126 | end) | |
| 127 | ||
| 128 | while ball.Size.Y < 26 do | |
| 129 | game:GetService('RunService').RenderStepped:wait()
| |
| 130 | ball.Size = ball.Size + Vector3.new(.25,.25,.25) | |
| 131 | ball.CFrame = chr.Torso.CFrame | |
| 132 | end | |
| 133 | for i = .5,1,.05 do | |
| 134 | game:GetService('RunService').RenderStepped:wait()
| |
| 135 | ball.Transparency = i | |
| 136 | end | |
| 137 | ball:Destroy() | |
| 138 | end | |
| 139 | elseif key == 't' then | |
| 140 | local dis = shield:Clone() | |
| 141 | local telep = tele:Clone() | |
| 142 | telep.Parent = workspace | |
| 143 | dis.Parent = workspace | |
| 144 | dis.BrickColor = BrickColor.new(1,1,1) | |
| 145 | for i = 1,25 do | |
| 146 | game:GetService('RunService').RenderStepped:wait()
| |
| 147 | dis.Size = dis.Size + Vector3.new(.35,.35,.35) | |
| 148 | dis.CFrame = chr.Torso.CFrame | |
| 149 | telep.Size = telep.Size + Vector3.new(0,5,0) | |
| 150 | telep.CFrame = chr.Torso.CFrame | |
| 151 | end | |
| 152 | for i = .5,1,.05 do | |
| 153 | game:GetService('RunService').RenderStepped:wait()
| |
| 154 | dis.Transparency = i | |
| 155 | telep.Transparency = i | |
| 156 | dis.CFrame = chr.Torso.CFrame | |
| 157 | telep.CFrame = chr.Torso.CFrame | |
| 158 | end | |
| 159 | dis:Destroy() | |
| 160 | telep:Destroy() | |
| 161 | chr:SetPrimaryPartCFrame(mouse.Hit+Vector3.new(0,20,0)) | |
| 162 | elseif | |
| 163 | key == 'g' then | |
| 164 | if mouse.Target.Name == "Torso" or mouse.Target.Name == "Head" or mouse.Target.ClassName == "Part" then | |
| 165 | local target = mouse.Target | |
| 166 | local clone = fire:Clone() | |
| 167 | clone.Parent = chr["Right Arm"] | |
| 168 | clone.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)) | |
| 169 | clone.SecondaryColor = clone.Color | |
| 170 | wait(2) | |
| 171 | clone:Destroy() | |
| 172 | local boxB = box:Clone() | |
| 173 | boxB.Parent = target | |
| 174 | boxB.BrickColor = BrickColor.new(math.random(0,1),math.random(0,1),math.random(0,1)) | |
| 175 | local victim = game.Players:GetPlayerFromCharacter(mouse.Target.Parent).Character | |
| 176 | victim.Humanoid.WalkSpeed = 0 | |
| 177 | for i = .2,10,.2 do | |
| 178 | game:GetService('RunService').RenderStepped:wait()
| |
| 179 | boxB.Size = Vector3.new(i,i,i) | |
| 180 | boxB.CFrame = victim.Torso.CFrame | |
| 181 | end | |
| 182 | for i = .5,1,.025 do | |
| 183 | game:GetService('RunService').RenderStepped:wait()
| |
| 184 | boxB.Transparency = i | |
| 185 | end | |
| 186 | wait() | |
| 187 | boxB:Destroy() | |
| 188 | local children = victim:GetChildren() | |
| 189 | for i,v in pairs(children) do | |
| 190 | clone = fire:Clone() | |
| 191 | clone.Parent = v | |
| 192 | clone.Color = Color3.new(1,0,0) | |
| 193 | victim.Humanoid.Health = victim.Humanoid.Health - 10 | |
| 194 | if v.ClassName == "Part" then | |
| 195 | v.BrickColor = BrickColor.Red() | |
| 196 | end | |
| 197 | end | |
| 198 | end | |
| 199 | elseif key == 'h' then | |
| 200 | local clone = fire:Clone() | |
| 201 | clone.Parent = chr["Right Arm"] | |
| 202 | clone.Color = Color3.new(1,1,1) | |
| 203 | clone.SecondaryColor = clone.Color | |
| 204 | wait(.5) | |
| 205 | clone:Destroy() | |
| 206 | local sphere = shield:Clone() | |
| 207 | sphere.Parent = workspace | |
| 208 | sphere.Touched:connect(function(p) | |
| 209 | local debounce = false | |
| 210 | local h = p.Parent:FindFirstChild("Humanoid")
| |
| 211 | if h and h.Parent.Name ~= plr.Name and debounce == false then | |
| 212 | debounce = true | |
| 213 | local dis = shield:Clone() | |
| 214 | local telep = tele:Clone() | |
| 215 | telep.Parent = workspace | |
| 216 | dis.Parent = workspace | |
| 217 | dis.BrickColor = BrickColor.new(1,1,1) | |
| 218 | for i = 1,25 do | |
| 219 | game:GetService('RunService').RenderStepped:wait()
| |
| 220 | dis.Size = dis.Size + Vector3.new(.35,.35,.35) | |
| 221 | dis.CFrame = h.Parent.Torso.CFrame | |
| 222 | telep.Size = telep.Size + Vector3.new(0,5,0) | |
| 223 | telep.CFrame = h.Parent.Torso.CFrame | |
| 224 | end | |
| 225 | for i = .5,1,.05 do | |
| 226 | game:GetService('RunService').RenderStepped:wait()
| |
| 227 | dis.Transparency = i | |
| 228 | telep.Transparency = i | |
| 229 | dis.CFrame = h.Parent.Torso.CFrame | |
| 230 | telep.CFrame = h.Parent.Torso.CFrame | |
| 231 | end | |
| 232 | dis:Destroy() | |
| 233 | telep:Destroy() | |
| 234 | h.Parent:MoveTo(h.Parent.PrimaryPart.Position + Vector3.new(math.random(-50,50),20,math.random(-50,50))) | |
| 235 | wait(5) | |
| 236 | debounce = false | |
| 237 | end | |
| 238 | end) | |
| 239 | for i = .2,25,.5 do | |
| 240 | game:GetService('RunService').RenderStepped:wait()
| |
| 241 | sphere.Size = Vector3.new(i,i,i) | |
| 242 | sphere.CFrame = chr.Torso.CFrame | |
| 243 | end | |
| 244 | for i = .5,1,.05 do | |
| 245 | game:GetService('RunService').RenderStepped:wait()
| |
| 246 | sphere.Transparency = i | |
| 247 | end | |
| 248 | sphere:Destroy() | |
| 249 | elseif key == 'j' and mouse.Target.ClassName == "Part" then | |
| 250 | local target = mouse.Target | |
| 251 | local sword = tele:Clone() | |
| 252 | sword.FormFactor = "Custom" | |
| 253 | sword.BrickColor = BrickColor.new(0,0,0) | |
| 254 | sword.Parent = workspace | |
| 255 | sword.Size = Vector3.new(.2,.2,.2) | |
| 256 | local swordB = sword:Clone() | |
| 257 | swordB.Parent = workspace | |
| 258 | for i = 1,5,.2 do | |
| 259 | game:GetService('RunService').RenderStepped:wait()
| |
| 260 | sword.Size = Vector3.new(.2,i,.2) | |
| 261 | sword.CFrame = chr["Right Arm"].CFrame | |
| 262 | swordB.Size = Vector3.new(.2,i,.2) | |
| 263 | swordB.CFrame = chr["Left Arm"].CFrame | |
| 264 | end | |
| 265 | for i = 1,30 do | |
| 266 | game:GetService('RunService').RenderStepped:wait()
| |
| 267 | swordB.CFrame = chr["Left Arm"].CFrame | |
| 268 | sword.CFrame = chr["Right Arm"].CFrame | |
| 269 | end | |
| 270 | local swordC = sword:Clone() | |
| 271 | swordC.Parent = workspace | |
| 272 | sword.CFrame = target.CFrame + Vector3.new(0,10,0) | |
| 273 | for i = 3,7,.5 do | |
| 274 | game:GetService('RunService').RenderStepped:wait()
| |
| 275 | sword.Size = Vector3.new(.2,i,.2) | |
| 276 | sword.CFrame = target.CFrame + Vector3.new(0,10,0) | |
| 277 | swordB.CFrame = chr["Left Arm"].CFrame | |
| 278 | swordC.CFrame = chr["Right Arm"].CFrame | |
| 279 | end | |
| 280 | for i = 10,0,-.2 do | |
| 281 | game:GetService('RunService').RenderStepped:wait()
| |
| 282 | sword.Rotation = Vector3.new(0,0,0) | |
| 283 | sword.CFrame = target.CFrame + Vector3.new(0,i,0) | |
| 284 | sword.Rotation = Vector3.new(0,0,0) | |
| 285 | swordB.CFrame = chr["Left Arm"].CFrame | |
| 286 | swordC.CFrame = chr["Right Arm"].CFrame | |
| 287 | end | |
| 288 | if target.Parent.ClassName == "Hat" then | |
| 289 | target.Parent.Parent.Humanoid.Health = target.Parent.Parent.Humanoid.Health - 15 | |
| 290 | else | |
| 291 | target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 35 | |
| 292 | end | |
| 293 | for i = .5,1,.05 do | |
| 294 | game:GetService('RunService').RenderStepped:wait()
| |
| 295 | sword.Transparency = i | |
| 296 | swordB.Transparency = i | |
| 297 | swordC.Transparency = i | |
| 298 | end | |
| 299 | sword:Destroy() | |
| 300 | swordB:Destroy() | |
| 301 | swordC:Destroy() | |
| 302 | elseif key == 'k' and mouse.Target and mouse.Target.Parent.ClassName == "Model" and mouse.Target.ClassName == "Part" then | |
| 303 | local target = mouse.Target | |
| 304 | local children = target.Parent:GetChildren() | |
| 305 | for i,v in pairs(children) do | |
| 306 | v.BrickColor = BrickColor.new(1,0,0) | |
| 307 | local clone = fire:Clone() | |
| 308 | clone.Parent = v | |
| 309 | clone.Color = Color3.new(1,0,0) | |
| 310 | wait(.25) | |
| 311 | v:Destroy() | |
| 312 | end | |
| 313 | elseif key == 'x' and mouse.Target.ClassName == "Part" then | |
| 314 | local t = mouse.Target.Transparency | |
| 315 | for i = t,0.7,.02 do | |
| 316 | game:GetService('RunService').RenderStepped:wait()
| |
| 317 | mouse.Target.Transparency = i | |
| 318 | end | |
| 319 | mouse.Target:Destroy() | |
| 320 | elseif key == 'z' then | |
| 321 | local part = Instance.new("Part",workspace)
| |
| 322 | part.CFrame = CFrame.new(50,50,50) | |
| 323 | local bv = Instance.new("BodyVelocity",part)
| |
| 324 | Instance.new("CFrameValue",part)
| |
| 325 | local rotate = Instance.new("BodyAngularVelocity",part)
| |
| 326 | rotate.AngularVelocity = Vector3.new(math.random(3.5,7.5),math.random(3.5,7.5),math.random(3.5,7.5)) | |
| 327 | local cvalue = part:WaitForChild("Value")
| |
| 328 | part.Touched:connect(function(p) | |
| 329 | if p.Name == "Part" or p.Name == "Head" then | |
| 330 | for i = 0,1,.05 do | |
| 331 | game:GetService('RunService').RenderStepped:wait()
| |
| 332 | part.Transparency = i | |
| 333 | p.Transparency = i | |
| 334 | end | |
| 335 | p:Destroy() | |
| 336 | part:Destroy() | |
| 337 | elseif p.Name == "Baseplate" or p.Name == "Base" or p.Name == "BasePlate" then | |
| 338 | cvalue.Value = part.CFrame | |
| 339 | part.Anchored = true | |
| 340 | for i = 10,25,.5 do | |
| 341 | game:GetService('RunService').RenderStepped:wait()
| |
| 342 | part.Size = Vector3.new(i,i,i) | |
| 343 | part.CFrame = cvalue.Value | |
| 344 | end | |
| 345 | for i = 0,1.,.05 do | |
| 346 | game:GetService('RunService').RenderStepped:wait()
| |
| 347 | part.Transparency = i | |
| 348 | - | part.Material = "Slate" |
| 348 | + | |
| 349 | part:Destroy() | |
| 350 | end | |
| 351 | end) | |
| 352 | part.Parent = chr | |
| 353 | part.BrickColor = BrickColor.new(193,1,1) | |
| 354 | part.Material = "ForceField" | |
| 355 | part.Anchored = false | |
| 356 | part.CanCollide = false | |
| 357 | part.Name = "bomb" | |
| 358 | part.FormFactor = "Custom" | |
| 359 | part.Size = Vector3.new(.2,.2,.2) | |
| 360 | part.BottomSurface = "Smooth" | |
| 361 | part.TopSurface = "Smooth" | |
| 362 | local sbox = Instance.new("SelectionBox",part)
| |
| 363 | sbox.Adornee = part | |
| 364 | sbox.Color3 = Color3.new(0,0,0) | |
| 365 | sbox.LineThickness = 0.005 | |
| 366 | sbox.Transparency = .75 | |
| 367 | sbox.SurfaceColor3 = Color3.new(0,0,0) | |
| 368 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge,math.huge) | |
| 369 | for i = 1,9 do | |
| 370 | wait() | |
| 371 | local clone = part:Clone() | |
| 372 | Instance.new("CFrameValue",clone)
| |
| 373 | local rotateB = Instance.new("BodyAngularVelocity",part)
| |
| 374 | rotateB.AngularVelocity = Vector3.new(math.random(5,15),math.random(5,15),math.random(5,15)) | |
| 375 | clone.CFrame = CFrame.new(100,100,100) | |
| 376 | local cvalueB = clone:WaitForChild("Value")
| |
| 377 | wait() | |
| 378 | clone.Parent = chr | |
| 379 | clone.Name = "bomb" | |
| 380 | clone.Touched:connect(function(p) | |
| 381 | if p.Name == "Part" or p.Name == "Head" then | |
| 382 | for i = 0,1,.05 do | |
| 383 | game:GetService('RunService').RenderStepped:wait()
| |
| 384 | clone.Transparency = i | |
| 385 | p.Transparency = i | |
| 386 | end | |
| 387 | p:Destroy() | |
| 388 | clone:Destroy() | |
| 389 | elseif p.Name == "Baseplate" or p.Name == "Base" or p.Name == "BasePlate" then | |
| 390 | cvalueB.Value = clone.CFrame | |
| 391 | clone.Anchored = true | |
| 392 | for i = 10,25,.5 do | |
| 393 | game:GetService('RunService').RenderStepped:wait()
| |
| 394 | clone.Size = Vector3.new(i,i,i) | |
| 395 | clone.CFrame = cvalueB.Value | |
| 396 | end | |
| 397 | for i = 0,1.,.05 do | |
| 398 | game:GetService('RunService').RenderStepped:wait()
| |
| 399 | clone.Transparency = i | |
| 400 | end | |
| 401 | clone:Destroy() | |
| 402 | end | |
| 403 | end) | |
| 404 | end | |
| 405 | local children = chr:GetChildren() | |
| 406 | for i,v in pairs(children) do | |
| 407 | if v.Name == "bomb" then | |
| 408 | for i = .2,10,.5 do | |
| 409 | game:GetService('RunService').RenderStepped:wait()
| |
| 410 | v.Size = Vector3.new(i,i,i) | |
| 411 | v.CFrame = chr.Torso.CFrame * CFrame.Angles(math.random(),math.pi,math.random()) + Vector3.new(0,20,0) | |
| 412 | end | |
| 413 | local bvB = v:WaitForChild("BodyVelocity")
| |
| 414 | bvB.Velocity = mouse.Hit.lookVector*200 | |
| 415 | end | |
| 416 | end | |
| 417 | elseif key == 'e' then | |
| 418 | local kill = Instance.new("Part")
| |
| 419 | local bv = Instance.new("BodyVelocity",kill)
| |
| 420 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 421 | local rotate = Instance.new("BodyAngularVelocity",kill)
| |
| 422 | rotate.AngularVelocity = Vector3.new(math.random(10,20),math.random(10,20),math.random(10,20)) | |
| 423 | kill.CFrame = CFrame.new(50,50,50) | |
| 424 | kill.Touched:connect(function(p) | |
| 425 | if p.Name == "Head" and p.Parent ~= chr or p.Name == "Torso" and p.Parent ~= chr then | |
| 426 | p.Parent.Humanoid.Health = 0 | |
| 427 | p:Destroy() | |
| 428 | for i = 1,10 do | |
| 429 | game:GetService('RunService').RenderStepped:wait()
| |
| 430 | - | kill.Material = "Slate" |
| 430 | + | |
| 431 | kill.Transparency = kill.Transparency - .1 | |
| 432 | end | |
| 433 | end | |
| 434 | end) | |
| 435 | kill.BrickColor = BrickColor.new(0,0,0) | |
| 436 | kill.Material = "ForceField" | |
| 437 | kill.Anchored = false | |
| 438 | kill.CanCollide = false | |
| 439 | kill.FormFactor = "Custom" | |
| 440 | kill.Size = Vector3.new(1,1,1) | |
| 441 | kill.TopSurface = "Smooth" | |
| 442 | kill.BottomSurface = "Smooth" | |
| 443 | wait() | |
| 444 | local sbox = Instance.new("SelectionBox",kill)
| |
| 445 | sbox.Adornee = kill | |
| 446 | sbox.Color3 = Color3.new(1,1,1) | |
| 447 | sbox.LineThickness = .010 | |
| 448 | sbox.Transparency = .5 | |
| 449 | kill.Parent = workspace | |
| 450 | kill.CFrame = chr.Head.CFrame | |
| 451 | wait() | |
| 452 | kill.BodyVelocity.Velocity = mouse.Hit.lookVector*100 | |
| 453 | kill.ChildAdded:connect(function(c) | |
| 454 | for i = 0,1,.2 do | |
| 455 | game:GetService('RunService').RenderStepped:wait()
| |
| 456 | c.Transparency = i | |
| 457 | c.SelectionBox.Transparency = i | |
| 458 | end | |
| 459 | c:Destroy() | |
| 460 | end) | |
| 461 | while kill.Transparency == 0 do | |
| 462 | wait(.09) | |
| 463 | local clone = kill:Clone() | |
| 464 | clone.Anchored = true | |
| 465 | clone.Parent = kill | |
| 466 | clone.CFrame = kill.CFrame | |
| 467 | end | |
| 468 | end | |
| 469 | end) | |
| 470 | --=<=Abilitys above=>=-- | |
| 471 | ew = function(Object, Parent, Name, Data) | |
| 472 | local Object = Instance.new(Object) | |
| 473 | for Index, Value in pairs(Data or {}) do
| |
| 474 | Object[Index] = Value | |
| 475 | end | |
| 476 | Object.Parent = Parent | |
| 477 | Object.Name = Name | |
| 478 | return Object | |
| 479 | end | |
| 480 | ||
| 481 | local Player = game:GetService("Players").LocalPlayer
| |
| 482 | repeat wait(1) until Player.Character | |
| 483 | local Character = Player.Character | |
| 484 | - | z = Instance.new("Sound", Torso)
|
| 484 | + | |
| 485 | - | z.SoundId = "rbxassetid://182096702" -- Put Music ID Here. |
| 485 | + | |
| 486 | - | z.Looped = true |
| 486 | + | |
| 487 | - | z.Volume = 10 |
| 487 | + | |
| 488 | - | wait(.1) |
| 488 | + | |
| 489 | - | z:Play() |
| 489 | + | |
| 490 | - | local Humanoid = Character:findFirstChild("Humanoid")
|
| 490 | + | |
| 491 | - | local Mouse = Player:GetMouse() |
| 491 | + | |
| 492 | local LimbAccess = {LA=true,RA=true,LL=true,RL=true,RJ=true,NJ=true,Weapon=true}
| |
| 493 | - | Character.Sound:Destroy() |
| 493 | + | |
| 494 | - | Humanoid.Animator:Destroy() |
| 494 | + | |
| 495 | local Mode = "Staff" | |
| 496 | function Lerp(a,b,i) -- A = First pos, B = Second Pos, i = Speed | |
| 497 | return a:lerp(b,i) | |
| 498 | end | |
| 499 | Left_Arm = Instance.new("Weld",Torso)
| |
| 500 | Left_Arm.Part0 = Torso | |
| 501 | Left_Arm.Part1 = la | |
| 502 | Left_Arm.Name = "LeftArmJ" | |
| 503 | Left_Arm.C0 = CFrame.new(-1.5,0.5,0) | |
| 504 | Left_Arm.C1 = CFrame.new(0,0.5,0) | |
| 505 | Right_Arm = Instance.new("Weld",Torso)
| |
| 506 | Right_Arm.Part0 = Torso | |
| 507 | Right_Arm.Part1 = ra | |
| 508 | Right_Arm.Name = "RightArmJ" | |
| 509 | Right_Arm.C0 = CFrame.new(1.5,0.5,0) | |
| 510 | Right_Arm.C1 = CFrame.new(0,0.5,0) | |
| 511 | Left_Leg = Instance.new("Weld",Torso)
| |
| 512 | Left_Leg.Part0 = Torso | |
| 513 | Left_Leg.Part1 = ll | |
| 514 | Left_Leg.Name = "LeftLegJ" | |
| 515 | Left_Leg.C0 = CFrame.new(-0.5,-1,0) | |
| 516 | Left_Leg.C1 = CFrame.new(0,1,0) | |
| 517 | Right_Leg = Instance.new("Weld",Torso)
| |
| 518 | Right_Leg.Name = "RightLegJ" | |
| 519 | Right_Leg.Part0 = Torso | |
| 520 | Right_Leg.Part1 = rl | |
| 521 | Right_Leg.C0 = CFrame.new(0.5,-1,0) | |
| 522 | Right_Leg.C1 = CFrame.new(0,1,0) | |
| 523 | Staffw = Instance.new("Weld",Torso)
| |
| 524 | Staffw.Part0 = Torso | |
| 525 | Staffw.Part1 = Handle | |
| 526 | Staffw.Name = "StaffJoint" | |
| 527 | ||
| 528 | local RootJoint = Instance.new("Weld",Character["HumanoidRootPart"])
| |
| 529 | RootJoint.Name = "RootJ" | |
| 530 | RootJoint.Part0 = Character["HumanoidRootPart"] | |
| 531 | RootJoint.Part1 = Torso | |
| 532 | ||
| 533 | local NeckJ = Instance.new("Weld",Torso)
| |
| 534 | NeckJ.Name = "NeckJ" | |
| 535 | NeckJ.Part0 = Torso | |
| 536 | NeckJ.Part1 = Character.Head | |
| 537 | NeckJ.C1 = CFrame.new(0,-1.5,0) | |
| 538 | ||
| 539 | function Change() | |
| 540 | ||
| 541 | end | |
| 542 | _G.MoveCheck1 = false | |
| 543 | _G.SatanState = false | |
| 544 | ||
| 545 | function SpellBinder(SpellID) | |
| 546 | if _G.MoveCheck1 == false then | |
| 547 | _G.MoveCheck1 = true | |
| 548 | if _G.SatanState == false then | |
| 549 | _G.SatanState = true | |
| 550 | ||
| 551 | ID = 357442018 | |
| 552 | _G.SpellBindStuff = 0 | |
| 553 | _G.SpellBind = game:GetObjects("rbxassetid://437368177")[1]
| |
| 554 | _G.SpellBind.Decal.Texture = "rbxassetid://" .. SpellID | |
| 555 | _G.SpellBind.Decal1.Texture = "rbxassetid://" .. SpellID | |
| 556 | _G.SpellBind.Parent = game.Players.LocalPlayer.Character | |
| 557 | _G.SpellBind.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame - game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 35 | |
| 558 | _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, game.Players.LocalPlayer.Character.Torso.Position)* CFrame.Angles(1.6,0,0) | |
| 559 | _G.SpellBind.ParticleEmitter.Color = ColorSequence.new(Color3.new(255,0,0)) | |
| 560 | _G.SpellBind.ParticleEmitter.Size = NumberSequence.new(5) | |
| 561 | ||
| 562 | _G.UnsealEnforca = game:GetService("RunService").RenderStepped:connect(function()
| |
| 563 | _G.SpellBind.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 35 | |
| 564 | _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, game.Players.LocalPlayer.Character.Torso.Position)* CFrame.Angles(1.6,_G.SpellBindStuff,0) | |
| 565 | _G.SpellBindStuff = _G.SpellBindStuff + 0.012 | |
| 566 | end) | |
| 567 | ||
| 568 | ||
| 569 | for i = 1, 117 do | |
| 570 | _G.SpellBind.Size = _G.SpellBind.Size + Vector3.new(0.50,0,0.50) | |
| 571 | wait(0.07) | |
| 572 | end | |
| 573 | ||
| 574 | ||
| 575 | wait(0.1) | |
| 576 | ||
| 577 | _G.chatcustom("You shall not pass!", "Really red", game.Players.LocalPlayer)
| |
| 578 | _G.MoveCheck1 = false | |
| 579 | else | |
| 580 | _G.MoveCheck1 = true | |
| 581 | wait(0.6) | |
| 582 | ||
| 583 | for i = 1, 117 do | |
| 584 | _G.SpellBind.Size = _G.SpellBind.Size - Vector3.new(0.50,0,0.50) | |
| 585 | wait(0.07) | |
| 586 | end | |
| 587 | ||
| 588 | ||
| 589 | _G.UnsealEnforca:disconnect() | |
| 590 | _G.SpellBind.Parent = _G.newParent | |
| 591 | wait(0.1) | |
| 592 | _G.SatanState = false | |
| 593 | _G.MoveCheck1 = false | |
| 594 | end | |
| 595 | end | |
| 596 | end | |
| 597 | ||
| 598 | ||
| 599 | ||
| 600 | _G.ConnectionAgent = Mouse.KeyDown:connect(function(key) | |
| 601 | if key == "q" and State == "Flying" and Active == true then | |
| 602 | State = "Lounge" | |
| 603 | Humanoid.WalkSpeed = 30 | |
| 604 | elseif key == "q" and State == "Lounge" and Active == true then | |
| 605 | State = "Flying" | |
| 606 | Humanoid.WalkSpeed = 20 | |
| 607 | elseif key == "q" and State == "Battle" and Active == true then | |
| 608 | State = "Flying" | |
| 609 | Humanoid.WalkSpeed = 50 | |
| 610 | elseif key == "e" and State == "Battle" and Active == true then | |
| 611 | SpellBinder(375165574) | |
| 612 | elseif key == "e" and Active == true then | |
| 613 | --[[ | |
| 614 | Humanoid.WalkSpeed = 0 | |
| 615 | State = "Changing" | |
| 616 | Mode = "Changing" | |
| 617 | Active = false | |
| 618 | Change() | |
| 619 | --]] | |
| 620 | end | |
| 621 | end) | |
| 622 | ||
| 623 | Player.Character.Humanoid.Died:connect(function() | |
| 624 | _G.ConnectionAgent:disconnect() | |
| 625 | end) | |
| 626 | ||
| 627 | angle = 0 | |
| 628 | angle2 = 0 | |
| 629 | angle3 = 0 | |
| 630 | anglespeed = 2 | |
| 631 | anglespeed2 = 1 | |
| 632 | anglespeed3 = .4 | |
| 633 | game:GetService("RunService").Stepped:connect(function()
| |
| 634 | angle = ((angle % 100) + anglespeed/10) | |
| 635 | angle2 = ((angle2 % 100) + anglespeed2/10) | |
| 636 | angle3 = ((angle3 % 100) + anglespeed3/10) --it'll go from 0 to 100 and repeat in a loop. basically it will get to its destination and back --ok | |
| 637 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Flying" then -- idle | |
| 638 | if not Humanoid.WalkSpeed == 50 then | |
| 639 | Humanoid.WalkSpeed = 50 | |
| 640 | end | |
| 641 | if LimbAccess.RJ then | |
| 642 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2) | |
| 643 | end | |
| 644 | if LimbAccess.LA then | |
| 645 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(0)+math.sin(angle3)*.06),.1) | |
| 646 | end | |
| 647 | if LimbAccess.NJ then | |
| 648 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25) | |
| 649 | end | |
| 650 | if LimbAccess.RA then | |
| 651 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1) | |
| 652 | end | |
| 653 | if LimbAccess.LL then | |
| 654 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
| 655 | end | |
| 656 | if LimbAccess.RL then | |
| 657 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
| 658 | end | |
| 659 | if LimbAccess.Weapon then | |
| 660 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2) | |
| 661 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2) | |
| 662 | end | |
| 663 | elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Flying" then -- walk | |
| 664 | if LimbAccess.RJ then | |
| 665 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2) | |
| 666 | end | |
| 667 | if LimbAccess.LA then | |
| 668 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(7)+math.sin(angle3)*.06),.1) | |
| 669 | end | |
| 670 | if LimbAccess.NJ then | |
| 671 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25) | |
| 672 | end | |
| 673 | if LimbAccess.RA then | |
| 674 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1) | |
| 675 | end | |
| 676 | if LimbAccess.LL then | |
| 677 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
| 678 | end | |
| 679 | if LimbAccess.RL then | |
| 680 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
| 681 | end | |
| 682 | if LimbAccess.Weapon then | |
| 683 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2) | |
| 684 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2) | |
| 685 | end | |
| 686 | end | |
| 687 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Lounge" then -- idle | |
| 688 | if not Humanoid.WalkSpeed == 30 then | |
| 689 | Humanoid.WalkSpeed = 30 | |
| 690 | end | |
| 691 | if LimbAccess.RJ then | |
| 692 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2) | |
| 693 | end | |
| 694 | if LimbAccess.LA then | |
| 695 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-3)+math.sin(angle3)*.06),.1) | |
| 696 | end | |
| 697 | if LimbAccess.NJ then | |
| 698 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
| 699 | end | |
| 700 | if LimbAccess.RA then | |
| 701 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(3)),.1) | |
| 702 | end | |
| 703 | if LimbAccess.LL then | |
| 704 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1) | |
| 705 | end | |
| 706 | if LimbAccess.RL then | |
| 707 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(15)+math.sin(angle3)*-.02),.1) | |
| 708 | end | |
| 709 | if LimbAccess.Weapon then | |
| 710 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2) | |
| 711 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2) | |
| 712 | end | |
| 713 | elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Lounge" then -- walk | |
| 714 | if LimbAccess.RJ then | |
| 715 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2) | |
| 716 | end | |
| 717 | if LimbAccess.LA then | |
| 718 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-23)+math.sin(angle3)*.06),.1) | |
| 719 | end | |
| 720 | if LimbAccess.NJ then | |
| 721 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
| 722 | end | |
| 723 | if LimbAccess.RA then | |
| 724 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(23)),.1) | |
| 725 | end | |
| 726 | if LimbAccess.LL then | |
| 727 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
| 728 | end | |
| 729 | if LimbAccess.RL then | |
| 730 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
| 731 | end | |
| 732 | if LimbAccess.Weapon then | |
| 733 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2) | |
| 734 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2) | |
| 735 | end | |
| 736 | end | |
| 737 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Battle" then -- idle | |
| 738 | if not Humanoid.WalkSpeed == 20 then | |
| 739 | Humanoid.WalkSpeed = 20 | |
| 740 | end | |
| 741 | if LimbAccess.RJ then | |
| 742 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2) | |
| 743 | end | |
| 744 | if LimbAccess.LA then | |
| 745 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1) | |
| 746 | end | |
| 747 | if LimbAccess.NJ then | |
| 748 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
| 749 | end | |
| 750 | if LimbAccess.RA then | |
| 751 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1) | |
| 752 | end | |
| 753 | if LimbAccess.LL then | |
| 754 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1) | |
| 755 | end | |
| 756 | if LimbAccess.RL then | |
| 757 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(5)+math.sin(angle3)*-.02),.1) | |
| 758 | end | |
| 759 | if LimbAccess.Weapon then | |
| 760 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-.5,-1),.2) | |
| 761 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.6,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(-90)),.2) | |
| 762 | end | |
| 763 | elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Battle" then -- walk | |
| 764 | if LimbAccess.RJ then | |
| 765 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,.5+math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2) | |
| 766 | end | |
| 767 | if LimbAccess.LA then | |
| 768 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-.9,0.6,-.8)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1) | |
| 769 | end | |
| 770 | if LimbAccess.NJ then | |
| 771 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
| 772 | end | |
| 773 | if LimbAccess.RA then | |
| 774 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.4,-.3)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1) | |
| 775 | end | |
| 776 | if LimbAccess.LL then | |
| 777 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.7,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1) | |
| 778 | end | |
| 779 | if LimbAccess.RL then | |
| 780 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1) | |
| 781 | end | |
| 782 | if LimbAccess.Weapon then | |
| 783 | Staffw.C0 = Lerp(Staffw.C0,CFrame.new(.4,.5,-1),.2) | |
| 784 | Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.1,0)*CFrame.Angles(math.rad(135),math.rad(120),math.rad(-135)),.2) | |
| 785 | end | |
| 786 | end | |
| 787 | if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Changing" then -- idle | |
| 788 | if LimbAccess.RJ then | |
| 789 | RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2) | |
| 790 | end | |
| 791 | if LimbAccess.LA then | |
| 792 | Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.3,0.51,-.7)*CFrame.Angles(math.rad(5),math.rad(-165),math.rad(-90)),.1) | |
| 793 | end | |
| 794 | if LimbAccess.NJ then | |
| 795 | NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-10),math.rad(0)+(math.sin(-angle3)*.04),0),.25) | |
| 796 | end | |
| 797 | if LimbAccess.RA then | |
| 798 | Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.3,0.49,-.7)*CFrame.Angles(math.rad(5),math.rad(165),math.rad(90)),.1) | |
| 799 | end | |
| 800 | if LimbAccess.LL then | |
| 801 | Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-1,-1,-.4)*CFrame.Angles(0,math.rad(25),math.rad(75)),.1) | |
| 802 | end | |
| 803 | if LimbAccess.RL then | |
| 804 | Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(1,-1,-.4)*CFrame.Angles(0,math.rad(-25),math.rad(-75)),.1) | |
| 805 | end | |
| 806 | end | |
| 807 | end) | |
| 808 | ||
| 809 | Player = game:GetService("Players").LocalPlayer
| |
| 810 | Cha = Player.Character | |
| 811 | rarm=Cha["Right Arm"] | |
| 812 | larm=Cha["Left Arm"] | |
| 813 | rar=Cha["Right Leg"] | |
| 814 | lar=Cha["Left Leg"] | |
| 815 | ||
| 816 | Handle = Instance.new("Part",Cha)
| |
| 817 | Handle.TopSurface = "Smooth" | |
| 818 | Handle.BottomSurface = "Smooth" | |
| 819 | Handle.Size = Vector3.new(1,1,1) | |
| 820 | Handle.CanCollide = false | |
| 821 | Handle.Transparency = 0 | |
| 822 | Handle.BrickColor = BrickColor.new("Crimson")
| |
| 823 | HandleMesh = Instance.new("SpecialMesh", Handle)
| |
| 824 | HandleMesh.MeshType = "Brick" | |
| 825 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
| 826 | HandleWeld = Instance.new("Weld",Cha)
| |
| 827 | HandleWeld.Part0 = rarm | |
| 828 | HandleWeld.Part1 = Handle | |
| 829 | HandleWeld.C1 = CFrame.new(0, 0.4, 0) | |
| 830 | ||
| 831 | ||
| 832 | Hand = Instance.new("Part",Cha)
| |
| 833 | Hand.TopSurface = "Smooth" | |
| 834 | Hand.BottomSurface = "Smooth" | |
| 835 | Hand.Size = Vector3.new(1,1,1) | |
| 836 | Hand.CanCollide = false | |
| 837 | Hand.Transparency = 0 | |
| 838 | Hand.BrickColor = BrickColor.new("Royal purple")
| |
| 839 | HandMesh = Instance.new("SpecialMesh", Hand)
| |
| 840 | HandMesh.MeshType = "Brick" | |
| 841 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
| 842 | HandWeld = Instance.new("Weld",Cha)
| |
| 843 | HandWeld.Part0 = rarm | |
| 844 | HandWeld.Part1 = Hand | |
| 845 | HandWeld.C1 = CFrame.new(0, 0.4, 0) | |
| 846 | ||
| 847 | Handle = Instance.new("Part",Cha)
| |
| 848 | Handle.TopSurface = "Smooth" | |
| 849 | Handle.BottomSurface = "Smooth" | |
| 850 | Handle.Size = Vector3.new(1,1,1) | |
| 851 | Handle.CanCollide = false | |
| 852 | Handle.Transparency = 0 | |
| 853 | Handle.BrickColor = BrickColor.new("Crimson")
| |
| 854 | HandleMesh = Instance.new("SpecialMesh", Handle)
| |
| 855 | HandleMesh.MeshType = "Brick" | |
| 856 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
| 857 | HandleWeld = Instance.new("Weld",Cha)
| |
| 858 | HandleWeld.Part0 = larm | |
| 859 | HandleWeld.Part1 = Handle | |
| 860 | HandleWeld.C1 = CFrame.new(0, 0.4, 0) | |
| 861 | ||
| 862 | ||
| 863 | Hand = Instance.new("Part",Cha)
| |
| 864 | Hand.TopSurface = "Smooth" | |
| 865 | Hand.BottomSurface = "Smooth" | |
| 866 | Hand.Size = Vector3.new(1,1,1) | |
| 867 | Hand.CanCollide = false | |
| 868 | Hand.Transparency = 0 | |
| 869 | Hand.BrickColor = BrickColor.new("Royal purple")
| |
| 870 | HandMesh = Instance.new("SpecialMesh", Hand)
| |
| 871 | HandMesh.MeshType = "Brick" | |
| 872 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
| 873 | HandWeld = Instance.new("Weld",Cha)
| |
| 874 | HandWeld.Part0 = larm | |
| 875 | HandWeld.Part1 = Hand | |
| 876 | HandWeld.C1 = CFrame.new(0, 0.4, 0) | |
| 877 | ||
| 878 | Handle = Instance.new("Part",Cha)
| |
| 879 | Handle.TopSurface = "Smooth" | |
| 880 | Handle.BottomSurface = "Smooth" | |
| 881 | Handle.Size = Vector3.new(1,1,1) | |
| 882 | Handle.CanCollide = false | |
| 883 | Handle.Transparency = 0 | |
| 884 | Handle.BrickColor = BrickColor.new("Crimson")
| |
| 885 | HandleMesh = Instance.new("SpecialMesh", Handle)
| |
| 886 | HandleMesh.MeshType = "Brick" | |
| 887 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
| 888 | HandleWeld = Instance.new("Weld",Cha)
| |
| 889 | HandleWeld.Part0 = larm | |
| 890 | HandleWeld.Part1 = Handle | |
| 891 | HandleWeld.C1 = CFrame.new(0, 0.2, 0) | |
| 892 | ||
| 893 | ||
| 894 | Hand = Instance.new("Part",Cha)
| |
| 895 | Hand.TopSurface = "Smooth" | |
| 896 | Hand.BottomSurface = "Smooth" | |
| 897 | Hand.Size = Vector3.new(1,1,1) | |
| 898 | Hand.CanCollide = false | |
| 899 | Hand.Transparency = 0 | |
| 900 | Hand.BrickColor = BrickColor.new("Bright green")
| |
| 901 | HandMesh = Instance.new("SpecialMesh", Hand)
| |
| 902 | HandMesh.MeshType = "Brick" | |
| 903 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
| 904 | HandWeld = Instance.new("Weld",Cha)
| |
| 905 | HandWeld.Part0 = larm | |
| 906 | HandWeld.Part1 = Hand | |
| 907 | HandWeld.C1 = CFrame.new(0, 0.2, 0) | |
| 908 | ||
| 909 | Handle = Instance.new("Part",Cha)
| |
| 910 | Handle.TopSurface = "Smooth" | |
| 911 | Handle.BottomSurface = "Smooth" | |
| 912 | Handle.Size = Vector3.new(1,1,1) | |
| 913 | Handle.CanCollide = false | |
| 914 | Handle.Transparency = 0 | |
| 915 | Handle.BrickColor = BrickColor.new("Crimson")
| |
| 916 | HandleMesh = Instance.new("SpecialMesh", Handle)
| |
| 917 | HandleMesh.MeshType = "Brick" | |
| 918 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
| 919 | HandleWeld = Instance.new("Weld",Cha)
| |
| 920 | HandleWeld.Part0 = rarm | |
| 921 | HandleWeld.Part1 = Handle | |
| 922 | HandleWeld.C1 = CFrame.new(0, 0.2, 0) | |
| 923 | ||
| 924 | ||
| 925 | Hand = Instance.new("Part",Cha)
| |
| 926 | Hand.TopSurface = "Smooth" | |
| 927 | Hand.BottomSurface = "Smooth" | |
| 928 | Hand.Size = Vector3.new(1,1,1) | |
| 929 | Hand.CanCollide = false | |
| 930 | Hand.Transparency = 0 | |
| 931 | Hand.BrickColor = BrickColor.new("Bright green")
| |
| 932 | HandMesh = Instance.new("SpecialMesh", Hand)
| |
| 933 | HandMesh.MeshType = "Brick" | |
| 934 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
| 935 | HandWeld = Instance.new("Weld",Cha)
| |
| 936 | HandWeld.Part0 = rarm | |
| 937 | HandWeld.Part1 = Hand | |
| 938 | HandWeld.C1 = CFrame.new(0, 0.2, 0) | |
| 939 | ||
| 940 | Handle = Instance.new("Part",Cha)
| |
| 941 | Handle.TopSurface = "Smooth" | |
| 942 | Handle.BottomSurface = "Smooth" | |
| 943 | Handle.Size = Vector3.new(1,1,1) | |
| 944 | Handle.CanCollide = false | |
| 945 | Handle.Transparency = 0 | |
| 946 | Handle.BrickColor = BrickColor.new("Crimson")
| |
| 947 | HandleMesh = Instance.new("SpecialMesh", Handle)
| |
| 948 | HandleMesh.MeshType = "Brick" | |
| 949 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
| 950 | HandleWeld = Instance.new("Weld",Cha)
| |
| 951 | HandleWeld.Part0 = rarm | |
| 952 | HandleWeld.Part1 = Handle | |
| 953 | HandleWeld.C1 = CFrame.new(0, 0.6, 0) | |
| 954 | ||
| 955 | ||
| 956 | Hand = Instance.new("Part",Cha)
| |
| 957 | Hand.TopSurface = "Smooth" | |
| 958 | Hand.BottomSurface = "Smooth" | |
| 959 | Hand.Size = Vector3.new(1,1,1) | |
| 960 | Hand.CanCollide = false | |
| 961 | Hand.Transparency = 0 | |
| 962 | Hand.BrickColor = BrickColor.new("Bright green")
| |
| 963 | HandMesh = Instance.new("SpecialMesh", Hand)
| |
| 964 | HandMesh.MeshType = "Brick" | |
| 965 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
| 966 | HandWeld = Instance.new("Weld",Cha)
| |
| 967 | HandWeld.Part0 = rarm | |
| 968 | HandWeld.Part1 = Hand | |
| 969 | HandWeld.C1 = CFrame.new(0, 0.6, 0) | |
| 970 | ||
| 971 | Handle = Instance.new("Part",Cha)
| |
| 972 | Handle.TopSurface = "Smooth" | |
| 973 | Handle.BottomSurface = "Smooth" | |
| 974 | Handle.Size = Vector3.new(1,1,1) | |
| 975 | Handle.CanCollide = false | |
| 976 | Handle.Transparency = 0 | |
| 977 | Handle.BrickColor = BrickColor.new("Crimson")
| |
| 978 | HandleMesh = Instance.new("SpecialMesh", Handle)
| |
| 979 | HandleMesh.MeshType = "Brick" | |
| 980 | HandleMesh.Scale = Vector3.new(1.01,0.5,1.01) | |
| 981 | HandleWeld = Instance.new("Weld",Cha)
| |
| 982 | HandleWeld.Part0 = larm | |
| 983 | HandleWeld.Part1 = Handle | |
| 984 | HandleWeld.C1 = CFrame.new(0, 0.6, 0) | |
| 985 | ||
| 986 | ||
| 987 | Hand = Instance.new("Part",Cha)
| |
| 988 | Hand.TopSurface = "Smooth" | |
| 989 | Hand.BottomSurface = "Smooth" | |
| 990 | Hand.Size = Vector3.new(1,1,1) | |
| 991 | Hand.CanCollide = false | |
| 992 | Hand.Transparency = 0 | |
| 993 | Hand.BrickColor = BrickColor.new("Bright green")
| |
| 994 | HandMesh = Instance.new("SpecialMesh", Hand)
| |
| 995 | HandMesh.MeshType = "Brick" | |
| 996 | HandMesh.Scale = Vector3.new(1.02,0.1,1.02) | |
| 997 | HandWeld = Instance.new("Weld",Cha)
| |
| 998 | HandWeld.Part0 = larm | |
| 999 | HandWeld.Part1 = Hand | |
| 1000 | HandWeld.C1 = CFrame.new(0, 0.6, 0) | |
| 1001 | ||
| 1002 | wait(0.1) | |
| 1003 | ||
| 1004 | rs = game:GetService'RunService' | |
| 1005 | plrs = game:GetService'Players' | |
| 1006 | lp = plrs.LocalPlayer | |
| 1007 | c = lp.Character | |
| 1008 | root = lp.Character.HumanoidRootPart | |
| 1009 | human = c.Humanoid | |
| 1010 | FPS = 0 | |
| 1011 | inf = 0 | |
| 1012 | opos1 = Vector3.new(1) | |
| 1013 | opos2 = Vector3.new(2) | |
| 1014 | opos3 = Vector3.new(3) | |
| 1015 | waves = Instance.new("Model", c)
| |
| 1016 | res = Instance.new("Model", c)
| |
| 1017 | ||
| 1018 | local function b() | |
| 1019 | local t=tick(); | |
| 1020 | local l=t%1*3; | |
| 1021 | local t=.5*math.pi*(l%1); | |
| 1022 | if l<0.5 then | |
| 1023 | return Color3.new(47,0,32); | |
| 1024 | elseif l<2 then | |
| 1025 | return Color3.new(193,0,0); | |
| 1026 | else | |
| 1027 | return Color3.new(0,10,0); | |
| 1028 | end; | |
| 1029 | end; | |
| 1030 | speedParts = function() | |
| 1031 | for i = 1, 4 do | |
| 1032 | local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -c.HumanoidRootPart.Velocity / 5) * (math.sin(tick()) + 2) | |
| 1033 | local CFramepos = root.CFrame:toWorldSpace(CFrame.new(pos)).p | |
| 1034 | local opos | |
| 1035 | if i == 1 then | |
| 1036 | opos = opos1 | |
| 1037 | elseif i == 2 then | |
| 1038 | opos = opos2 | |
| 1039 | else | |
| 1040 | opos = opos3 | |
| 1041 | end | |
| 1042 | if human.MoveDirection ~= Vector3.new(7, 8, 9) then | |
| 1043 | local e | |
| 1044 | if #res:children() <= 3 then | |
| 1045 | e = Instance.new("Part")
| |
| 1046 | else | |
| 1047 | e = res:FindFirstChild("Tail")
| |
| 1048 | end | |
| 1049 | e.Parent = waves | |
| 1050 | e.Anchored = true | |
| 1051 | e.CanCollide = false | |
| 1052 | e.Transparency = 0 | |
| 1053 | e.Material = "ForceField" | |
| 1054 | e.Name = "Tail" | |
| 1055 | e.Color = b(); --Color = a(); | |
| 1056 | e.Size = Vector3.new(.2, (CFramepos - opos).magnitude, .2) | |
| 1057 | - | e.Material = "Slate" |
| 1057 | + | |
| 1058 | end | |
| 1059 | if i == 1 then | |
| 1060 | opos1 = CFramepos | |
| 1061 | elseif i == 2 then | |
| 1062 | opos2 = CFramepos | |
| 1063 | else | |
| 1064 | opos3 = CFramepos | |
| 1065 | end | |
| 1066 | end | |
| 1067 | end | |
| 1068 | ||
| 1069 | rs.RenderStepped:connect(function() | |
| 1070 | FPS = 1 / rs.RenderStepped:wait() | |
| 1071 | for i, v in pairs (waves:children()) do | |
| 1072 | v.Transparency = v.Transparency + .05 / (FPS / 60) | |
| 1073 | if v.Transparency >= .98 then | |
| 1074 | v.Transparency = 1 | |
| 1075 | v.Parent = res | |
| 1076 | end | |
| 1077 | end | |
| 1078 | inf = inf + (8 + root.Velocity.magnitude / 15) / (FPS / 60) | |
| 1079 | speedParts() | |
| 1080 | end) | |
| 1081 | ||
| 1082 | local p = game.Players.LocalPlayer | |
| 1083 | local char = p.Character | |
| 1084 | local size = 15 | |
| 1085 | part = function() | |
| 1086 | ||
| 1087 | local a = Instance.new("Part", script)
| |
| 1088 | a.Anchored = true | |
| 1089 | a.CanCollide = true | |
| 1090 | a.CFrame = char.Torso.CFrame | |
| 1091 | a.Size = Vector3.new(size, 0.2, 0.2) | |
| 1092 | a.Transparency = 5 | |
| 1093 | return a | |
| 1094 | end | |
| 1095 | ||
| 1096 | part2 = function() | |
| 1097 | ||
| 1098 | local a = Instance.new("Part", script)
| |
| 1099 | a.Anchored = true | |
| 1100 | a.CanCollide = true | |
| 1101 | a.CFrame = char.Torso.CFrame | |
| 1102 | a.Size = Vector3.new(0.2, size, 0.2) | |
| 1103 | a.Transparency = 5 | |
| 1104 | return a | |
| 1105 | end | |
| 1106 | ||
| 1107 | part3 = function() | |
| 1108 | ||
| 1109 | local a = Instance.new("Part", script)
| |
| 1110 | a.Anchored = true | |
| 1111 | a.CanCollide = false | |
| 1112 | a.Size = Vector3.new(size, size, 1) | |
| 1113 | a.Transparency = 5 | |
| 1114 | a.Material = "ForceField" | |
| 1115 | a.BrickColor = BrickColor.new("Really black")
| |
| 1116 | local b = Instance.new("BlockMesh", a)
| |
| 1117 | b.Scale = Vector3.new(1, 1, 0) | |
| 1118 | - | a.Material = "Neon" |
| 1118 | + | |
| 1119 | end | |
| 1120 | ||
| 1121 | local replicating = false | |
| 1122 | local root, a, b, c, d, a2, b2, c2, d2, aa, bb, cc, dd, z, x, c, v, b, n = nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil | |
| 1123 | replicate = function() | |
| 1124 | ||
| 1125 | replicating = true | |
| 1126 | script:ClearAllChildren() | |
| 1127 | root = part() | |
| 1128 | root.Transparency = 5 | |
| 1129 | root.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 1130 | root.CanCollide = false | |
| 1131 | a = part() | |
| 1132 | b = part() | |
| 1133 | c = part() | |
| 1134 | d = part() | |
| 1135 | a2 = part() | |
| 1136 | b2 = part() | |
| 1137 | c2 = part() | |
| 1138 | d2 = part() | |
| 1139 | aa = part2() | |
| 1140 | bb = part2() | |
| 1141 | cc = part2() | |
| 1142 | dd = part2() | |
| 1143 | z = part3() | |
| 1144 | x = part3() | |
| 1145 | c = part3() | |
| 1146 | v = part3() | |
| 1147 | b = part3() | |
| 1148 | n = part3() | |
| 1149 | replicating = false | |
| 1150 | end | |
| 1151 | ||
| 1152 | script.ChildRemoved:connect(function(a) | |
| 1153 | ||
| 1154 | if a.ClassName == "Part" and replicating == false then | |
| 1155 | replicate() | |
| 1156 | end | |
| 1157 | end | |
| 1158 | ) | |
| 1159 | replicate() | |
| 1160 | local tick = 0 | |
| 1161 | CreateRegion3FromLocAndSize = function(Position, Size) | |
| 1162 | ||
| 1163 | local SizeOffset = Size / 2 | |
| 1164 | local Point1 = Position - SizeOffset | |
| 1165 | local Point2 = Position + SizeOffset | |
| 1166 | return Region3.new(Point1, Point2) | |
| 1167 | end | |
| 1168 | ||
| 1169 | local set = false | |
| 1170 | local whitelist = {""}
| |
| 1171 | p.Chatted:connect(function(ms) | |
| 1172 | ||
| 1173 | if ms:sub(1, 5) == "size-" then | |
| 1174 | size = tonumber(ms:sub(6)) | |
| 1175 | replicate() | |
| 1176 | else | |
| 1177 | if ms:sub(1, 4) == "set-" then | |
| 1178 | set = true | |
| 1179 | z.CanCollide = false | |
| 1180 | x.CanCollide = false | |
| 1181 | c.CanCollide = false | |
| 1182 | v.CanCollide = false | |
| 1183 | b.CanCollide = false | |
| 1184 | n.CanCollide = false | |
| 1185 | else | |
| 1186 | if ms:sub(1, 6) == "unset-" then | |
| 1187 | set = false | |
| 1188 | z.CanCollide = false | |
| 1189 | x.CanCollide = false | |
| 1190 | c.CanCollide = false | |
| 1191 | v.CanCollide = false | |
| 1192 | b.CanCollide = false | |
| 1193 | n.CanCollide = false | |
| 1194 | else | |
| 1195 | if ms:sub(1, 10) == "whitelist-" then | |
| 1196 | table.insert(whitelist, ms:sub(11)) | |
| 1197 | else | |
| 1198 | if ms:sub(1, 12) == "unwhitelist-" then | |
| 1199 | for i,v in pairs(whitelist) do | |
| 1200 | if ms:sub(13) == v then | |
| 1201 | table.remove(whitelist, i) | |
| 1202 | break | |
| 1203 | end | |
| 1204 | end | |
| 1205 | end | |
| 1206 | end | |
| 1207 | end | |
| 1208 | end | |
| 1209 | end | |
| 1210 | end | |
| 1211 | ) | |
| 1212 | local magicpos = nil | |
| 1213 | game:GetService("RunService").Heartbeat:connect(function()
| |
| 1214 | ||
| 1215 | pcall(function() | |
| 1216 | ||
| 1217 | local void = char:GetChildren() | |
| 1218 | for _,pl in pairs(whitelist) do | |
| 1219 | if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then | |
| 1220 | for i,v in pairs(game.Players[pl].Character:GetChildren()) do | |
| 1221 | table.insert(void, v) | |
| 1222 | end | |
| 1223 | end | |
| 1224 | end | |
| 1225 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 1226 | if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then | |
| 1227 | v:LoadCharacter() | |
| 1228 | end | |
| 1229 | end | |
| 1230 | char.Humanoid.Health = math.huge | |
| 1231 | tick = tick + 0.01 | |
| 1232 | if not set then | |
| 1233 | root.CFrame = root.CFrame:lerp(CFrame.new(char.Torso.CFrame.p) * CFrame.Angles(math.sin(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2)), 0.1) | |
| 1234 | magicpos = char.Torso.CFrame | |
| 1235 | else | |
| 1236 | root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05) | |
| 1237 | end | |
| 1238 | local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size)) | |
| 1239 | for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do | |
| 1240 | if v.Name ~= "Base" then | |
| 1241 | v:Destroy() | |
| 1242 | end | |
| 1243 | end | |
| 1244 | a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 1245 | b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 1246 | c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2) | |
| 1247 | d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2) | |
| 1248 | a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 1249 | b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 1250 | c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2) | |
| 1251 | d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2) | |
| 1252 | aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2) | |
| 1253 | bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2) | |
| 1254 | cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2) | |
| 1255 | dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2) | |
| 1256 | z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 1257 | x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 1258 | c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1259 | v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1260 | b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1261 | n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1262 | end | |
| 1263 | ) | |
| 1264 | end | |
| 1265 | ) | |
| 1266 | --=<=Skin=>=-- | |
| 1267 | Player=game:GetService('Players').LocalPlayer
| |
| 1268 | local p = game.Players.LocalPlayer | |
| 1269 | local char = p.Character | |
| 1270 | local mouse = p:GetMouse() | |
| 1271 | local larm = char["Left Arm"] | |
| 1272 | local rarm = char["Right Arm"] | |
| 1273 | local lleg = char["Left Leg"] | |
| 1274 | local rleg = char["Right Leg"] | |
| 1275 | local hed = char.Head | |
| 1276 | local torso = char.Torso | |
| 1277 | local hum = char.Humanoid | |
| 1278 | local cam = game.Workspace.CurrentCamera | |
| 1279 | local root = char.HumanoidRootPart | |
| 1280 | local deb = false | |
| 1281 | local shot = 0 | |
| 1282 | local debris=game:service"Debris" | |
| 1283 | local l = game:GetService("Lighting")
| |
| 1284 | local rs = game:GetService("RunService").RenderStepped
| |
| 1285 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 1286 | math.randomseed(os.time()) | |
| 1287 | for i,v in pairs(char:children()) do | |
| 1288 | if v:IsA("Hat") then
| |
| 1289 | v:Destroy() | |
| 1290 | end | |
| 1291 | end | |
| 1292 | for i,v in pairs (hed:GetChildren()) do | |
| 1293 | if v:IsA("Sound") then
| |
| 1294 | v:Destroy() | |
| 1295 | end | |
| 1296 | end | |
| 1297 | ---------------------------------------------------- | |
| 1298 | Debounces = {
| |
| 1299 | CanAttack = true; | |
| 1300 | NoIdl = false; | |
| 1301 | Slashing = false; | |
| 1302 | Slashed = false; | |
| 1303 | RPunch = false; | |
| 1304 | RPunched = false; | |
| 1305 | LPunch = false; | |
| 1306 | LPunched = false; | |
| 1307 | } | |
| 1308 | local Touche = {char.Name, }
| |
| 1309 | ---------------------------------------------------- | |
| 1310 | hed.face.Texture = "" | |
| 1311 | char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
| |
| 1312 | char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
| |
| 1313 | char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
| |
| 1314 | char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
| |
| 1315 | char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
| |
| 1316 | char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
| |
| 1317 | ---------------------------------------------------- | |
| 1318 | ypcall(function() | |
| 1319 | char.Shirt:Destroy() | |
| 1320 | char.Pants:Destroy() | |
| 1321 | shirt = Instance.new("Shirt", char)
| |
| 1322 | shirt.Name = "Shirt" | |
| 1323 | pants = Instance.new("Pants", char)
| |
| 1324 | pants.Name = "Pants" | |
| 1325 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
| 1326 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
| 1327 | end) |