remote function unable to cast value to object roblox
snippet in lua

remote function unable to cast value to object roblox

user3986

-- server script

-- You need to specify the PLAYER that you want to fire to

local player = game:GetService("Players").PLAYERNAME
local remoteFunction = game.ReplicatedStorage.RemoteFunction
remoteFunction:InvokeClient(player, "arguments")

-- or you can fire ALL the clients 
remoteEvent:InvokeAllClients("arguments")