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

How do you make a Brick Teleport to the player when a GUI Button is pressed?

Yeah i just need the script so i can make a ben 10 game on roblox

1 comment

0

OK so i mean a button in GUI is pressed i cant edit it

1 answer

✓ Accepted answer

This is in a local script:

script.Parent.MouseButton1Click:Connect(function()
	game.Workspace.Part.Position = 	 script.Parent.Parent.Parent.Parent.Character.HumanoidRootPart.Position
end)

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