this is my script

function playerAdded(player)
	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

game.Players.PlayerAdded:connect(playerAdded)

it is in a normal script in the workspace there are no errors in the output

does anyone know why it doesnt work ?

-explanation- crystal is a union the script is supposed to clone a union (crystal) when a player is added and then weld it above the players' head

2 comments

0

Can you explain your script?

0

Also, I should mention that in order to weld two parts you should only need to use the C0 property provided you are using a ManualWeld.