
1.0k Views
9.9k Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
by: zupersponge <script src="https://gist.github.com/zupersponge/550e8714a3f5face3cffb251885e2cd5.js"></script>
local targetName = game.Players.LocalPlayer.Name
local player = game.Players:FindFirstChild(targetName)
function putTexture(part, frontF, backF, topF, bottomF, leftF, rightF, className)
local faces = {"Front", "Back", "Top", "Bottom", "Left", "Right"}
for i,f in pairs(faces) do
local decal = Instance.new(className, part)
if i == 1 then decal.Texture = frontF decal.Name = f end
if i == 2 then decal.Texture = backF or frontF decal.Name = f end
if i == 3 then decal.Texture = topF or frontF decal.Name = f end
if i == 4 then decal.Texture = bottomF or frontF decal.Name = f end
if i == 5 then decal.Texture = leftF or frontF decal.Name = f end
if i == 6 then decal.Texture = rightF or frontF decal.Name = f end
decal.Face = f
end
return part
end
function makeSquare(position, size, color, transparency, parent)
local label = Instance.new("TextLabel", parent)
label.Text = ""
label.BorderSizePixel = 0
label.BackgroundTransparency = transparency
label.Position = position
label.Size = size
label.BackgroundColor3 = color
end
function putToolBarSlot(position, image)
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui then
local gui = playerGui:FindFirstChild("ToolBar") or Instance.new("ScreenGui", playerGui)
gui.Name = "ToolBar"
local slot = Instance.new("ImageLabel", gui)
slot.Position = position
slot.Size = UDim2.new(0, 32, 0, 32)
slot.BackgroundTransparency = 1
slot.ImageTransparency = 0
slot.Image = image
slot.ZIndex = 2
makeSquare(UDim2.new(0, 0, 0, 0), UDim2.new(0, 32, 0, 32),
Color3.new(95/255, 89/255, 76/255), 0, slot)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







