SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
| 52 | end | |
| 53 | for _,t in pairs(CAS.Actions) do | |
| 54 | for _,k in pairs(t.Keys) do | |
| 55 | if k==io.KeyCode then | |
| 56 | t.Function(t.Name,io.UserInputState,io) | |
| 57 | end | |
| 58 | end | |
| 59 | end | |
| 60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 62 | end | |
| 63 | end) | |
| 64 | Event.Parent = NLS([==[ | |
| 65 | local Player = game:GetService("Players").LocalPlayer
| |
| 66 | local Event = script:WaitForChild("UserInput_Event")
| |
| 67 | local Mouse = Player:GetMouse() | |
| 68 | local UIS = game:GetService("UserInputService")
| |
| 69 | local input = function(io,a) | |
| 70 | if a then return end | |
| 71 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 73 | end | |
| 74 | UIS.InputBegan:Connect(input) | |
| 75 | UIS.InputEnded:Connect(input) | |
| 76 | local h,t | |
| 77 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 78 | --If player is not moving their mouse, client won't fire events | |
| 79 | while wait(1/30) do | |
| 80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 81 | h,t=Mouse.Hit,Mouse.Target | |
| 82 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 83 | end | |
| 84 | end]==],Player.Character) | |
| 85 | ||
| 86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 87 | --Real game object | |
| 88 | local _rg = game | |
| 89 | ||
| 90 | --Metatable for fake service | |
| 91 | local fsmt = {
| |
| 92 | __index = function(self,k) | |
| 93 | local s = rawget(self,"_RealService") | |
| 94 | if s then | |
| 95 | return typeof(s[k])=="function" | |
| 96 | and function(_,...)return s[k](s,...)end or s[k] | |
| 97 | end | |
| 98 | end, | |
| 99 | __newindex = function(self,k,v) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then s[k]=v end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return rawget(self,s) or _rg:GetService(s) | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | RunService = FakeService({
| |
| 120 | _btrs = {},
| |
| 121 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 122 | BindToRenderStep = function(self,name,_,fun) | |
| 123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 124 | end, | |
| 125 | UnbindFromRenderStep = function(self,name) | |
| 126 | self._btrs[name]:Disconnect() | |
| 127 | end, | |
| 128 | },"RunService") | |
| 129 | } | |
| 130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 131 | g.service = g.GetService | |
| 132 | FakeService(g,game) | |
| 133 | --Changing owner to fake player object to support owner:GetMouse() | |
| 134 | game,owner = g,g.Players.LocalPlayer | |
| 135 | end | |
| 136 | -----------/The final explosion\\----------- | |
| 137 | --[[Movelist | |
| 138 | Instant explosion. | |
| 139 | ---------]] | |
| 140 | ||
| 141 | Player=game:GetService("Players").LocalPlayer
| |
| 142 | Character=Player.Character | |
| 143 | Character.Humanoid.Name = "noneofurbusiness" | |
| 144 | hum = Character.noneofurbusiness | |
| 145 | LeftArm=Character["Left Arm"] | |
| 146 | LeftLeg=Character["Left Leg"] | |
| 147 | RightArm=Character["Right Arm"] | |
| 148 | RightLeg=Character["Right Leg"] | |
| 149 | Root=Character["HumanoidRootPart"] | |
| 150 | Head=Character["Head"] | |
| 151 | Torso=Character["Torso"] | |
| 152 | Neck=Torso["Neck"] | |
| 153 | place = Torso | |
| 154 | hum.WalkSpeed = 0 | |
| 155 | hum.JumpPower = 0 | |
| 156 | ||
| 157 | screenGui = Instance.new("ScreenGui")
| |
| 158 | screenGui.Parent = script.Parent | |
| 159 | speech = Instance.new("Sound",workspace)
| |
| 160 | speech.SoundId = "rbxassetid://2124080151" | |
| 161 | speech.Volume = 10 | |
| 162 | speech:Play() | |
| 163 | framee = Instance.new("Frame")
| |
| 164 | framee.Parent = screenGui | |
| 165 | framee.Position = UDim2.new(0, 8, 0, -500) | |
| 166 | framee.Size = UDim2.new(100000000,10000000,10000000,10000000) | |
| 167 | framee.BackgroundColor3 = BrickColor.new("White").Color
| |
| 168 | framee.BackgroundTransparency = 1 | |
| 169 | for i = 1, 10 do | |
| 170 | framee.BackgroundTransparency = framee.BackgroundTransparency - .1 | |
| 171 | wait() | |
| 172 | end | |
| 173 | imageLabelo = Instance.new("ImageLabel")
| |
| 174 | imageLabelo.Parent = screenGui | |
| 175 | imageLabelo.BackgroundTransparency = 1 | |
| 176 | imageLabelo.ImageTransparency = 0 | |
| 177 | imageLabelo.Position = UDim2.new(0, 0, 0, -50) | |
| 178 | imageLabelo.Size = UDim2.new(0, 1370, 0, 750) | |
| 179 | imageLabelo.Image = "rbxassetid://2124079039" | |
| 180 | wait(6) | |
| 181 | imageLabelo2 = Instance.new("ImageLabel")
| |
| 182 | imageLabelo2.Parent = screenGui | |
| 183 | imageLabelo2.BackgroundTransparency = 1 | |
| 184 | imageLabelo2.ImageTransparency = 1 | |
| 185 | imageLabelo2.Position = UDim2.new(0, 0, 0, -50) | |
| 186 | imageLabelo2.Size = UDim2.new(0, 1370, 0, 750) | |
| 187 | imageLabelo2.Image = "rbxassetid://2124078787" | |
| 188 | for i = 1, 50 do | |
| 189 | imageLabelo.ImageTransparency = imageLabelo.ImageTransparency + 0.025 | |
| 190 | imageLabelo2.ImageTransparency = imageLabelo2.ImageTransparency - 0.025 | |
| 191 | wait() | |
| 192 | end | |
| 193 | wait(2.9) | |
| 194 | for i = 1, 10 do | |
| 195 | framee.BackgroundTransparency = framee.BackgroundTransparency + .1 | |
| 196 | imageLabelo2.ImageTransparency = imageLabelo2.ImageTransparency + .1 | |
| 197 | wait() | |
| 198 | end | |
| 199 | imageLabelo:Remove() | |
| 200 | imageLabelo2:Remove() | |
| 201 | ||
| 202 | pcall(function() | |
| 203 | ||
| 204 | camera = workspace.CurrentCamera | |
| 205 | camera.CameraType = Enum.CameraType.Scriptable | |
| 206 | camera.CoordinateFrame = Torso.CFrame * CFrame.new(0,5,-15) * CFrame.Angles(0,math.rad(180),0) | |
| 207 | coroutine.wrap(function() | |
| 208 | for i = 1, 75 do | |
| 209 | wait() | |
| 210 | end | |
| 211 | gf = 5 | |
| 212 | fg = -30 | |
| 213 | for i = 1, 580 do | |
| 214 | gf = gf + 0 | |
| 215 | fg = fg + 2.5 | |
| 216 | camera.CoordinateFrame = Torso.CFrame * CFrame.new(0,5 + gf,-15 - fg ) * CFrame.Angles(0,math.rad(180),0) | |
| 217 | wait() | |
| 218 | end | |
| 219 | for i = 1, 250 do | |
| 220 | wait() | |
| 221 | end | |
| 222 | coroutine.wrap(function() | |
| 223 | for i = 1, 1000 do | |
| 224 | for i,v in pairs(hum.Parent:GetDescendants()) do | |
| 225 | if v:IsA("Part") then v.Transparency = v.Transparency + 0.025
| |
| 226 | end | |
| 227 | end | |
| 228 | wait() | |
| 229 | end | |
| 230 | end)() | |
| 231 | camera.CameraType = Enum.CameraType.Custom | |
| 232 | end)() | |
| 233 | end) | |
| 234 | ||
| 235 | local remote = NS ([==[ | |
| 236 | Player=owner | |
| 237 | Character=Player.Character | |
| 238 | Character.Humanoid.Name = "noneofurbusiness" | |
| 239 | hum = Character.noneofurbusiness | |
| 240 | LeftArm=Character["Left Arm"] | |
| 241 | LeftLeg=Character["Left Leg"] | |
| 242 | RightArm=Character["Right Arm"] | |
| 243 | RightLeg=Character["Right Leg"] | |
| 244 | Root=Character["HumanoidRootPart"] | |
| 245 | Head=Character["Head"] | |
| 246 | Torso=Character["Torso"] | |
| 247 | Neck=Torso["Neck"] | |
| 248 | walking = false | |
| 249 | jumping = false | |
| 250 | allowgrassy = false | |
| 251 | zxc = false | |
| 252 | matte = nil | |
| 253 | colori = nil | |
| 254 | bigball = false | |
| 255 | attacking = false | |
| 256 | laughing = false | |
| 257 | running = false | |
| 258 | downpress = false | |
| 259 | taim = nil | |
| 260 | change = 0 | |
| 261 | ws = 0 | |
| 262 | jp = 0 | |
| 263 | appi = false | |
| 264 | tauntdebounce = false | |
| 265 | position = nil | |
| 266 | lastexplosion = false | |
| 267 | staybooming = false | |
| 268 | MseGuide = true | |
| 269 | levitate = false | |
| 270 | firsttime5 = false | |
| 271 | notallowedtransform = false | |
| 272 | settime = 0 | |
| 273 | firsttime2 = false | |
| 274 | sine = 0 | |
| 275 | t = 0 | |
| 276 | combo1 = true | |
| 277 | dgs = 75 | |
| 278 | combo2 = false | |
| 279 | firsttime3 = false | |
| 280 | combo3 = false | |
| 281 | local bl = {907530553,907527750,907527912}
| |
| 282 | colortable = {"Really black","Really red"}
| |
| 283 | colors = #colortable | |
| 284 | blz = #bl | |
| 285 | local aces = {1880203893,1881287656,1881287420,1881288034}
| |
| 286 | ace = #aces | |
| 287 | local laughs = {2011349649,2011349983,2011351501,2011352223,2011355991,2011356475}
| |
| 288 | laugh = #laughs | |
| 289 | mouse = Player:GetMouse() | |
| 290 | RunSrv = game:GetService("RunService")
| |
| 291 | RenderStepped = game:GetService("RunService").RenderStepped
| |
| 292 | removeuseless = game:GetService("Debris")
| |
| 293 | damageall={}
| |
| 294 | Repeater={}
| |
| 295 | Repeater2={}
| |
| 296 | magictable={}
| |
| 297 | nonmeshRepeater={}
| |
| 298 | nonmeshRepeater2={}
| |
| 299 | dmgii={}
| |
| 300 | DamageAll2={}
| |
| 301 | SlowlyFade={}
| |
| 302 | th1={}
| |
| 303 | lolzor={}
| |
| 304 | lolzor2={}
| |
| 305 | th2={}
| |
| 306 | keyYsize={}
| |
| 307 | blocktrail={}
| |
| 308 | keyYtransparency={}
| |
| 309 | th3={}
| |
| 310 | laughingtable={}
| |
| 311 | Extreme={}
| |
| 312 | ExtremeM={}
| |
| 313 | ExtremeM2={}
| |
| 314 | m3={}
| |
| 315 | th4={}
| |
| 316 | th5={}
| |
| 317 | UpMover={}
| |
| 318 | openshocktable={}
| |
| 319 | LessSize={}
| |
| 320 | ForwardMover={}
| |
| 321 | FadeIn={}
| |
| 322 | signtransparency={}
| |
| 323 | signmover={}
| |
| 324 | signrotator={}
| |
| 325 | ||
| 326 | FireBall = Instance.new("Sound",LeftArm)
| |
| 327 | FireBall.SoundId = "rbxassetid://842332424" | |
| 328 | FireBall.Volume = 5 | |
| 329 | FireBall.Pitch = 2.5 | |
| 330 | ||
| 331 | BigFireBall = Instance.new("Sound",LeftArm)
| |
| 332 | BigFireBall.SoundId = "rbxassetid://842332424" | |
| 333 | BigFireBall.Volume = 8 | |
| 334 | BigFireBall.Pitch = 1.5 | |
| 335 | ||
| 336 | local HEADLERP = Instance.new("ManualWeld")
| |
| 337 | HEADLERP.Parent = Head | |
| 338 | HEADLERP.Part0 = Head | |
| 339 | HEADLERP.Part1 = Torso | |
| 340 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 341 | ||
| 342 | local TORSOLERP = Instance.new("ManualWeld")
| |
| 343 | TORSOLERP.Parent = Root | |
| 344 | TORSOLERP.Part0 = Torso | |
| 345 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 346 | ||
| 347 | local ROOTLERP = Instance.new("ManualWeld")
| |
| 348 | ROOTLERP.Parent = Root | |
| 349 | ROOTLERP.Part0 = Root | |
| 350 | ROOTLERP.Part1 = Torso | |
| 351 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 352 | ||
| 353 | local RIGHTARMLERP = Instance.new("ManualWeld")
| |
| 354 | RIGHTARMLERP.Parent = RightArm | |
| 355 | RIGHTARMLERP.Part0 = RightArm | |
| 356 | RIGHTARMLERP.Part1 = Torso | |
| 357 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 358 | ||
| 359 | local LEFTARMLERP = Instance.new("ManualWeld")
| |
| 360 | LEFTARMLERP.Parent = LeftArm | |
| 361 | LEFTARMLERP.Part0 = LeftArm | |
| 362 | LEFTARMLERP.Part1 = Torso | |
| 363 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 364 | ||
| 365 | local RIGHTLEGLERP = Instance.new("ManualWeld")
| |
| 366 | RIGHTLEGLERP.Parent = RightLeg | |
| 367 | RIGHTLEGLERP.Part0 = RightLeg | |
| 368 | RIGHTLEGLERP.Part1 = Torso | |
| 369 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 370 | ||
| 371 | local LEFTLEGLERP = Instance.new("ManualWeld")
| |
| 372 | LEFTLEGLERP.Parent = LeftLeg | |
| 373 | LEFTLEGLERP.Part0 = LeftLeg | |
| 374 | LEFTLEGLERP.Part1 = Torso | |
| 375 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 376 | ||
| 377 | local function weldBetween(a, b) | |
| 378 | local weld = Instance.new("ManualWeld", a)
| |
| 379 | weld.Part0 = a | |
| 380 | weld.Part1 = b | |
| 381 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 382 | return weld | |
| 383 | end | |
| 384 | ||
| 385 | function makeblockytrail() | |
| 386 | coroutine.wrap(function() | |
| 387 | while true do | |
| 388 | for i,v in pairs(blocktrail) do | |
| 389 | smke = Instance.new("Part",v)
| |
| 390 | smke.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
| 391 | smke.Material = "Neon" | |
| 392 | smke.Anchored = true | |
| 393 | smke.CanCollide = false | |
| 394 | removeuseless:AddItem(smke,2) | |
| 395 | end | |
| 396 | swait() | |
| 397 | end | |
| 398 | end)() | |
| 399 | end | |
| 400 | ||
| 401 | local function ci(x, c, y, n) | |
| 402 | so = Instance.new("Sound", x)
| |
| 403 | so.SoundId = c | |
| 404 | so.Volume = y | |
| 405 | so.Looped = n | |
| 406 | end | |
| 407 | ||
| 408 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
| 409 | A = Instance.new("Attachment", PARENT)
| |
| 410 | A.Position = POSITION1 | |
| 411 | A.Name = "A" | |
| 412 | B = Instance.new("Attachment", PARENT)
| |
| 413 | B.Position = POSITION2 | |
| 414 | B.Name = "B" | |
| 415 | tr1 = Instance.new("Trail", PARENT)
| |
| 416 | tr1.Attachment0 = A | |
| 417 | tr1.Attachment1 = B | |
| 418 | tr1.Enabled = true | |
| 419 | tr1.Lifetime = LIFETIME | |
| 420 | tr1.TextureMode = "Static" | |
| 421 | tr1.LightInfluence = 0 | |
| 422 | tr1.Color = COLOR | |
| 423 | tr1.Transparency = NumberSequence.new(0, 1) | |
| 424 | end | |
| 425 | ||
| 426 | function clean() | |
| 427 | damageall={}
| |
| 428 | Repeater={}
| |
| 429 | Repeater2={}
| |
| 430 | nonmeshRepeater={}
| |
| 431 | nonmeshRepeater2={}
| |
| 432 | dmgii={}
| |
| 433 | DamageAll2={}
| |
| 434 | SlowlyFade={}
| |
| 435 | th1={}
| |
| 436 | th2={}
| |
| 437 | th3={}
| |
| 438 | Extreme={}
| |
| 439 | ExtremeM={}
| |
| 440 | ExtremeM2={}
| |
| 441 | m3={}
| |
| 442 | th4={}
| |
| 443 | th5={}
| |
| 444 | UpMover={}
| |
| 445 | openshocktable={}
| |
| 446 | LessSize={}
| |
| 447 | ForwardMover={}
| |
| 448 | FadeIn={}
| |
| 449 | signtransparency={}
| |
| 450 | signmover={}
| |
| 451 | signrotator={}
| |
| 452 | end | |
| 453 | ||
| 454 | coroutine.wrap(function() | |
| 455 | while wait() do | |
| 456 | hum.WalkSpeed = ws | |
| 457 | hum.JumpPower = jp | |
| 458 | end | |
| 459 | end)() | |
| 460 | godmode = coroutine.wrap(function() | |
| 461 | for i,v in pairs(Character:GetChildren()) do | |
| 462 | if v:IsA("BasePart") and v ~= Root then
| |
| 463 | v.Anchored = false | |
| 464 | end | |
| 465 | end | |
| 466 | while true do | |
| 467 | hum.MaxHealth = math.huge | |
| 468 | wait(0.0000001) | |
| 469 | hum.Health = math.huge | |
| 470 | wait() | |
| 471 | end | |
| 472 | end) | |
| 473 | godmode() | |
| 474 | ff = Instance.new("ForceField", Character)
| |
| 475 | ff.Visible = false | |
| 476 | ||
| 477 | coroutine.wrap(function() | |
| 478 | for i,v in pairs(Character:GetChildren()) do | |
| 479 | if v.Name == "Animate" then v:Remove() | |
| 480 | end | |
| 481 | end | |
| 482 | end)() | |
| 483 | ||
| 484 | function damagealll(Radius,Position) | |
| 485 | local Returning = {}
| |
| 486 | for _,v in pairs(workspace:GetChildren()) do | |
| 487 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
| |
| 488 | if v:FindFirstChild("Torso") then
| |
| 489 | local Mag = (v.Torso.Position - Position).magnitude | |
| 490 | if Mag < Radius then | |
| 491 | table.insert(Returning,v) | |
| 492 | end | |
| 493 | elseif v:FindFirstChild("UpperTorso") then
| |
| 494 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
| 495 | if Mag < Radius then | |
| 496 | table.insert(Returning,v) | |
| 497 | end | |
| 498 | end | |
| 499 | end | |
| 500 | end | |
| 501 | return Returning | |
| 502 | end | |
| 503 | ||
| 504 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 505 | ArtificialHB.Name = "Heartbeat" | |
| 506 | script:WaitForChild("Heartbeat")
| |
| 507 | ||
| 508 | frame = 1 / 60 | |
| 509 | tf = 0 | |
| 510 | allowframeloss = false | |
| 511 | tossremainder = false | |
| 512 | ||
| 513 | ||
| 514 | lastframe = tick() | |
| 515 | script.Heartbeat:Fire() | |
| 516 | ||
| 517 | ||
| 518 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 519 | tf = tf + s | |
| 520 | if tf >= frame then | |
| 521 | if allowframeloss then | |
| 522 | script.Heartbeat:Fire() | |
| 523 | lastframe = tick() | |
| 524 | else | |
| 525 | for i = 1, math.floor(tf / frame) do | |
| 526 | script.Heartbeat:Fire() | |
| 527 | end | |
| 528 | lastframe = tick() | |
| 529 | end | |
| 530 | if tossremainder then | |
| 531 | tf = 0 | |
| 532 | else | |
| 533 | tf = tf - frame * math.floor(tf / frame) | |
| 534 | end | |
| 535 | end | |
| 536 | end) | |
| 537 | ||
| 538 | function swait(num) | |
| 539 | if num == 0 or num == nil then | |
| 540 | game:service("RunService").Stepped:wait(0)
| |
| 541 | else | |
| 542 | for i = 0, num do | |
| 543 | game:service("RunService").Stepped:wait(0)
| |
| 544 | end | |
| 545 | end | |
| 546 | end | |
| 547 | ||
| 548 | ||
| 549 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
| 550 | so = Instance.new("Sound")
| |
| 551 | so.Parent = PARENT | |
| 552 | so.SoundId = "rbxassetid://"..ID | |
| 553 | so.Volume = VOL | |
| 554 | so.Looped = LOOP | |
| 555 | so:Play() | |
| 556 | removeuseless:AddItem(so,REMOVE) | |
| 557 | end | |
| 558 | ||
| 559 | warn("I'm gonna crush you, and throw you into the wind. Made by Supr14")
| |
| 560 | ||
| 561 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 562 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 563 | end | |
| 564 | ||
| 565 | function ray2(StartPos, EndPos, Distance, Ignore) | |
| 566 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
| 567 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
| 568 | end | |
| 569 | sacrifice = Instance.new("Sound",Torso)
| |
| 570 | sacrifice.SoundId = "rbxassetid://2123165301" | |
| 571 | sacrifice.Volume = 10 | |
| 572 | sacrifice:Play() | |
| 573 | explosiontable = {}
| |
| 574 | x = 0 | |
| 575 | coroutine.wrap(function() | |
| 576 | for i = 1, 400 do | |
| 577 | swait() | |
| 578 | x = x + 15 | |
| 579 | for i,v in pairs(explosiontable) do | |
| 580 | v.Scale = v.Scale + Vector3.new(4,.6,4) | |
| 581 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(x),0) | |
| 582 | v.Parent.Transparency = v.Parent.Transparency + .025 | |
| 583 | end | |
| 584 | end | |
| 585 | end)() | |
| 586 | coroutine.wrap(function() | |
| 587 | for i = 1, 25 do | |
| 588 | shockwave3 = Instance.new("Part", Torso)
| |
| 589 | shockwave3.Size = Vector3.new(1,1,1) | |
| 590 | shockwave3.CanCollide = false | |
| 591 | shockwave3.Anchored = true | |
| 592 | shockwave3.Name = "shockwav" | |
| 593 | shockwave3.Transparency = .5 | |
| 594 | shockwave3.BrickColor = BrickColor.new("White")
| |
| 595 | shockwave3.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0) | |
| 596 | shockwavemesh3 = Instance.new("SpecialMesh", shockwave3)
| |
| 597 | shockwavemesh3.Scale = Vector3.new(1,1,1) | |
| 598 | shockwavemesh3.MeshId = "rbxassetid://20329976" | |
| 599 | table.insert(explosiontable,shockwavemesh3) | |
| 600 | swait(5) | |
| 601 | end | |
| 602 | end)() | |
| 603 | for i = 1, 50 do | |
| 604 | settime = 0.05 | |
| 605 | sine = sine + change | |
| 606 | change = 1 | |
| 607 | HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.5) | |
| 608 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),.5) | |
| 609 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1,.3) * CFrame.Angles(math.rad(-100),math.rad(-13 + 2 *math.sin(sine/1)),math.rad(5 * math.sin(sine/1))), 0.5) | |
| 610 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,.3) * CFrame.Angles(math.rad(-100),math.rad(13 + 2 *math.sin(sine/1)),math.rad(5 * math.sin(sine/1))), 0.5) | |
| 611 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.5) | |
| 612 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, -.25) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5) | |
| 613 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.5) | |
| 614 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, -.25) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.5) | |
| 615 | swait() | |
| 616 | end | |
| 617 | explosiontable2={}
| |
| 618 | explosiontable3={}
| |
| 619 | TheExplosion = Instance.new("Part",LeftArm)
| |
| 620 | TheExplosion.BrickColor = BrickColor.new("Bright yellow")
| |
| 621 | TheExplosion.Material = "Neon" | |
| 622 | TheExplosion.Shape = "Ball" | |
| 623 | TheExplosion.Anchored = true | |
| 624 | TheExplosion.CanCollide = false | |
| 625 | TheExplosion.CFrame = CFrame.new(Torso.Position) | |
| 626 | TheExplosion.Size = Vector3.new(8,8,8) | |
| 627 | TheExplosion.Transparency = 0.5 | |
| 628 | shockwave2 = Instance.new("Part", LeftArm)
| |
| 629 | shockwave2.Size = Vector3.new(1,1,1) | |
| 630 | shockwave2.CanCollide = false | |
| 631 | shockwave2.Anchored = true | |
| 632 | shockwave2.Transparency = 1 | |
| 633 | shockwave2.BrickColor = BrickColor.new("White")
| |
| 634 | shockwave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0) | |
| 635 | shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
| |
| 636 | shockwavemesh2.Scale = Vector3.new(3,1,3) | |
| 637 | shockwavemesh2.MeshId = "rbxassetid://20329976" | |
| 638 | table.insert(explosiontable2,shockwavemesh2) | |
| 639 | shockwave = Instance.new("Part", LeftArm)
| |
| 640 | shockwave.Size = Vector3.new(1,1,1) | |
| 641 | shockwave.CanCollide = false | |
| 642 | shockwave.Anchored = true | |
| 643 | shockwave.Transparency = 1 | |
| 644 | shockwave.BrickColor = BrickColor.new("White")
| |
| 645 | shockwave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-3,0) | |
| 646 | shockwavemesh = Instance.new("SpecialMesh", shockwave)
| |
| 647 | shockwavemesh.Scale = Vector3.new(3,1,3) | |
| 648 | shockwavemesh.MeshId = "rbxassetid://20329976" | |
| 649 | table.insert(explosiontable3,shockwavemesh) | |
| 650 | coroutine.wrap(function() | |
| 651 | for i = 1, 23 do | |
| 652 | TheExplosion.Transparency = 1 | |
| 653 | swait(1) | |
| 654 | TheExplosion.Transparency = 0.5 | |
| 655 | swait(1) | |
| 656 | end | |
| 657 | coroutine.wrap(function() | |
| 658 | for i = 1, 50 do | |
| 659 | wait(2.5) | |
| 660 | shocks = TheExplosion:Clone() | |
| 661 | shocks.Parent = Torso | |
| 662 | shocks.Name = "shock" | |
| 663 | swait() | |
| 664 | end | |
| 665 | end)() | |
| 666 | n = 0 | |
| 667 | f = 0 | |
| 668 | dmgal = 0 | |
| 669 | shockwave.Transparency = .5 | |
| 670 | shockwave2.Transparency = .5 | |
| 671 | for i = 1, 125 do | |
| 672 | dmgal = dmgal + .25 | |
| 673 | local Hit = damagealll(dmgal,TheExplosion.Position) | |
| 674 | for _,v in pairs(Hit) do | |
| 675 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10+dmgal,20+dmgal))
| |
| 676 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
| |
| 677 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
| 678 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
| |
| 679 | vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20 | |
| 680 | removeuseless:AddItem(vel,.1) | |
| 681 | end | |
| 682 | n = n + 16 | |
| 683 | f = f - 16 | |
| 684 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(.25,.05,.25) | |
| 685 | ||
| 686 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(.25,.05,.25) | |
| 687 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+7),0) | |
| 688 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0-7),0) | |
| 689 | ||
| 690 | TheExplosion.Transparency = TheExplosion.Transparency - .0040 | |
| 691 | TheExplosion.Size = TheExplosion.Size + Vector3.new(.25,.25,.25) | |
| 692 | swait() | |
| 693 | end | |
| 694 | for i = 1, 920 do | |
| 695 | dmgal = dmgal + 1 | |
| 696 | local Hit = damagealll(dmgal/1.5,TheExplosion.Position) | |
| 697 | for _,v in pairs(Hit) do | |
| 698 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10+dmgal,20+dmgal))
| |
| 699 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
| |
| 700 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
| 701 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
| |
| 702 | vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20 | |
| 703 | removeuseless:AddItem(vel,.1) | |
| 704 | end | |
| 705 | n = n + 4 | |
| 706 | f = f - 4 | |
| 707 | for i,v in pairs(explosiontable2) do | |
| 708 | v.Scale = v.Scale + Vector3.new(1,.1,1) | |
| 709 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0) | |
| 710 | end | |
| 711 | for i,v in pairs(explosiontable3) do | |
| 712 | v.Scale = v.Scale + Vector3.new(1,.1,1) | |
| 713 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(f),0) | |
| 714 | end | |
| 715 | TheExplosion.Transparency = TheExplosion.Transparency - .0025 | |
| 716 | TheExplosion.Size = TheExplosion.Size + Vector3.new(1,1,1) | |
| 717 | swait() | |
| 718 | end | |
| 719 | for i = 1, 850 do | |
| 720 | n = n + 18 | |
| 721 | f = f - 18 | |
| 722 | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(1,.1,1) | |
| 723 | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(1,.1,1) | |
| 724 | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+14),0) | |
| 725 | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0-14),0) | |
| 726 | TheExplosion.Transparency = TheExplosion.Transparency - .0025 | |
| 727 | swait() | |
| 728 | end | |
| 729 | coroutine.wrap(function() | |
| 730 | for i = 1, 1000 do | |
| 731 | for i,v in pairs(hum.Parent:GetDescendants()) do | |
| 732 | if v:IsA("Part") then v.Transparency = v.Transparency + 0.025
| |
| 733 | end | |
| 734 | end | |
| 735 | wait() | |
| 736 | end | |
| 737 | end)() | |
| 738 | for i = 1, 50 do | |
| 739 | n = n + 4 | |
| 740 | f = f - 4 | |
| 741 | for i,v in pairs(explosiontable2) do | |
| 742 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0) | |
| 743 | v.Parent.Transparency = v.Parent.Transparency + 0.05 | |
| 744 | end | |
| 745 | for i,v in pairs(explosiontable3) do | |
| 746 | v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0),math.rad(f),0) | |
| 747 | v.Parent.Transparency = v.Parent.Transparency + 0.05 | |
| 748 | end | |
| 749 | TheExplosion.Transparency = TheExplosion.Transparency + .015 | |
| 750 | swait() | |
| 751 | end | |
| 752 | for i,v in pairs(explosiontable2) do | |
| 753 | v:Remove() | |
| 754 | end | |
| 755 | for i,v in pairs(explosiontable3) do | |
| 756 | v:Remove() | |
| 757 | end | |
| 758 | TheExplosion:Remove() | |
| 759 | for i,v in pairs(Torso:GetChildren()) do | |
| 760 | if v.Name == "shocks" then | |
| 761 | v:Remove() | |
| 762 | end | |
| 763 | end | |
| 764 | hum.Parent:BreakJoints() | |
| 765 | for i = 1, 1500 do | |
| 766 | for i,v in pairs(Torso:GetChildren()) do | |
| 767 | if v.Name == "shocks" then | |
| 768 | for i = 1, 20 do | |
| 769 | v.Transparency = v.Transparency + 0.05 | |
| 770 | swait() | |
| 771 | end | |
| 772 | end | |
| 773 | end | |
| 774 | swait() | |
| 775 | end | |
| 776 | end)() | |
| 777 | for i = 1, 25 do | |
| 778 | HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 779 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4) | |
| 780 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,0,.5) * CFrame.Angles(math.rad(-90),math.rad(40),math.rad(0)), 0.4) | |
| 781 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,0,.5) * CFrame.Angles(math.rad(-90),math.rad(-40),math.rad(0)), 0.4) | |
| 782 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.4, 1.8, -.4) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.4) | |
| 783 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.4, 1.8, -.4) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(10)), 0.4) | |
| 784 | swait() | |
| 785 | end | |
| 786 | lastexplosion = true | |
| 787 | for i = 1, 400 do | |
| 788 | HEADLERP.C0 = HEADLERP.C0:lerp(CFrame.new(0, -1.45, .1) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.05) | |
| 789 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)),.05) | |
| 790 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0.5, 2, .3) * CFrame.Angles(math.rad(14), math.rad(-20), math.rad(90)), 0.05) | |
| 791 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, .3) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.05) | |
| 792 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3, 2, .5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-10)), 0.05) | |
| 793 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3, 2, .5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(10)), 0.05) | |
| 794 | swait() | |
| 795 | end | |
| 796 | ]==], owner.Character):WaitForChild 'ServerRemote'; | |
| 797 | mouse = owner:GetMouse (); |