RBXScriptSignal Problem

Hello, I have a problem with events. When I run the script you see below, I get the error you see in the photo. what is the solution to this?

local RS = game:GetService("ReplicatedStorage")
local ItemAldiE = RS:WaitForChild("ItemAldiEvent")

ItemAldiE.OnServerEvent.Connect(function(oyuncu, item)
end)

1 Like

Hello

is :Connect() not .Connect()

1 Like

You’re should use :Connect() not .Connect.

local RS = game:GetService("ReplicatedStorage")
local ItemAldiE = RS:WaitForChild("ItemAldiEvent")

ItemAldiE.OnServerEvent:Connect(function(oyuncu, item)
end)

ohh, thank you. I did not see.