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

?My script does not return a output but my camera script won't do anything

Asked by 4 years ago

So because of exploiters being able to change their camera

I did this in a server script

But I don't know how I'm going to go about it on Server Script

I tried and here's the script

And btw Part is just a normal part in workspace


game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(Char) local Camera = workspace.CurrentCamera repeat wait() Camera.CameraType = Enum.CameraType.Scriptable until Camera.CameraType == Enum.CameraType.Scriptable Camera.CFrame = workspace.Part.CFrame end) end)

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

You cannot access cameras from the server.

In general, you can't stop exploiters from doing whatever they want on their own client - instead, try to prevent them from negatively impacting other players.

If you need exploiters to be unable to see a secret room (for example), don't allow the secret room to replicate to a player unless they're supposed to see it.

You can also try to track where clients have been and see if they're aiming at or using things that should be out of sight - though you'd need to be careful about false positives (due to lag, a legitimate player may appear to do impossible things even though they're not cheating).

Ad

Answer this question