TOPIC DELETED. REASON: Script does not work, after even doing everything to make it work.
1 Like
You just need to check that it was the local player who clicked. If someone else clicks it of course MouseClick
will be fired regardless of it being a local script.
local Players = game:GetService("Players")
local client = Players.LocalPlayer
local Workspace = game:GetService("Workspace")
Workspace.LightSecret.ClickDetector.MouseClick:Connect(function(player_who_clicked)
if player_who_clicked ~= client then -- another player
return
end
Workspace.LightSecret.Anchored = false
end)
2 Likes
Oh! So basically, as long as it knows that player clicked it, it will be able to run correctly inside the camera?
Also happy cake day!
2 Likes
All that is done is to check that the local player clicked and not someone else, and thanks for the happy cake day
2 Likes
Okay! Thank you again for helping me! (you seems to help me always first in my posts lmao)
1 Like