Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Im trying to make it so that my clone goes to a localplayers position. How do I do it?

local cloneName = game.ServerStorage.Items:FindFirstChild(script.Parent.Parent.text.Text)
			print(cloneName)
		local clone = cloneName:clone()
		
		clone.Parent = game.Workspace
		
		clone.Position = Vector3.new(game.Players.LocalPlayer.character.Head.Position)

1 answer

✓ Accepted answer
local cloneName = game.ServerStorage.Items:FindFirstChild(script.Parent.Parent.text.Text)
            print(cloneName)
        local clone = cloneName:Clone() -- :clone() got patched idk y

        clone.Parent = game.Workspace

        clone.CFrame = game.Players.LocalPlayer.Character.Head.CFrame --when you use Position the clone may go in random directions (above or under the player) and use Character instead of character

2 comments

0

Thanks For The Help!

0

np!

This discussion is preserved as it was. New answers, comments, and votes are closed.