#Gui not opening after one time
4 messages · Page 1 of 1 (latest)
local button = script.Parent
button.MouseEnter:Connect(function()
game:GetService('ReplicatedStorage').Audio.RollHover:Play()
end)
local function SetAuraFilter()
local tableValues = {}
for i, v in ipairs(button.Parent.AuraFrame.ScrollingFrame:GetChildren()) do
if v.ClassName == "TextButton" and v:FindFirstChild("AutoButton") then
table.insert(tableValues, {v.Name, v.AutoButton.TextLabel.Text})
end
end
game:GetService('ReplicatedStorage').Remotes.SetAuraFilter:FireServer(tableValues)
for i, v in ipairs(script.Parent.Parent.AuraFrame.ScrollingFrame:GetChildren()) do
if v.ClassName == "TextButton" then
v:Destroy()
end
end
end
button.MouseButton1Click:Connect(function()
SetAuraFilter()
game:GetService('ReplicatedStorage').Audio.Click:Play()
game.Players.LocalPlayer.PlayerGui.MainScreenGui.Enabled = true
game.Players.LocalPlayer.PlayerGui.LibraryScreenGui.Enabled = false
local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Follow
game.StarterGui:SetCoreGuiEnabled("PlayerList", true)
game.StarterGui:SetCoreGuiEnabled("Chat", true)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.StarterPlayer.CharacterWalkSpeed
game.Players.LocalPlayer.Character.Humanoid.JumpPower = game.StarterPlayer.CharacterJumpPower
end)
its two individual
one for the index click and the other for the self index and the save and exit so you exit out of the index