LEGIT, This worked BEFORE ROBLOX took down my game which was sadly 7:33 PM PST... I don't know why it's not working anymore, is it because roblox can change something in my game??
local Player = game.Players.LocalPlayer.Character
local PlayerGUI = game.Players.LocalPlayer:WaitForChild('PlayerGui')
local SG = game:GetService("StarterGui")
function onButtonClicked()
Player.Humanoid.Health = 0
script.Parent.Parent.Parent.MenuButton.Visible = false
script.Parent.Parent.Parent.Menu.Visible = true
PlayerGUI.HealthGui.Enabled = false
PlayerGUI.StatusUI.Enabled = false
PlayerGUI.MapLoadingGUI.Enabled = false
script.Parent.Parent.Parent.Click:Play()
PlayerGUI.CurrentVersion.Enabled = false
game.Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic
SG:SetCoreGuiEnabled("Backpack", false)
workspace.CurrentCamera.FieldOfView = 110
Player.Humanoid.Died:Connect(function()
Player:Remove()
end)
end
script.Parent.MouseButton1Click:connect(onButtonClicked)
Here's what it looks like.. https://gfycat.com/wellinformedpalatablearawana
Take note: The GIF didn't take this but when you click on Back to menu? the menu shows up for a quick second before disappearing again. There's legit no error, and I'm blinded from this situation and confused on what to do. Please help!
SOLUTION: Turns out it's just a simple code that I didn't make it to where it check if the player was killed by someone... I feel dumb
