Universal Script 📌
1.5k Views
123 Executions

View inventory

Universal Script 📌
perexjiope
perexjiopePublished 10
1 year ago
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

Approach a player to see their inventory

View Raw
--// services
local ts = game:GetService("TweenService")
local rs = game:GetService("RunService")
local uis = game:GetService("UserInputService")
local players = game:GetService("Players")

--// config
local lp = players.LocalPlayer
if not lp then return end

local CONFIG = {
	distance = 16,
	scrollSpeed = 20,
	animTime = 0.3,
	platforms = {
		PC = {"rbxassetid://10688463768", Color3.fromRGB(80, 140, 220)},
		Mobile = {"rbxassetid://10688464303", Color3.fromRGB(80, 220, 120)},
		Console = {"rbxassetid://10688463319", Color3.fromRGB(220, 80, 80)},
		Unknown = {"", Color3.fromRGB(150, 150, 150)}
	}
}

--// 'secret' state management
_G.BillboardState = {
	enabled = true,
	uis = {}, -- { [Player]: { gui, root, main, currentState, tweens } }
	activeScroller = nil
}

--// functions
local function getPlayerPlatform(player)
	local platform = "Unknown"
	if player.GameplayPaused then platform = "Mobile" end
	if uis:GetPlatform() == Enum.Platform.Windows and player == lp then platform = "PC" end
	return platform
end

local function animate(state, direction)
	if state.tweens then
		for _, t in ipairs(state.tweens) do t:Cancel() end


Comments

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

More universal scripts

See all
Script hub
158.0k
496.6k
Bumped 22 minutes ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script 📌
597.6k
4.2M
Bumped 1 hour ago
Script hub
50.8k
320.4k
Bumped 3 hours ago

Script hub

Nameless Admin

Script hub
176.8k
1.6M
Bumped 4 hours ago
Key System
Script hub
46.8k
11.6k
Bumped 7 hours ago
Key System
Paid