script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.Equipment.PrimaryGun.value == "Startergun" then do game.ServerStorage.Guns.Startergun:Clone().Parent = game.Players.LocalPlayer.Backpack
end
script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.Equipment.PrimaryGun.value == "Startergun" then do game.ServerStorage.Guns.Startergun:Clone().Parent = game.Players.LocalPlayer.Backpack
end
The "V" In Value is UpperCase not LowerCase
(Also remember Lua Is Case Sensitive)
Also the "Do" Is not necessary
script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.Equipment.PrimaryGun.Value == "Startergun" then
game.ServerStorage.Guns.Startergun:Clone().Parent = game.Players.LocalPlayer.Backpack
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
thanks i was tired and could not find the error
No problem