remote.Event:Connect(function(playerName) local value = math.random(1, 35) local location = game.ReplicatedStorage.PlayerInventories.playerName location.otherValues.powerMastery.Value = value local value = math.random(1,7) location.otherValues.formMastery.Value = value end)
I'm pretty new to scripting, and I just started using Bindable events. I want to change the location variable to have the players name on the end so I can refrence the players inventories
remote.Event:Connect(function(playerName) local value = math.random(1, 35) local location = game.ReplicatedStorage.PlayerInventories[playerName] location.otherValues.powerMastery.Value = value local value = math.random(1,7) location.otherValues.formMastery.Value = value end)
Heres the asnwer for future players, courtesy of Practera#3811