Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

if i use bindable event to increase the ammo of one player´s gun help ?

Asked by 4 years ago

if i use bindable event to increase the clipsize of the weapon. so each player have then the same value. the weapon is in the StarkerPack someone an idea ? ?

1 answer

Log in to vote
0
Answered by 4 years ago

Hello, hope this helps:

--First Server script sender:
for i, plr in pairs(game.Players:GetChildren()) do
    plr.Backpack.Weapon.Recieve:Fire()--Weapon, name of your weapon, Recieve, name of your bindable event
end
--Second script reciever.
script.Parent.Recieve.Event:Connect(function() --The Name of your remote event, change receive to the name of your remote event
    script.Parent.Ammo.Value = 20 --Your ammo value
end)

Hopefully that helps.

0
dont work, but thanks =) catkidmiau -1 — 4y
Ad

Answer this question