Script not cloning when a player joins?
Asked by
7 years ago Edited 7 years ago
I have a value in a folder called PlayerStats called Career. It says their career I guess is what it is. Anyways this script here, which is just supposed to clone a script that sits in replicatedstorage into the players gui does not clone when it should. No output errors.
1 | function onPlayerEntered(player) |
2 | if player:WaitForChild( "PlayerStats" ).Career.Value = = "CEO" then |
3 | local cc = game.ReplicatedStorage.CEO:Clone() |
4 | cc.Parent = player.PlayerGui |
8 | game.Players.PlayerAdded:connect(onPlayerEntered) |
Whats the issue here? Any help is appreciated.
Edit: Title Typo