i get this error:13:18:03.913 - Trying to call method on object of type: RemoteEvent
with incorrect arguments.
when i do this:
Server script
textlabelchanger = game.ReplicatedStorage:WaitForChild("TextLabelChanger") -- a remote event local function textlabelchange (player) textlabelchanger:FireClient(player) end textlabelchange(player)
Local script
playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui") textlabelchanger = game.ReplicatedStorage:WaitForChild("TextLabelChanger") textlabel = playergui.ScreenGui:WaitForChild("TextLabel") local function textlabelchange() textlabel.BackgroundTransparency = 0.5 textlabel.BorderSizePixel = 2 end textlabelchanger.OnClientEvent:Connect(textlabelchange)