I want to place a LocalScript into player when that player joins, so the LocalScript would always work in him. I used these lines.
local Players = game:GetService('Players') local WeldHandler = .Parent.WeldHandler Players.PlayerAdded:connect(function(player) local clonedscript = WeldHandler:Clone() clonedscript.Parent = player end)
And that isn't appearing when I test the game :/
The first error I found was on line 2, you put local WeldHandler = .Parent.WeldHandler
, I think you meant to put local WeldHandler = script.Parent.WeldHandler
.
Second thing that I would change is on line 6, you put the cloned script into the player
, if I were you I would place it in the player.PlayerScripts
, which was made to hold local scripts in the player.