Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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).

This discussion is preserved as it was. New answers, comments, and votes are closed.