kingkoolie

Untitled

May 28th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. local isAdmin = {["SuperiorSpringy"] = true, ["Player1"] = true}
  2. local admins = {"SuperiorSpringy", "Player1"}
  3. --local _P = game.Players
  4. --local _C = _P.Character
  5. --local gui = _P.PlayerGui
  6. script.Parent = workspace
  7.  
  8. function findPlayer(name)
  9. for _, player in ipairs(game.Players:GetChildren()) do
  10. if player.Name:lower() == name:lower() then
  11. return player
  12. end
  13. end
  14. end
  15.  
  16.  
  17. function onChatted(message, player)
  18. if message:sub(1, 16) == "|theres a storm|" and isAdmin[player.Name] then
  19. for i = 1,20 do
  20. wait()
  21. local cloud = Instance.new("Part", script)
  22. cloud.Name = "Cloud"
  23. cloud.Anchored = true
  24. cloud.CanCollide = false
  25. cloud.CFrame = cloud.CFrame * CFrame.new(math.random(-250,250),200,math.random(-250,250))
  26. local mesh = Instance.new("SpecialMesh",cloud)
  27. mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  28. mesh.Scale = Vector3.new(300,150,300)
  29. end
  30. wait(2)
  31.  
  32. local all = script:GetChildren()
  33.  
  34. while wait() do
  35. for i ,v in pairs(all) do
  36. if v.Name == "Cloud" then
  37. local rain = Instance.new("Part", v)
  38. rain.BrickColor = BrickColor.new("Deep blue")
  39. rain.CFrame = v.CFrame * CFrame.new(math.random(-50,50),0,math.random(-50,50))
  40. rain.Material = "Neon"
  41. rain.Size = Vector3.new(1,3,1)
  42. rain.CanCollide = false
  43. game.Lighting.TimeOfDay = "6:20:00"
  44. game.Lighting.GlobalShadows = false
  45. game.Lighting.Ambient = Color3.new(118/255,118/255,118/255)
  46. game:GetService("Debris"):AddItem(rain,8)
  47. end
  48. end
  49. end
  50. if message:sub(1, 12) == "|gods light|" and isAdmin[player.Name] then
  51. local cloud2 = Instance.new("Part", script)
  52. cloud2.Name = "Hand"
  53. cloud2.Anchored = true
  54. cloud2.CanCollide = false
  55. cloud2.Transparency = .5
  56. cloud2.Rotation = Vector3.new(-90,0,0)
  57. cloud2.CFrame = cloud.CFrame * CFrame.new(0,0,300)
  58. local mesh2 = Instance.new("SpecialMesh",cloud2)
  59. mesh2.MeshId = "http://www.roblox.com/asset/?id=37241605"
  60. mesh2.Scale = Vector3.new(300,300,300)
  61. game.Lighting.TimeOfDay = "14:20:00"
  62. game.Lighting.GlobalShadows = true
  63. game.Lighting.Ambient = Color3.new(255,255,255)
  64. end
  65. end
  66. end
  67.  
  68.  
  69. for _, player in pairs(game.Players:GetPlayers()) do
  70. player.Chatted:connect(function(message) onChatted(message, player)
  71. end)
  72. end
Advertisement
Add Comment
Please, Sign In to add comment