Im Trying to get a a text button to spawn a tool and to clear a confusion if ur confused im not using a click detector im using a Text Button You would use for screen and surface Gui
✓ ANSWER ACCEPTED
How Can you make a Text Button Spawn a Tool?
1 answer
✓ Accepted answer
local p = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
local tool = script.Parent.Tool:Clone() -- Change Tool to your tool name.
tool.Parent = p.Backpack
end)
Try this. I have tested it.
Put a local script and the tool into the TextButton.
1 comment
0
This works, but if I'm correct, only locally. This could be done on the server side using a RemoteEvent.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This site is not a request site!