Here is the script in the stereo itself:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local tool = script.Parent
local X = 1
tool.Equipped:connect(function(mouse)
script.Parent.Handle.CanCollide = false
mouse.Button1Down:connect(function()
if X == 1 then
player.PlayerGui.Stereo.TextButton.Visible = true
X = 0
else
player.PlayerGui.Stereo.TextButton.Visible = false
X = 1
end
end)
end)
tool.Unequipped:connect(function(mouse)
script.Parent.Handle.CanCollide = true
player.PlayerGui.Stereo.TextButton.Visible = false
player.PlayerGui.Stereo.TextButton.Sound.Playing = false
X = 1
end)
This is in the gui:
local player = game.Players.LocalPlayer
local X = 1
local Y = 1
script.Parent.MouseButton1Click:connect(function()
if X == 1 then
X = 0
script.Parent.Parent.ID.Visible = true
script.Parent.Parent.Confirm.Visible = true
script.Parent.Parent.Choices.Visible = true
else
script.Parent.Parent.ID.Visible = false
script.Parent.Parent.Confirm.Visible = false
script.Parent.Parent.Choices.Visible = false
script.Parent.Parent.RussianNatinalAnthem.Visible = false
script.Parent.Parent.Yee.Visible = false
script.Parent.Parent.Pizza.Visible = false
X = 1
end
end)
script.Parent.Parent.Confirm.MouseButton1Click:connect(function()
if X == 0 then
script.Parent.Parent.ID.Visible = false
script.Parent.Parent.Confirm.Visible = false
script.Parent.Parent.Choices.Visible = false
script.Parent.Parent.RussianNatinalAnthem.Visible = false
script.Parent.Parent.Yee.Visible = false
script.Parent.Parent.Pizza.Visible = false
local ID = script.Parent.Parent.ID.Text
script.Parent.Sound.SoundId = ("rbxassetid://"..ID)
script.Parent.Sound.Playing = true
X = 1
end
end)
script.Parent.Parent.Choices.MouseButton1Click:connect(function()
if Y == 1 then
script.Parent.Parent.RussianNatinalAnthem.Visible = true
wait(0.1)
script.Parent.Parent.Yee.Visible = true
wait(0.1)
script.Parent.Parent.Pizza.Visible = true
Y = 0
else
script.Parent.Parent.RussianNatinalAnthem.Visible = false
wait(0.1)
script.Parent.Parent.Yee.Visible = false
wait(0.1)
script.Parent.Parent.Pizza.Visible = false
Y = 1
end
end)
script.Parent.Parent.RussianNatinalAnthem.MouseButton1Click:connect(function()
script.Parent.Parent.ID.Text = 720623106
end)
script.Parent.Parent.Pizza.MouseButton1Click:connect(function()
script.Parent.Parent.ID.Text = 248372723
end)
script.Parent.Parent.Yee.MouseButton1Click:connect(function()
script.Parent.Parent.ID.Text = 636843817
end)
local mouse = player:GetMouse()
while wait() do
if script.Parent.Parent.TextButton.Visible == false then
script.Parent.Parent.ID.Visible = false
script.Parent.Parent.Confirm.Visible = false
script.Parent.Parent.Choices.Visible = false
script.Parent.Parent.RussianNatinalAnthem.Visible = false
script.Parent.Parent.Yee.Visible = false
script.Parent.Parent.Pizza.Visible = false
X = 1
end
end
For more information about the scripts and so please ask!
Thanks for answers!

1 comment
Maybe add a :WaitForChild() at the beginning of your script? I don't know if that helps, but give it a shot.