#RemoteEvent not working

13 messages · Page 1 of 1 (latest)

chilly brook
#

My RemoteEvent is not working in one of two scripts
The RemoteEvent is in the ReplicatedStorage and I am sending to the server but the server doesnot get anything

#

this is the client

runService.RenderStepped:Connect(function()
    local character = Player.Character

    if not character then return end

    param.FilterDescendantsInstances = {character.PrimaryPart}
    local overlap = workspace:GetPartsInPart(area, param)
    if #overlap > 0 then
        if script.Parent.Visible == true then
            return
        end

        local checkIfVisible = false
        script.Parent.Visible = true
        if not checkIfVisible then
            print(ShowItemsRemote)
            checkIfVisible = true
            ShowItemsRemote:FireServer()
        end
    else
        if script.Parent.Visible == true then
            script.Parent.Visible = false
        end
    end
end)
vast wave
#

Does it print lua print(ShowItemsRemote) ?

chilly brook
#

for the server

vast wave
#

Alright 👍

chilly brook
vast wave
#

What is it

chilly brook
#

server

ReplicatedStorage.SellSystem.ShowItems.OnServerEvent:Connect(function(player)
    local profile = Manager.Profiles[player]
    if not profile then return end
    
    ReplicatedStorage.SellSystem.ShowItems:FireClient(player, profile.Data.Inventory)
end)

client

ShowItemsRemote.OnClientEvent:Connect(function(player, inventory)
    print("f")
    print(inventory)
end)
#

the param "inventory" ia m sending is nil

#

but on the server side "profile.Data.Inventory" is not nil

#

it should print smt like this