I’m trying to just make the part invisible for the client when they step on the part.
(Simplified of version for a more complex mechanic in a game)
I don’t know why but the client event doesn’t seem to fire.
“hit”, and the player name prints, but “Invisible” doesn’t, nor does the part go invisible.
Yeah. That was just because I quickly whipped up a much more simplified version of the experiment for the post. The actual use is turning on a spinning arrow, to designate a drop-off point, but has a lot of other parts around it that i already knew weren’t the problem.
--<Server:
game:GetService("ReplicatedStorage").RemoteEvent:FireClient(game.Players.MightTea);
--<Client:
game:GetService("ReplicatedStorage").RemoteEvent.OnClientEvent:Connect(function(Arg)
print(Arg);
end)
--[[This will output nil, since the only argument that was passed was the player object, which
is required when using firing clients]]
--//
--<Server
game:GetService("ReplicatedStorage").RemoteEvent:FireClient(game.Players.MightTea, "Hello World");
--<Client
game:GetService("ReplicatedStorage").RemoteEvent.OnClientEvent:Connect(function(Arg)
print(Arg);
end)
--[[
This will then output "Hello World" since it's the first 'actual' argument
So I don't quite understand what you mean? Could You Explain?
]]