i think it might be bc i have too many parameters, but idk if there is a cap. btw, if i remove the plr parameter, it just says cannot cast value to object
localscript recieving event:
local guiOpen = game.ReplicatedStorage.remotes.guiAutoOpen
local machineInUse = "1"
guiOpen.OnClientEvent:Connect(function(plr, machineNum, churn, pour, store)
machineInUse = machineNum
print(store)
script.Parent.Enabled = true
script.Parent.churn.Text = churn
script.Parent.pour.Text = pour
script.Parent.store.Text = store
end)
serverscript sending event:
activateProx.Triggered:Connect(function(player)
guiOpen:FireClient(player, machineNum, pourPart, churnPart, storePart)
end)
everything here is defined correctly, tested using print beforehand ^^^