Noone else can use the gui but i can. In startergui

You can write your topic however you want, but you need to answer these questions:

  1. **What do you want to achieve?*I want that the main menu works by evreyone not only me.

  2. *What is the issue? That the main menu only works by me.

  3. **What solutions have you tried so far?*Ive looked on devforum and youtube and google.

Here is a video with me trying and my sister trying.

robloxapp-20211107-1011123.wmv (896.0 KB)

robloxapp-20211107-1012351 (1).wmv (653.8 KB)

And here are the scripts.(all are local scripts.)

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.ChangelogFrame.Visible = true
end)

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Parent.Parent.Enabled = false

script.Parent.Parent.Visible = false

end)

wait(1)

player = game.Players.LocalPlayer

button = script.Parent

local debounce = false

function teleport()

if not debounce then

debounce = true

LowerTorso = player.Character.LowerTorso

LowerTorso.CFrame = game.Workspace.Spawn2.CFrame

end

end

button.MouseButton1Click:Connect(teleport)

while true do wait()

debounce = false

wait(1)

end

Please tell my how i fix it.

1 Like
for i,player in pairs(game:GetService("Players"):GetPlayers())do
    player.PlayerGui:WaitForChild("GuiName").Enabled = true
end

That’s if you have the gui in starterGui pack ^

1 Like
local players = game:GetService("Players")
local screenGui = script.Parent

players.PlayerAdded:Connect(function(player)
	if player.Name == "GamingWolfyt001" then
		screenGui.Enabled = true
	else
		screenGui.Enabled = false
	end
end)

Here’s a very simple way of achieving this, just place the local script inside the screenGui itself.

1 Like

Evreyone can see the gui just cant use it, it only works by me.

1 Like

IS that a localscript or script, and where should i put it)

1 Like
local players = game:GetService("Players")
local player = players.LocalPlayer or players.PlayerAdded:Wait()
local character = player.Character or player.CharacterAdded:Wait()
local hmr = character:WaitForChild("HumanoidRootPart")
local button = script.Parent
local debounce = false

local function teleport()
	if debounce then
		return
	end
	debounce = true
	hmr.CFrame = game.Workspace:WaitForChild("Spawn2").CFrame
	task.wait(3)
	debounce = false
end

button.MouseButton1Click:Connect(function()
	button.Parent.Visible = false
	button.Parent.Parent:WaitForChild("ChangelogFrame").Visible = true
	if player.Name == "GamingWolfyt001" then
		button.Parent.Parent.Enabled = true
		button.Parent.Visible = true
		teleport()
	else
		button.Parent.Parent.Enabled = false
		button.Parent.Visible = false
	end
end)

Organisation:

image

I put it in changelogframe as a local script but it still dosent work for my sister.

What’s her username? It’ll need to be added to the script with this line of code:

if player.Name == "GamingWolfyt001" then

But i want evreyone to use it.

Oh, okay, I thought you only wanted yourself to be able to use it.

Local script, place inside the button.

It still dosent work for my sister. or for evreyone else only in testing it works for me only.

Try the new version, I was just editing the post.

local players = game:GetService("Players")
local player = players.LocalPlayer or players.PlayerAdded:Wait()
local character = player.Character or player.CharacterAdded:Wait()
local hmr = character:WaitForChild("HumanoidRootPart")
local button = script.Parent
local debounce = false

local function teleport()
	if debounce then
		return
	end
	debounce = true
	hmr.CFrame = game.Workspace:WaitForChild("Spawn2").CFrame
	task.wait(3)
	debounce = false
end

button.MouseButton1Click:Connect(function()
	button.Parent.Parent:WaitForChild("ChangelogFrame").Visible = true
	button.Parent.Parent.Enabled = true
	button.Parent.Visible = true
end)

It still dosent work for some reason

Works for me, look:

https://gyazo.com/30b847b6da6e40cbcd2aa029cbcbec77

That frame popping up is the changelog frame.

Even for other people? Cause by me its only for me.

Yeah, should work for everyone, it’s working for me.

local players = game:GetService("Players")
local player = players.LocalPlayer or players.PlayerAdded:Wait()
local character = player.Character or player.CharacterAdded:Wait()
local hmr = character:WaitForChild("HumanoidRootPart")
local button = script.Parent
local debounce = false

local function teleport()
	if debounce then
		return
	end
	debounce = true
	hmr.CFrame = game.Workspace:WaitForChild("Spawn2").CFrame
	task.wait(3)
	debounce = false
end

button.MouseButton1Click:Connect(function()
	button.Parent.Parent:WaitForChild("ChangelogFrame").Visible = true
	button.Parent.Parent.Enabled = true
	button.Parent.Visible = true
end)

image

It’s inside the TextButton instance.