Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenGui = Instance.new("ScreenGui", game:GetService("CoreGui"))
- -- Attempting to create a parent to a protected location
- pcall(function()
- if gethui then
- screenGui.Parent = gethui()
- elseif syn and syn.protect_gui then
- syn.protect_gui(screenGui)
- screenGui.Parent = game:GetService("CoreGui")
- else
- screenGui.Parent = game:GetService("CoreGui")
- end
- end)
- if not screenGui.Parent then
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- end
Advertisement
Add Comment
Please, Sign In to add comment