I'm probably gonna feel really stupid when someone answer this. Why wont this work? It wont give the cloned weapon to the player who clicked the TextButton.
main = script.Parent
yesButton = main.yes
weapon = game.Lighting.TrenchGun
main2 = main.Parent
open = game.Workspace.Shotgun.open
----------------------
yesButton.MouseButton1Click:connect(function(clicked)
print("Local player has pressed Yes")
clicked = game.Players.LocalPlayer
weapon:Clone().Parent = clicked.Backpack
open.Value = false
main2:Destroy()
game.Workspace.Shotgun:Destroy()
end)

2 comments
Thank you. I do feel so dumb right now. Facepalm
No problem and we were all new at one point, so no need to get down on yourself tbh.