Hello
My gui divides the screen by 3.
If my cursor is on label 1, it rotates left. If on label 2, rotates back to the middle.
Problem
(yes, it’s a toilet)
As seen, everything is ok with label 1. But if I hover my cursor on label 2, it rotates back to middle after a 360 degree turn. I don’t want that.
Script
local label = script.Parent
local player = game.Workspace.Gameplay.Character.Player_Cubic
label.MouseEnter:Connect(function()
print("Cursor entered the middle label")
local TweenService = game:GetService("TweenService")
local part = game.Workspace.Gameplay.Character.Player_Cubic
local goal = {}
goal.Orientation = game.Workspace.Gameplay.Character.Player_Cubic.LookingMiddle.Orientation
local tweenInfo = TweenInfo.new(0.5)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
end)
label.MouseLeave:Connect(function()
print("Cursor left the middle label")
end)
Additional Information
This game doesn’t use roblox’s default character controller. I’m creating something like FNaF 4’s controller.
Player is made out of a single cube, and the camera moves with it.