A really simple script that just doesn’t work
local EI = game.ReplicatedStorage:WaitForChild("eventIce")
EI.OnServerEvent:Connect(function()
EI:FireClient()
end)
That’s the code, Here’s what I get:
Here’s my explorer:
CameraCode is the script that fires the server event.
local player = game.Players.LocalPlayer
local ownsGamepassGrass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,58268972)
local ownsGamepassIce = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,58269084)
local eveIce = game.ReplicatedStorage:WaitForChild("eventIce")
local eveGrass = game.ReplicatedStorage:WaitForChild("eventGrass")
if ownsGamepassIce then
eveIce:FireServer()
end
I don’t know why, but I keep getting the error: " Argument 1 missing or nil" from the server script and I don’t know how to fix it, if anyone knows how to fix this I wish if you could also explain why the error happned in the first place. Thanks.