Heya guys, this is my first question apparently. Well, I'm trying to make a button that makes a sound effect when the mouse is hovering over it. I don't know how to make a script for it so I'll need some help.
The Script I attempted,
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.RulesFrameG.Visible = true
script.Parent.Parent.Visible = false
-- >>Sound Effect on hover over.
-- >> Services
local UserInputService = game:GetService("UserInputService")
-- >> GUI Elements
local GRules = script.Parent
-- >> Player's Mouse
local mouse = game.Players.LocalPlayer:GetMouse()
-- >> Sound
if GRules.MouseEnter = true
then script.Parent.FindFirstChild:("Sound")
Sound.Playing = true
end
end)

2 comments
There is a mouse Enter Event
Yeah, so..?