#Help me make a Tool shop that opens by pressing E.

1 messages · Page 1 of 1 (latest)

thorn turtle
#

I have my own leaderboard that counts kills and deaths, I want to buy a tool when there are 5 kills, but I don't know how to make a shop gui and code. Is there anyone who can help?

crude chasm
karmic hornet
# thorn turtle I have my own leaderboard that counts kills and deaths, I want to buy a tool whe...

-- IN A LOCAL SCRIPT

local uis = game:GetService("UserInputService")
local players = game:GetService("Players")
local plr = players.LocalPlayer
local plrGui = plr:WaitForChild("PlayerGui")

local toolShopGui = plrGui:WaitForChild("ToolShopGui")
-- add 1 to the Y value of the position of the tool shop gui

uis.InputBegan:Connect(function(input, gpe)
if input.KeyCode == Enum.KeyCode.E then
for _, item in toolShopGui:GetChildren() do
if item:IsA("Frame") or item:IsA("TextLabel") or item:IsA("ImageLabel") or item:IsA("ImageButton") or item:IsA("TextButton") then
item.Position -= UDim2.fromScale(0, 1)
end
end
end
end)

reef shoreBOT
#

studio** You are now Level 5! **studio

karmic hornet
#

tell me if it works or not!

thorn turtle
thorn turtle