I basicly have a sidebar to navigate to different pages and there’s a blob to tell you what page you are on. The main problem is the blob and the buttons position are fine on my
creator account but the others don’t.
What I tested is I tried using it on 2 different accounts on the same PC but it just doesnt function properly
And here are the scripts (It shouldn’t be about the on screen position from what i see)
local TS = game:GetService("TweenService")
local PageLayout = script.Parent.Parent.Parent.MainContent.UIPageLayout
local MainContent = script.Parent.Parent.Parent.MainContent
local SelectedBlob = script.Parent.Parent.Ignored.Selected
local Buttons = script.Parent
local Tinf = TweenInfo.new(0.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut)
local AnimB,AnimC
--Jump to
Buttons.MainMenu.Activated:Connect(function()
PageLayout:JumpTo(MainContent.MainMenu)
end)
Buttons.SelectRole.Activated:Connect(function()
PageLayout:JumpTo(MainContent.SelectRole)
end)
Buttons.SelectedRole.Activated:Connect(function()
PageLayout:JumpTo(MainContent.SelectedRole)
end)
Buttons.SelectedRoleTools.Activated:Connect(function()
PageLayout:JumpTo(MainContent.SelectedRoleTools)
end)
Buttons.ToggleContent.Activated:Connect(function()
if MainContent.Position.X.Scale > 0 then --Hide
Buttons.ToggleContent.Showing.Value = false
elseif MainContent.Position.X.Scale < 0 then --Show
Buttons.ToggleContent.Showing.Value = true
end
ContentToggle()
end)
Buttons.SettingsMenu.Activated:Connect(function()
PageLayout:JumpTo(MainContent.SettingsMenu)
end)
--Misc
function ContentToggle()
if Buttons.ToggleContent.Showing.Value == false then
AnimC = TS:Create(MainContent,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Position = UDim2.new(-0.239,0,MainContent.Position.Y.Scale,0)})
Buttons.ToggleContent.Icon.Showing.Visible = false
Buttons.ToggleContent.Icon.Hiding.Visible = true
Buttons.ToggleContent.Showing.Value = false
elseif Buttons.ToggleContent.Showing.Value == true then
AnimC = TS:Create(MainContent,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Position = UDim2.new(0.06,0,MainContent.Position.Y.Scale,0)})
Buttons.ToggleContent.Icon.Showing.Visible = true
Buttons.ToggleContent.Icon.Hiding.Visible = false
Buttons.ToggleContent.Showing.Value = true
end
AnimC:Play()
AnimC:Destroy()
end
function Move(PageButton)
if PageButton ~= nil then
AnimB = TS:Create(SelectedBlob,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Position = UDim2.new(0.125,0,-0.035,PageButton.AbsolutePosition.Y)})
else
AnimB = TS:Create(SelectedBlob,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{Position = UDim2.new(0.125,0,-0.035,Buttons[PageLayout.CurrentPage.Name].AbsolutePosition.Y)})
end
AnimB:Play()
AnimB:Destroy()
local AnimS1 = TS:Create(SelectedBlob,Tinf,{Size = UDim2.new(0.75,0,0.067+0.025,0)})
AnimS1:Play()
AnimS1:Destroy()
wait(0.5)
local AnimS2 = TS:Create(SelectedBlob,Tinf,{Size = UDim2.new(0.75,0,0.067,0)})
AnimS2:Play()
AnimS2:Destroy()
end
Move(Buttons.MainMenu)
--Event trigger
PageLayout:GetPropertyChangedSignal("CurrentPage"):Connect(Move)
Buttons.ToggleContent.Changed:GetPropertyChangedSignal("Value"):Connect(ContentToggle)