#How do I add CFrame Orientation(Angle) into my script?

1 messages · Page 1 of 1 (latest)

pliant marten
#
local TS = game:GetService("TweenService")

local TI = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)
local ToiletSeat = script.Parent.ToiletSeat
local TolietSeatOpen = script.Parent.ToiletSeatOpen
local TolietSeatClose = script.Parent.ToiletSeatClose

local Open = TS:Create(ToiletSeat, TI, {Position = TolietSeatOpen.Position, Size = TolietSeatOpen.Size})
local Close = TS:Create(ToiletSeat, TI, {Position = TolietSeatClose.Position, Size = TolietSeatClose.Size})

local TOILETSEATPART = script.Parent.Seat

local size = ToiletSeat.Size

local debounce = false
local Value = script.Parent.OpenOnStart

local CD = ToiletSeat.ClickDetector

CD.MouseClick:Connect(function(player)
    if Value.Value == true then
        Open:Play()
        wait(5)
        debounce = true
        Value.Value = false
        TOILETSEATPART.Disabled = false
    elseif Value.Value == false then
        Close:Play()
        wait(5)
        debounce = false
        Value.Value = true
        TOILETSEATPART.Disabled = false
    end
end)```
weary stream
#

alr now mb

#

what are we making here 💔

#

Also, cant you just use CFrame alone? That pretty much includes the orientation except you only want the orientation

#

Then id suggest using :LookVector()

#

elaborate a bit pls

pliant marten
#

Ive sorted it now