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

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

Asked by 6 years ago
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

Log in to vote
0
Answered by 6 years ago
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
0
Thanks For The Help! seachristopher -3 — 6y
0
np! 0_Halloween 166 — 6y
Ad

Answer this question