Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Event won't fire but prints something?

Asked by 5 years ago

I am making a script that checks if a player has a gamepass then fires a event. But for some reason, the event won't fire. It prints "fired event?!" but nothing happens. Also, whats a good place to put events? Thanks. (btw, ik the script that detects when the event fires work.)

local marketPlaceServ = game:GetService("MarketplaceService")
local gamePassId = 5650104
game.Players.PlayerAdded:Connect(function(player)
    if marketPlaceServ:UserOwnsGamePassAsync(player.UserId, gamePassId) then
    local event = game.Workspace:WaitForChild("Events").GuacamoleGamepass
        event:FireClient(player)
        print("fired event?!")
    end
end)


0
can send also include the client side script? Vain_p 78 — 5y
0
show us the onclientevent Imperialy 149 — 5y

Answer this question