I am making a ammo reload gun on a Function(click)
, however I have made a clickdetector and connected a mousebutton1click into the click detector. My script here:
game.Workspace.AmmoBasket.ClickDetector.Parent = MouseButton1Click
when game.AmmoBasket.ClickDetector.Clicked = true do
game.StarterPack.AK47.AmmoValue + 1
function(click)
game:GetService(“CollectionService”)
local CS = Game:GetService(“Value”)
CS.AmmoValue = local Value
When workspace.AmmoBasket.ClickDetector.Clicked = true then
AmmoValue + 100
I don’t know why this isn’t working, I am assuming that CollectionService is a good helper when it comes to this but I am not sure on why its not functioning.