So I'm new to scripting and I'm really looking for a scripting helper because I'm trying to make a button that gives tools. So this is what I found.
local player = game.Players.LocalPlayer local tool = game.ServerStorage.AdventureIsland
script.Parent.MouseButton1Click:connect(function() tool:Clone().Parent = player.Backpack script.Parent.Parent.Parent:Destroy() end)
Does this work? I tried didn't work for me. It would be great if someone helps me.
Closed as Not Constructive by User#19524
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?