Add a PlayerAdded event so this thing only occurs only when a player joins and instead of adding this to the startergui we will directly add this to their PlayerGui.
game.Players.PlayerAdded:Connect(function(player)
x = script.ThirdPersonFrontLock:Clone()
x.Parent = player.PlayerGui
end)
Also use :Clone() not :clone() because the not capitalized clone is deprecated.
By the way the problem of the script is that if you reset the script will be gonne and won't be anymore in the PlayerGui. But that is all you wanted from what you said on top. But if you want the script to be there anytime you can just check if the script is there and if not it will :Clone() the script and add it to the PlayerGui.
1 comment
Can you give us the code....?