Hi guys, I’m trying to fire a RemoteEvent on the server to the client. I’m 100% sure it fires since I added a print (which is printing)
This is my code on the server:
game.Players.PlayerAdded:Connect(function(Player)
print("Plr added!")
local HighestRankId = 13
for i = 1,#Gamepasses do
local pass = Gamepasses[i][1]
local rank = Gamepasses[i][2]
local name = Gamepasses[i][3]
if Player:GetRankInGroup(GroupId) < rank and MarketplaceService:UserOwnsGamePassAsync(Player.UserId, pass) then
HighestRankId = HighestRankId < rank and rank or HighestRankId
else
wait(5)
print("NOPEH")
game.ReplicatedStorage.Nope:FireClient(Player, "Nope")
end
end
As you can see, it does print the Nope. That’s why I’m so confused why the even’t ain’t firing. Yes there is an actual RemoteEvent called “Nope” in RepStorage.
This is my code on the CLIENT:
local RepStorage = game:GetService("ReplicatedStorage")
local pass = RepStorage:WaitForChild("Nope")
pass.OnClientEvent:Connect(function()
Help would be appreciated!