Unable to cast value to object error remoteevent roblox code example
Example 1: remote function unable to cast value to object roblox
local player = game:GetService("Players").PLAYERNAME
local remoteFunction = game.ReplicatedStorage.RemoteFunction
remoteFunction:InvokeClient(player, "arguments")
remoteEvent:InvokeAllClients("arguments")
Example 2: remote event unable to cast value to object roblox
local player = game:GetService("Players").PLAYERNAME
local event = game.ReplicatedStorage.RemoteEvent
remoteEvent:FireClient(player, "arguments")
remoteEvent:FireAllClients("arguments")