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

How Can you make a Text Button Spawn a Tool?

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

1 comment

1

This site is not a request site!

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.