Hello there! I have a LocalScript which waits for a Remote Function in Replicated Storage
I have the following code:
local Replicated_Storage = game:GetService("ReplicatedStorage")
Replicated_Storage:WaitForChild("SomeRemoteFunction").OnClientInvoke = function(GroupID, RankType)
if RankType == 1 then -- Rank ID
return LocalPlayer:GetRankInGroup(GroupID)
elseif RankType == 2 then -- Role
return LocalPlayer:GetRoleInGroup(GroupID)
else -- Is In Group
return LocalPlayer:IsInGroup(GroupID)
end
end
-- CODE ISN'T EXECUTED AFTER THIS POINT
script.Parent.Welcome.Visible = true
The thing is, I want my code to continue running even if an Infinite yield possible event/error/warning occurs.
Any help would be appreciated!

1 comment
Try using pcall