User:Anaminus/Script:Vroom!
From Legacy Roblox Wiki
Jump to navigationJump to search
-- Anaminus print("Chat: Vroom!") permission = {"Anaminus"} function check(name) if table.maxn(permission) == 0 then print("No admins") return true end --Remove all names from permission to allow all players to use command. for i = 1,#permission do if (string.upper(name) == string.upper(permission[i].Name)) then return true end end return false end function heat(character) local c = character:GetChildren() for h = 1,#c do if c[h].className == "Part" then c[h].Reflectance = c[h].Reflectance+0.1 end end end function splode(victem, blastradius, blastpressure) local nuker = Instance.new("Explosion") nuker.Position = victem.Position nuker.BlastRadius = blastradius nuker.BlastPressure = blastpressure nuker.Parent = game.Workspace end r=0 function launch(character) local t = character.Torso while t.Reflectance < 1 do wait() if r<10 then t.Velocity = Vector3.new(0,1000,0) r=r+1 else heat(character) t.Velocity = Vector3.new(0,1000,0) end end t.Velocity = Vector3.new(0,0,0) splode(t,2.5,100000) end function onChatted(msg, recipient, speaker) -- convert to all lower case local source = string.lower(speaker.Name) msg = string.lower(msg) -- Below is only for Admins if not check(source) then return end if (msg=="vroom!") then local players=game.Players:GetChildren() for i=1, #players do local c = players[i].Character launch(c) end end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered)