I have a problem that I can’t seem to solve on my own regarding events.
When for example I make a GUI that gives a tool to a player, 3 different tools
for each GUI figure (3 text boxes for example, each for getting a separate tool )
sample code in GUI TextBox :
script.Parent.MouseButton1Click:Connect(function()
local event = replicatedstorage.event
event:FireServer()
sample script in server script service for the event :
game.ReplicatedStorage.event.OnServerEvent:Connect(function(plr)
local tool1 = game.replicatedstorage.tool1
tool1.Parent = plr.Backpack
So that would mean I would have to create 100 events for 100 weapons, and i’ve got way more weapons than that , so any suggestions on what I could do instead of using hundred of events? (also would I have to use a separate script in each of the hundred weapon purchase gui buttons rather than one central script or something?)
Thanks for any help.