Yup, the OnServerEvent connection works perfectly.
As well as on the Client side of things, you might find issues with your change() functionâs if statement, as thereâs no alternative (add an else and print âNo class found!â) for debugging/information. And passing the class Instance on that, may also be an issue.
Well, the change function works perfectly, as when I type the name of an existing character, My avatar changes into said character. The only thing that doesnât change is the camera, which is what the OnClientEvent connection is supposed to handle.
Could you place the print before trying to do the camera stuff?
The âaâ still doesnât display on the output.
Can you try wrapping your FireClient call within a task.defercall?
task.defer(function()
event:FireClient(plr, clone)
end)
Wrapping it with a task.defer still doesnât work.
Unless for some odd reason your script is being deleted, Iâm not entirely certain as to how this would fail to work at this point.
You might try setting ResetOnSpawn to false on your Gui.
That might work because you are setting the character which causes the script inside starter GUI to refresh
Surprisingly, setting ResetOnSpawn to false worked. Thanks dude!
Figured, itâs usually fairly simple issues.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.