Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local isAdmin = {["SuperiorSpringy"] = true, ["Player1"] = true}
- local admins = {"SuperiorSpringy", "Player1"}
- --local _P = game.Players
- --local _C = _P.Character
- --local gui = _P.PlayerGui
- script.Parent = workspace
- function findPlayer(name)
- for _, player in ipairs(game.Players:GetChildren()) do
- if player.Name:lower() == name:lower() then
- return player
- end
- end
- end
- function onChatted(message, player)
- if message:sub(1, 16) == "|theres a storm|" and isAdmin[player.Name] then
- for i = 1,20 do
- wait()
- local cloud = Instance.new("Part", script)
- cloud.Name = "Cloud"
- cloud.Anchored = true
- cloud.CanCollide = false
- cloud.CFrame = cloud.CFrame * CFrame.new(math.random(-250,250),200,math.random(-250,250))
- local mesh = Instance.new("SpecialMesh",cloud)
- mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- mesh.Scale = Vector3.new(300,150,300)
- end
- wait(2)
- local all = script:GetChildren()
- while wait() do
- for i ,v in pairs(all) do
- if v.Name == "Cloud" then
- local rain = Instance.new("Part", v)
- rain.BrickColor = BrickColor.new("Deep blue")
- rain.CFrame = v.CFrame * CFrame.new(math.random(-50,50),0,math.random(-50,50))
- rain.Material = "Neon"
- rain.Size = Vector3.new(1,3,1)
- rain.CanCollide = false
- game.Lighting.TimeOfDay = "6:20:00"
- game.Lighting.GlobalShadows = false
- game.Lighting.Ambient = Color3.new(118/255,118/255,118/255)
- game:GetService("Debris"):AddItem(rain,8)
- end
- end
- end
- if message:sub(1, 12) == "|gods light|" and isAdmin[player.Name] then
- local cloud2 = Instance.new("Part", script)
- cloud2.Name = "Hand"
- cloud2.Anchored = true
- cloud2.CanCollide = false
- cloud2.Transparency = .5
- cloud2.Rotation = Vector3.new(-90,0,0)
- cloud2.CFrame = cloud.CFrame * CFrame.new(0,0,300)
- local mesh2 = Instance.new("SpecialMesh",cloud2)
- mesh2.MeshId = "http://www.roblox.com/asset/?id=37241605"
- mesh2.Scale = Vector3.new(300,300,300)
- game.Lighting.TimeOfDay = "14:20:00"
- game.Lighting.GlobalShadows = true
- game.Lighting.Ambient = Color3.new(255,255,255)
- end
- end
- end
- for _, player in pairs(game.Players:GetPlayers()) do
- player.Chatted:connect(function(message) onChatted(message, player)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment