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)

4 comments

0

Can you explain the problem in more detail. Also why are you using PlayerAdded?

0

i use playeradded for if the player join i want it to stick on his head to moment the player joins

0

dindt really work