Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id = 128136225
- local Players = game:GetService("Players")
- function onPlayerAdded(player)
- local gui = Instance.new("ScreenGui",game.CoreGui)
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(1,0,1,0)
- frame.BackgroundColor3 = Color3.new(255, 229, 135)
- for i = 0, 4.5, 0.05 do
- print(i)
- local imagegui = Instance.new("ImageLabel",frame)
- imagegui.Size = UDim2.new(1,0,1,0)
- imagegui.BackgroundTransparency = 1
- imagegui.Image = "http://www.roblox.com/asset/?id="..id..""
- wait()
- end
- end
- --When a player joins, call the onPlayerAdded function
- Players.PlayerAdded:connect(onPlayerAdded)
- --Call onPlayerAdded for each player already in the game
- for _,player in pairs(Players:GetPlayers()) do
- onPlayerAdded(player)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement