#RemoteEvent not working
13 messages · Page 1 of 1 (latest)
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)
Does it print lua print(ShowItemsRemote) ?
i already fixed it but thanks
dunno what the problem was tho I change the module script to script
for the server
Alright 👍
but could you help me with something else?
What is it
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