Hi, so I have this string value called “MetalName” and whenever I print it before the event and it prints the correct value but on the other side of the event it prints nil. There is no error message
first picture(server)
Second picture (client)
Your OnClientEvent
and your FireClient
don’t match up, you pass in 1 parameter but OnClientEvent expects 2, the player doesn’t count as a parameter for the event since that’s so it knows who the fire the event to,
Also your if statement i nthe OnClientEvent
should be
if name ~= script.Parent.Name then return end
not
has high priority so your not name
would turned into a boolean
1 Like