- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
local player = script.Parent.Parent
local character = player.Character.Humanoid
local settings = game.ServerStorage.AntiCheatConfig
while true do
if player.CameraMaxZoomDistance ~= settings.CameraMaxZoomDistance.Value then player.CameraMaxZoomDistance = settings.CameraMaxZoomDistance.Value end
if player.CameraMinZoomDistance ~= settings.CameraMinZoomDistance.Value then player.CameraMinZoomDistance = settings.CameraMinZoomDistance.Value end
if player.CameraMode ~= 0 then player.CameraMode = 0 end
if player.DevCameraOcclusionMode ~= 0 then player.DevCameraOcclusionMode =0 end
if player.DevComputerCameraMode ~= 0 then player.DevComputerCameraMode = 0 end
if player.DevTouchCameraMode ~= 0 then player.DevTouchCameraMode = 0 end
if player.CanLoadCharacterAppearance ~= true then player.CanLoadCharacterAppearance = true end
if player.DevComputerMovementMode ~= 0 then player.DevComputerMovementMode = 0 end
if player.DevTouchMovementMode ~= 0 then player.DevTouchMovementMode = 0 end
if character.MaxHealth > settings.MaxHealth.Value then character.MaxHealth = settings.MaxHealth.Value end
if character.Health > character.MaxHealth then character.Health = character.MaxHealth end
if character.WalkSpeed > settings.WalkSpeed.Value then character.WalkSpeed = settings.WalkSpeed.Value end
if character.JumpPower > settings.JumpPower.Value then character.JumpPower = settings.JumpPower.Value end
if character.HipHeight > 1 then character.HipHeight = 1 end
wait(.1) -- We don't need crash
end
_____ 04.12.2016 16:31 # −108
AnalniyTerzatel 05.12.2016 11:43 # −108
45Green 07.12.2016 16:36 # −108
3_14stol 04.12.2016 16:40 # −108
3_14dar 05.12.2016 01:41 # −107
В lua для функции min надо ставить отдельное расширение?
if player.CameraMode ~= 0 then player.CameraMode = 0 end
Тут вообще охуеть. А вообще геймоделы это пиздец.
_____ 05.12.2016 08:11 # −107
нет, в дефолтной библе math есть min.
math.min(x, ...)
>А вообще геймоделы это пиздец.
Тут скорее модинг, чем геймдев.
Steve_Brown 05.12.2016 14:37 # −107
Да и не уверен, что использование min будет более наглядно.
45Green 07.12.2016 16:37 # −108
AnalniyTerzatel 08.12.2016 14:10 # −108
O____O 08.12.2016 14:55 # −108