So I'm trying to make a tool equip when a GUI button is pressed while the default backpack GUI is disabled. I got the backpack GUI disabled now all I need is the tool equipper
I've tried this
local UserInput = game:GetService("UserInputService")
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Tool = game:GetService("ReplicatedStorage").PL42
UserInput.InputBegan:connect(function(Input)
script.Parent.Buttons.Frame.TextButton.MouseButton1Click:Connect(function()
wait(1)
Tool.Parent = Character
end)
end)
and it literally did nothing, can someone help?

4 comments
if im not wrong placing it in the character should work
also u shouldnt need to disable backpack
wait nvm
do it from a server script?