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.
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)
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)
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)