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