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

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

Asked by 3 years ago

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

0
OK so i mean a button in GUI is pressed i cant edit it KemboiDGX15XX2Rebon -3 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

This is in a local script:

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

Answer this question