Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Admin Loaded")
- __doctype__ = "Roblox Local Script"
- __author__ = "Izzy"
- __version__ = 2
- PLAYER = game.Players.LocalPlayer
- mySound = Instance.new("Sound")
- CHARACTER = PLAYER.Character
- ASSET_LINK = "http://www.roblox.com/asset/?id="
- CONTENT_PROVIDER = game:GetService("ContentProvider")
- TOKEN = "#"
- script.Parent = PLAYER
- function preloadAsset(id)
- CONTENT_PROVIDER:Preload(ASSET_LINK..id)
- end
- function playAudio(id,vol,pitch)
- preloadAsset(id)
- if mySound.IsPlaying == true then
- mySound:Stop()
- end
- mySound.Parent = CHARACTER:FindFirstChild("Head")
- mySound.SoundId = ASSET_LINK..id
- mySound.Volume = vol
- mySound.Pitch = pitch
- mySound:Play()
- end
- function getPlayer(name)
- if name:lower() == "me" then return PLAYER end
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name:lower():match(name:lower()) then
- return v
- elseif name:lower() == "all" then
- return v
- else
- return nil
- end
- end
- end
- function p(m,c)
- if m:lower():match(TOKEN..c) then
- return true
- else
- return false
- end
- end
- PLAYER.chatted:connect(function(m)
- timeSinceLastSpoke = time()*10000
- if p(m,"ping") then
- print("Pong - "..((time()*10000)-timeSinceLastSpoke))
- elseif p(m,"play ") then
- newId = m:sub(7)
- playAudio(newId,1,1)
- elseif p(m,"deepclean") then
- for i,v in pairs (workspace:GetChildren()) do
- v:Remove()
- end
- for i,v in pairs (game.Lighting:GetChildren()) do
- v:Remove()
- end
- elseif p(m,"clean") then
- for i,v in pairs (workspace:GetChildren()) do
- if v:IsA("Model") then return end
- v:Remove()
- end
- elseif p(m,"respawn") then
- v= m:sub(10)
- p0 = getPlayer(v)
- p0:LoadCharacter()
- elseif p(m,"tp") then
- v = m:sub(5)
- p0 = getPlayer(v)
- CHARACTER:MoveTo(p0.Character:FindFirstChild("Head").Position)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment