Well im trying to make this script and I have filtering enabled on and for some reason in the onclientevent part i put in player and in the local script it does not get that but instead thinks its the next variable.
Server Script:
game.ReplicatedStorage.ItemLook:FireClient(player, script.Parent.NameValue.Value, script.Parent.CashValue.Value, script.Parent.Desc.Value)
Local Script
game.ReplicatedStorage.ItemLook.OnClientEvent:connect(function(player, name, cash, desc)
Please help!
Hey outlook1234567890,
---- SERVER SCRIPT ---- game.ReplicatedStorage.ItemLook:FireClient(player, player.Name, script.Parent.NameValue.Value, script.Parent.CashValue.Value, script.Parent.Desc.Value) ---- SERVER SCRIPT ---- ---- LOCAL SCRIPT ---- local plr = game.Players.LocalPlayer; game.ReplicatedStorage.ItemLook.OnClientEvent:connect(function(player_name, name, cash, desc) if player_name == plr.Name then print("Yes, the player is the correct player."); end end) ---- LOCAL SCRIPT ----
~~ KingLoneCat