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