Can't return a :Connect() pcall function?
Asked by
6 years ago Edited 6 years ago
Edit, I got the Pcall working, but the function won't end after it doesn't get an error.
4 | while success ~ = true then |
Original Question:
The problem with this is that it doesn't end the function when it loads a shirt successfully.
I have a script that checks for Pcall at a connect() function. I can't seem to figure out how to get the pcall to work.
1 | game.ReplicatedStorage.ClothingGUI.OnServerEvent:Connect( local success,message = pcall ( function (dp,p,et,ID) |
In this, I get an error on local, and =. Then I tried changing it to this:
1 | game.ReplicatedStorage.ClothingGUI.OnServerEvent:Connect( function (dp,p,et,ID) local success,message = pcall () |
and when I called for success, it said there was no function attached to it, where would I put the pcall here?