So I sent in these values through a remote event
script.touchEvent:FireClient(game.Players[plr], p, 1, 2)
but when the client receives this, it gets this
Part nil nil
Does anyone know why?
The full script:
function fire(p)
local plr = script.Parent.Name
script.touchEvent:FireClient(game.Players[plr], p, game.Players[plr].leaderstats.Money.Value, game.Players[plr].leaderstats.Role.Value)
end
script.Parent.LowerTorso.Touched:Connect(fire)

4 comments
I need this as a server script as a security check to see if the player has the right values
You can make a instance and make it a string value then parent it to the server script then do a if else statement from there, if string value.value = this then (code) else return false.
not sure what you really mean
Make a stringValue element then change it when you want to activate the confirmation, then it is just an if else statement