#i want to find the gui through a remote event

10 messages · Page 1 of 1 (latest)

stark wagon
#

local VHS = game.ReplicatedStorage.ToggleVHSEvent

local VHS = game.StarterGui.VHS
local button = script.Parent.Parent.TextButton
local sound = game.StarterGui.VHS.ambient
local equalizer = game.StarterGui.VHS.ambient.EqualizerSoundEffect

button.MouseButton1Click:Connect(function()
VHS.Enabled = not VHS.Enabled
equalizer.Enabled = not equalizer.Enabled
end)

script.Parent.MouseButton1Click:Connect(function()

if sound.Volume == 0 then

    sound.Volume = 1.5

else

    sound.Volume = 0

end

end)

i dont understand this shit

icy bone
#

wdym you want to find the gui using a remote event

#

just do script.Parent.Gui or smth or use getservice

stark wagon
#

cuz its a different startergui

#

game.startergui.vhs doesnt work

#

local VHS_Filter = game.Players.LocalPlayer.PlayerGui:WaitForChild("VHS_Filter")
local button = script.Parent.Parent.TextButton
local sound = game.StarterGui.VHS_Filter.ambient

button.MouseButton1Click:Connect(function()
VHS_Filter.Enabled = not VHS_Filter.Enabled
end)

script.Parent.MouseButton1Click:Connect(function()

if sound.Volume == 0 then

    sound.Volume = 1

else

    sound.Volume = 0

end

end) did this but i dont wanna do this shit locally

icy bone
#

use Lua local startergui = game:GetService("StarterGui") sorry typing this on mobile

#

and then do Lua local VHS = startergui.VHS

#

Also why do you have 2 mousebutton1click

dawn ferry