Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

weld script playeradded not working ?

Asked by 7 years ago
Edited 7 years ago

crystal = a union inside serverstorage

this is the script i cant find any errors in the output

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
    local clone = game.ServerStorage.Crystal:Clone()

    local character = workspace:WaitForChild(player.Name)
    local head = character:WaitForChild("Head")
    clone.CFrame = head.CFrame * CFrame.new(0,3,0)
    weld = Instance.new("Weld")
    weld.Part0 = head
    weld.C0 = head.CFrame:inverse()
    weld.Part1 = clone
    weld.C1 = clone.CFrame:inverse()
    weld.Parent = clone
    end)
end)

0
Can you explain the problem in more detail. Also why are you using PlayerAdded? User#5423 17 — 7y
0
i use playeradded for if the player join i want it to stick on his head to moment the player joins TigerClaws454 48 — 7y
0
dindt really work TigerClaws454 48 — 7y

Answer this question