Advertisement
RiasGremory0100

Test

Jun 25th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2.  
  3. function onPlayerAdded(player)
  4.  
  5. local gui = Instance.new("ScreenGui",player.PlayerGui)
  6. local frame = Instance.new("Frame", gui)
  7. frame.Size = UDim2.new(1,0,1,0)
  8. frame.BackgroundColor3 = Color3.new(255, 229, 135)
  9. for i = 0, 4.5, 0.05 do
  10. print(i)
  11. local imagegui = Instance.new("ImageLabel",frame)
  12. imagegui.Size = UDim2.new(1,0,1,0)
  13. imagegui.BackgroundTransparency = 1
  14. imagegui.Image = "http://www.roblox.com/asset/?id="
  15. wait()
  16. end
  17. end
  18.  
  19. --When a player joins, call the onPlayerAdded function
  20. Players.PlayerAdded:connect(onPlayerAdded)
  21.  
  22. --Call onPlayerAdded for each player already in the game
  23. for _,player in pairs(Players:GetPlayers()) do
  24. onPlayerAdded(player)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement