Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This script wont open the other gui it is not working and there is no errors?

This script wont open or close

wait(10)
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local StarterGui = game:GetService("StarterGui")
local Open = false
local Mouse = player:GetMouse()

local startgui = player.PlayerGui.Starmenu
local start = player.PlayerGui.Starmenu.Frame.Start
local audio = player.PlayerGui.Audio
local vtb = player.PlayerGui.Starmenu.Frame.Viewtrendsbutton
local trendgui = player.PlayerGui.Trendinggui.Frame
local vtbclose = player.PlayerGui.Trendinggui.Frame.Close






vtb.Activated:Connect(function()
	trendgui.Visible = true
	audio.Click:Play()
	startgui.Enabled = false
end)

2 answers

✓ Accepted answer

Activated isn't a function of user interface buttons. To get what you want, use Button1Down instead.

1 comment

0

thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.