#MenuScript help

48 messages · Page 1 of 1 (latest)

tulip flower
#

I probably didn't explain it very well, my English isn't great. I can explain it in detail through DM.

#

im from turkish btw

nimble merlin
#

pastebin existing

tulip flower
#

wait i will try

idle terraceBOT
#

studio** You are now Level 1! **studio

tulip flower
#

nah i cant do this

#

come dm

indigo seal
#

No one wants dirty DMs.

tulip flower
#

how i send my code

indigo seal
#

Pastebin.

#

As Izan990 already's suggested.

tulip flower
#

dosent work because

#

message so long

indigo seal
#

🤔

tulip flower
#

oh

#

wait

#

local TweenService = game:GetService("TweenService")
local ButtonTween = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local FrameTween = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local TransitionTween1 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
local TransitionTween2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)

local MainFrame = script.Parent

local Buttons = MainFrame.Buttons
local Popups = MainFrame.Popups
local Title = MainFrame.Title

local PlayButton = Buttons.Play
local SettingsButton = Buttons.Settings
local CreditsButton = Buttons.Credits

local Transition = MainFrame.Parent.Transition

for i, v in pairs(Buttons:GetChildren()) do
if v:IsA("Frame") then
v.MouseEnter:Connect(function()
TweenService:Create(v, ButtonTween, {BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play()
end)

    v.MouseLeave:Connect(function()
        TweenService:Create(v, ButtonTween, {BackgroundColor3 = Color3.fromRGB(30,30,30)}):Play()
    end)
end

end

local function openPopup(popupName)

for i, v in pairs(Buttons:GetDescendants()) do
    if v:IsA("TextButton") then
        v.Visible = false
    end
end

TweenService:Create(Buttons, FrameTween, {Position = UDim2.new(0.5, 0, 1.1, 0)}):Play()
TweenService:Create(Title, FrameTween, {Position = UDim2.new(0.5, 0, -0.15, 0)}):Play()

TweenService:Create(Popups:FindFirstChild(popupName), FrameTween, {Position = UDim2.new(0.5, 0, 0.5, 0)}):Play()
Popups:FindFirstChild(popupName).Back.TextButton.Visible = true

end

#

local function closePopup(popupName)

for i, v in pairs(Buttons:GetDescendants()) do
    if v:IsA("TextButton") then
        v.Visible = true
    end
end

TweenService:Create(Buttons, FrameTween, {Position = UDim2.new(0.5, 0, 0.729, 0)}):Play()
TweenService:Create(Title, FrameTween, {Position = UDim2.new(0.5, 0, 0.299, 0)}):Play()

TweenService:Create(Popups:FindFirstChild(popupName), FrameTween, {Position = UDim2.new(0.5, 0, 1.5, 0)}):Play()
Popups:FindFirstChild(popupName).Back.TextButton.Visible = false

end

SettingsButton.TextButton.MouseButton1Click:Connect(function()
openPopup("Settings")
end)

CreditsButton.TextButton.MouseButton1Click:Connect(function()
openPopup("Credits")
end)

Popups.Settings.Back.TextButton.MouseButton1Click:Connect(function()
closePopup("Settings")
end)

Popups.Credits.Back.TextButton.MouseButton1Click:Connect(function()
closePopup("Credits")
end)

PlayButton.TextButton.MouseButton1Click:Connect(function()
for i, v in pairs(Buttons:GetDescendants()) do
if v:IsA("TextButton") then
v.Visible = false
end
end

TweenService:Create(Buttons, FrameTween, {Position = UDim2.new(0.5, 0, 1.1, 0)}):Play()
TweenService:Create(Title, FrameTween, {Position = UDim2.new(0.5, 0, -0.15, 0)}):Play()

TweenService:Create(Transition, TransitionTween1, {Position = UDim2.new(0.5,0,0,0)}):Play()

wait(2)

TweenService:Create(Transition, TransitionTween1, {Position = UDim2.new(0.5,0,1,0)}):Play()
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom

wait(0)

script.Parent.Parent:Destroy()

end)

#

"I couldn't think of that, I'm sorry."

#

I need to combine these two GUIs.
Clanspin Gui and MainMenu Gui
So what I'm trying to do is, my entire menu and animation are ready. I need to add a new button to that menu, and set it up so that it opens and closes this separate GUI with the same animation.

indigo seal
#

What the fuck?

tulip flower
#

whats the problem

indigo seal
#

So why wouldn't have Pastebin worked?

#

Also it's barely readable without proper formatting.

tulip flower
#

ehh

indigo seal
tulip flower
#

OH

#

Lmao

#

sorry

indigo seal
#

Since 2002.

#

Place it here.

tulip flower
#

WWABRAÖWRBŞÖAWB

#

okay

#

okay

indigo seal
#

And set Lua.

tulip flower
#

I'm sorry this is my first time doing these things.

#

Actually, there’s no issue with my code, everything is in place. I just need to combine a separate ScreenGui with the MenuGui.

#

So what I mean by combining is that I will add a button to the 'buttons' section of the menu, and when that button is pressed, this ScreenGui will appear and disappear with an animation.

#

I think I can explain it better in my own language, maybe I can convey it more clearly this way.

#

Dediğim gibi menümde Credit tuşu olsun felan bastığımda yukarı doğru popupum çıkıyor ve bir sorunla karşılaşmıyorum sadece o tuşların yanına birde clanspin tuşu ekleyip onun menü bağlantısını başka bir screengui üzerinden gerçekleştirmek istiyorum

idle terraceBOT
#

studio** You are now Level 2! **studio

tulip flower
#

yani birnevi bağlamak oluyor

#

ve attığım koddaki popup animasyonlarının aynısını Clanspin guimdeki framede gerçekleştirmek istiyorum