Universal Script 📌
508 Views
1.1k Executions

Copy game name[OPEN SOURCE]

Universal Script 📌
OBBYman353
OBBYman353First script
3 weeks ago

Reviewed by QueueSherlockPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Copy game name

View Raw
-- copy game name
local MarketPlaceService = game:GetService("MarketplaceService")
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")

local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

local success, placeInfo = pcall(function()
    return MarketPlaceService:GetProductInfo(game.PlaceId)
end)

local gameName = success and placeInfo.Name or "Unknown Game"

if setclipboard then
    setclipboard(gameName)
else
    warn("your executor does not support setclipboard function")
end

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CopyGreenFlashGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.Parent = PlayerGui

local greenFrame = Instance.new("Frame")
greenFrame.Size = UDim2.new(1, 0, 1, 0)
greenFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 100)
greenFrame.BackgroundTransparency = 1
greenFrame.BorderSizePixel = 0
greenFrame.Parent = screenGui

local tweenInfoIn = TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local tweenInfoOut = TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In)

local fadeIn = TweenService:Create(greenFrame, tweenInfoIn, {BackgroundTransparency = 0.5})
local fadeOut = TweenService:Create(greenFrame, tweenInfoOut, {BackgroundTransparency = 1})

fadeIn:Play()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
1.7M
2.2M
Bumped 13 minutes ago
Key System

Script hub

#15 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.5k
82.9k
Bumped 13 minutes ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.1k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
432
1.1k
Bumped 5 hours ago
Key System
Universal Script 📌
7.1k
141.6k
Bumped 5 hours ago
Script hub
45.7k
114.4k
Bumped 7 hours ago
Key System
Script hub
3.5M
448.8k
Bumped 8 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*