Yeah, inventory guis can be buggy.
Edit: so it is all working now?
if i turn off the inventory gui, i can grab the gun. the ammo box script still doesn’t work though
No errors? Again, what’s the ammo script?
I can’t read that, just send the error.
MouseClick is not a valid member of UnionOperation “Workspace.AmmoBox” - Server - Script:1
Ok so a picture of the ammo box again?
um what? i’m not sure i understand your question
Could you send a picture of the ammo box and it’s children?
The script I sent was for if the script was inside of the detector this should work:
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
for _,tool in ipairs(plr.Backpack:GetChildren()) do
local MaxAmmo = tool:FindFirstChild("MaxAmmo")
if tool:IsA("Tool") and MaxAmmo then
MaxAmmo.Value += 12
end
end
end)
nothing. still no errors in the output
Are you sure there aren’t any errors? Maybe a warning like “Infinite yield possible”
nope, just the same errors from the previous ammo box that also didnt work
Well, not working for me either now…
Edit: wait might have fixed it.
Example ammo box (cut the click detector and paste into your ammo box)
click.rbxm (3.1 KB)
Example tool (if the box isn’t working with existing tools try with this tool in starterpack)
gun.rbxm (902 Bytes)
it just seems to open roblox studio instead of the game
What do you mean? The models??
(.rbxm)
yeah i download it, click to open it and it just opens roblox studio
You need to download it then drag the files into workspace.