Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

No buttons are working at all once i hover the textbutton nothinghappnes?

Asked by 4 years ago
local startmenugui = game.StarterGui:WaitForChild("startmenugui")
local playbutton = game.StarterGui:WaitForChild("startmenugui"):WaitForChild("Frame"):WaitForChild("frameplay"):WaitForChild("Play")

playbutton.MouseEnter:Connect(function()
    playbutton.BackgroundTransparency = 0
    playbutton.BackgroundColor3 = Color3.new(81, 96, 165)
    startmenugui.Frame.frameplay.Position = UDim2.new ({0.468}, {0,0.143, 0})
    startmenugui.Frane.frameplay.Size = UDim2.new ({0.532, 0},{0.06, 0})
    game.StarterGui:WaitForChild("SoundFX"):WaitForCHild("Hoversound"):Play()
end)

playbutton.MouseLeave:Connect(function()
    playbutton.BackgroundTransparency = 1
    startmenugui:WaitForChild("Frame"):WaitForChild("frameplay").Position = UDim2.new ({0.565, 0},{0.143, 0})
    startmenugui:WaitForChild("Frame"):WaitForChild("frameplay").Size = UDim2.new ({0.435, 0},{0.06, 0})
    game.StarterGui:WaitForChild("SoundFX"):WaitForCHild("Hoversound"):Stop()

end)
0
Did the output leave any errors or warnings? It’s good to include the output’s findings to a question. 123nabilben123 499 — 4y
0
nothing legendarycoos11 1 — 4y

Answer this question