Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED]Calling client from server works in studio, But not in the actual server?

Asked by 5 years ago
Edited 5 years ago

I know about filtering enabled and I've done most of this right, But for some reason whenever I call a remote event/function from the server to the client, It works in studio but when I go into the server and do the same thing, It says that it has to be a player object.

local Players = game:GetService("Players"):FindFirstChild(Tool.Parent.Name)

script.Parent.Equipped:Connect(function()
    Equipped = true
    game.ReplicatedStorage.ChangeCursor:FireClient(Player, "1776629404")

end)

I've tried using playerfromcharacter, Just getting the name. It still didn't work.

1 answer

Log in to vote
0
Answered by 5 years ago

\I'm such an idiot, It was setting the player as the backpack because that part of the script loaded before you pulled it out. FacePalm

1
If your question is sovled, edit your question title to include "[SOLVED]". RAYAN1565 691 — 5y
Ad

Answer this question