I’m trying to communicate a variable between localscripts using a bindable event
I tell it to print each variable and it prints the correct values once, but on a second line it prints values of other variables in the original localscript
textbox = script.Parent
game.ReplicatedStorage.gui.Event:Connect(function(gunname,cammo, b)
print(gunname,cammo,b)
textbox.Text = gunname
end)
gunname = “Tec-9”
cammo = 32
gundamage(aka ‘b’) = 25
it prints these values in order on one line and then on another line prints “32,2,3” which are all other variables from the sending script
I use this same event in another very similar localscript, and it works flawlessly.
I have no idea why it is doing this, please help