Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you change the default tool gui to a custom picture? [closed]

Asked by 4 years ago
Edited 4 years ago

I'm trying to change the default actual gui for a tool to a custom one, but not the TextureID. For example if anyone's ever played royal high, they have a custom gui for every tool. and I was wondering if anyone knows how to do it. Right now Im trying to make whenever a tool is added to a players backpack, it creates a gui but Im not enitirely sure how to make it so when a second or third tool is added, it the gui before it moves over a bit. Here is my script so far.

local plr = game.Players.LocalPlayer local char = plr:WaitForChild("Character") local backpack = plr:WaitForChild("Backpack") local childadded = backpack.ChildAdded local count = 1

childadded:Connect(function() local new = Instance.new("ScreenGui") new.Parent = game.StarterGui local newbutton = Instance.new("ImageButton") newbutton.Parent = new newbutton.BackgroundTransparency = 1 newbutton.Image = "rbxgameasset://Images/LogoMakr_3FpbQA" newbutton.Size = UDim2.new(0,80,0,80) end)

Closed as Not Constructive by Leamir

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?