Releases: AlternativeLua/OTSModule
Version: 1.2
OTSModule
https://www.roblox.com/library/12033351086/OTSModule
To Do
- Mouse Icon
Constructor
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.
Functions
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.
Events
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.
Example code
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)V 1.1
OTSModule
https://www.roblox.com/library/12033351086/OTSModule
To Do
- Mouse Icon
Constructor
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.
Functions
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.
Events
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.
Example code
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)V 1.0
First Release.