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