Yes i do as i just like how it blacks the entire screen out and stuff
im sorry i didnt understand i started lua a week ago im still learning
This is not a thing. Any kind of Core Gui Remotes, Scripts, etc are in CorePackages or in Core Gui.
He may of used MenuOpened connect function and then detect when someone presses L Or clicks on a certain position and that is how it worked maybe?
local TeleportService = game:GetService("TeleportService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
-- Custom function to handle the leave button click
local function onLeaveButtonClick()
-- Set up the custom teleport GUI
local customGui = Instance.new("ScreenGui")
local blackFrame = Instance.new("Frame", customGui)
blackFrame.BackgroundColor3 = Color3.new(0, 0, 0)
blackFrame.Size = UDim2.new(1, 0, 1, 0)
blackFrame.ZIndex = 10
-- the message
local messageLabel = Instance.new("TextLabel", blackFrame)
messageLabel.Text = "Gameplay Paused"
messageLabel.Size = UDim2.new(0, 200, 0, 50)
messageLabel.Position = UDim2.new(0.5, -100, 0.5, -25)
messageLabel.ZIndex = 11
-- custom GUI to be displayed on teleportation
TeleportService:SetTeleportGui(customGui)
-- Teleport the player back to the same game or a different place
-- Replace 'placeId' if u want to
local placeId = game.PlaceId
TeleportService:Teleport(placeId, game.Players.LocalPlayer)
end
ReplicatedFirst:WaitForChild("LeaveButtonEvent").OnClientEvent:Connect(onLeaveButtonClick)
startergui right? ??? localscriptt
yes but this script should have the globals or hack in whatever
i dont know wdym by hack or global as i said im new to lua
This doesnât do anything. What are you even trying to achieve?
OnClientEvent
is a method used with RemoteEvent
objects, not with ReplicatedFirst
you are right the wait for child is wrong idk anymore i need more context
To even be able to do any of this you need to find a bug in robloxâs sandboxing, which is very difficult.
what do you think the OP objective is first its getitng out of topic
Nothing good, probably leading to more trouble.
honestly i think hes trying to recreate the meep city incident 2024 somehow
I honestly think I might have a way to detect the leave event.
ive already recreated it before but i just want the blackout i dont give a crap about the other leavebutton stuff i can learn that later
How so? i want to learn that aswell
You canât do this, how many times do we have to tell you. You need to parent the screen gui to the CoreGui To overlap every gui. You also do not have access to the core gui.
Very simple, use mouse events and check whether a core gui is opened and if one is then check if a mouse event is fired in a rect and if it is then rejoin.