The freecam I’ve made works and is completely optimized, only problem is it may be weaponized by exploiters.
Context: This freecam is only usable for players when they’re in a spectator mode
However, exploiters can use the freecam system as a player who is currently in the round and then keep themselves safe.
But then again, tons of exploiters already have something like that such as freecam or ESP.
It would be a simple sanity check, in an attributechangedsignal event.
-- Client
Player:GetAttributeChangedSignal("CustomCamera"):Connect(function()
SanityCheck:FireServer()
end)
-- Server
SanityCheck.OnServerEvent:Connect(function(plr)
local CustomCamera = Player:GetAttribute("CustomCamera")
if not CUstomCamera then
plr:Kick()
end
end)