so im just trying to fire a remote event in a script but the script thinks that the ‘end)’ is meant to be the end of the if statement. how could I fix this?
if msg ~= '' then scrpt.Parent.chat:FireAllClients(plr.Name,msg)end)end
so im just trying to fire a remote event in a script but the script thinks that the ‘end)’ is meant to be the end of the if statement. how could I fix this?
if msg ~= '' then scrpt.Parent.chat:FireAllClients(plr.Name,msg)end)end
Could you send the whole code?
Ok, that’s confusing. Your issue might be that you’re trying to use “)” on the if statement’s “end”.
Try switching the line you provided us to this:
if msg ~= "" then scrpt.Parent.chat:FireAllClients(plr.Name,msg)end end
What do you try to achieve with this?
the script just breaks with no error if i do so
Try removing the last “end” from that line.
breaks because the if statement hasn’t been closed
Can you show us the entire script so we can better understand your code?
You put scrpt instead of script, if that helps.
I forgot that line of code was inside of a non closed event. it works now