
1.4k Views
92 Executions
View inventory
Universal Script 📌
perexjiopePublished 10
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Approach a player to see their inventory
--// 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
0Log in to join the conversation. Login
No comments yet. Be the first!







