I was trying to make a player list, and this is the script I made for it. It has no output, and nothing happened. No errors, nothing.

Number_Of_Players = 0
Multiply = 0
Clone = script.Parent.Example:Clone()

game:GetService("Players").PlayerAdded:Connect(function()
	Number_Of_Players = Number_Of_Players+1
	Multiply = Number_Of_Players+1
	Clone.Parent = script.Parent
	Clone.Visible = true
	Clone.Position.Y.Scale = Clone.Position*Multiply
end)

Can someone tell me what is wrong with the code?

2 comments

0

Nothing is wrong with your code. What are you trying to achieve? The code might be doing something different than what you're expecting.

0

I'm trying to make it so every time a new player joins it clones the last player's name, changes it to their name, then puts it below the last person's name.