#MenuScript help
48 messages · Page 1 of 1 (latest)
pastebin existing
** You are now Level 1! **
No one wants dirty DMs.
🤔
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.
What the fuck?
whats the problem
So why wouldn't have Pastebin worked?
Also it's barely readable without proper formatting.
ehh
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I'm sorry this is my first time doing these things.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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
** You are now Level 2! **