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

Do actions of local scripts only show for that specific player?

Asked by 5 years ago

Hello. I need help with Local Scripts. If a block is CanCollide = true and I use a local script to make it CanCollide = false, does it only work for the specific player?

Code:

local Block = game.Workspace.TestBlock
local Click = Block.ClickDetector
Click.MouseClick:Connect(function(plrclick)
if plrclick.Name == game.Players.LocalPlayer.Name then
Block.CanCollide = false
wait(10)
Block.CanCollide = true
end
end
0
Assuming FE, then yeah. Only that player will be able to see that change. ScrewDeath 153 — 5y
0
MouseClick is server side only... ? User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

If your game is FilteringEnabled, then yes, if not then no.

FilteringEnabled prevents the client from making any arbitrary action they like on the server. Any action done on the client will not replicate to the server.

However, some stuff are allowed to be replicated to the server from the client, such as: clothing, physics, and animations

Ad

Answer this question