https://www.roblox.com/library/12033351086/OTSModule
- Mouse Icon
local NewOTS = OTS.new(Player : Player, Camera : Camera, Character, CameraOffset : Vector3, FOV, LerpSpeed, MouseIcon)
You need this added to your local script before enabling it. the last to options are completetly optional.
NewOTS:Enable(AllignCharacter : boolean)
Enables the ots system and AllignCharacter
can be also asigned by NewOTS.CharacterAlligned = true
.
NewOTS:Disable(ResetAllignment : boolean)
Disables the ots system and if resetallignment is set to true then it will set NewOTS.CharacterAlligned = false
.
NewOTS:SwitchSide()
Switches to the opposite x side of the camera.
NewOTS.OnUpdated(NewCameraCFrame : CFrame)
Gets called every frame when OTS is enabled, it returns the new camera CFrame.
NewOTS.OnEnabled()
Gets called when the module is enabled.
NewOTS.OnDisabled()
Gets called when the module is disabled.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ContextActionService = game:GetService("ContextActionService")
local OTS = require(ReplicatedStorage.OTSModule)
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Camera = workspace.CurrentCamera
local PlayerOTS = OTS.new(Player, Camera, Character, Vector3.new(2, 2, 8), 40)
ContextActionService:BindAction("OTSEnable", function()
if PlayerOTS.Enabled then
PlayerOTS:Disable()
else
PlayerOTS:Enable()
end
end, false, Enum.KeyCode.LeftShift)