More than 0 prints when i click f5 in Studio, but when I do start server and start two players, nothing prints. I've updated the script to have tweening but It still doesn't work.
if game.Players.NumPlayers~=0 then
print("More than 0")
game.Players.PlayerAdded:connect(function(player)
local gui=Instance.new("ScreenGui", game:WaitForChild("StarterGui"))
local label=Instance.new("TextLabel", gui)
label.Position=UDim2.new(0,450,0,-50)
label.Size=UDim2.new(0,400,0,50)
label:TweenPosition(UDim2.new(0,450,0,0), "Out", "Bounce", 2)
label.BackgroundColor3=Color3.new(200,255,0)
label.TextScaled=true
label.TextColor3=Color3.new(0,0,0)
label.Text=player.Name.."has joined!"
wait(3)
label:Destroy()
end)
end
|