This script is supposed to give a tool to the player in the value but it doesn't
p = script.Parent.Parent.Player.Value
script.Parent.MouseButton1Down:connect(function(c)
for _, Object in pairs (game.Players.LocalPlayer.Character:GetChildren()) do
if Object:IsA("Tool") then
Object:Clone().Parent = game.Workspace[p]
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Frame.Visible = true
end
end
end) |