I want to make my own giver, I think I've done the basics (I tested it out a slight bit different way to spawn a car, worked), but I'm struggling to get the tool to the player's Backpack who cloned it.The script is a LocalScript
Here's what I've done:
local Button = script.Parent
local Flashlight = game.ServerStorage.NATMFlashlight
local Inventory = game.Players.LocalPlayer
function OnClicked()
CopyBoy = Flashlight:Clone()
CopyBoy.Parent = Inventory.Backpack
end
Button.ClickDetector:connect(OnClicked)

2 comments
Local Scripts cannot access the ServerStorage. Only regular scripts can do that. Also, a Local Script cannot function in the Workspace. I will put the correct code below.
Thanks !