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

My part in roblox wont tp to the character?

Hey so I want to try and make this part TP to the character this is what I have and it's not working.

script.Parent.MouseButton1Click:Connect(function()
	
	local user = script.Parent.Parent.Parent.Parent.PlrName_Money
	local jail = game.Workspace.j
	local plr = game.Players:FindFirstChild(user.Text)
	
	game.Workspace.j.Position = Vector3.new(plr.character.HumanoidRootPart.Position)
	
end)

2 answers

✓ Accepted answer
game.Workspace.j.CFrame= CFrame.new(plr.character.HumanoidRootPart.Position)

1 comment

0

Thanks!

script.Parent.MouseButton1Click:Connect(function(plr)

    game.Workspace.j.CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position)--only need to reference the part once and we use cframe to change position of parts

end)

make it a clickdetector since they know which player has clicked

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