local R=Instance.new("\067\108\105\099\107\068\101\116\101\099\116\111\114",script.Parent)local j=Instance.new("\066\105\108\108\098\111\097\114\100\071\117\105",script.Parent)j.Size=UDim2.new(4,0,2,0)j.AlwaysOnTop=true local h=Instance.new("\084\101\120\116\076\097\098\101\108",script.Parent:WaitForChild("\066\105\108\108\098\111\097\114\100\071\117\105"))h.BackgroundColor3=Color3.new(255,255,255)h.BorderColor3=Color3.new(27,42,53)h.Size=UDim2.new(1,0,1,0)h.Font="\067\097\114\116\111\111\110"h.Text="\098\117\121 "..(ITEM_NAME..(" \102\111\114 "..(ITEM_PRICE.." \099\097\115\104")))h.TextScaled=true h.TextStrokeTransparency=0 h.TextColor3=Color3.new(255,255,255)h.BackgroundTransparency=1 h.Visible=false local q=Instance.new("\083\111\117\110\100",script)q.Name="\099\097\115\104"q.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\052\053\050\053\056\055\049\055\049\050"q.Volume=1 script.Parent.ClickDetector.MouseHoverEnter:Connect(function()script.Parent.BillboardGui.TextLabel.Visible=true end)script.Parent.ClickDetector.MouseHoverLeave:Connect(function()script.Parent.BillboardGui.TextLabel.Visible=false end)script.Parent.ClickDetector.MouseClick:Connect(function(R)local j=R if((game.Players:FindFirstChild(R.Name)).leaderstats:FindFirstChild(CURRENCY_NAME)).Value>=ITEM_PRICE then script.cash:Play()local j=game.Players:FindFirstChild(R.Name)j.leaderstats.Cash.Value=(j.leaderstats:FindFirstChild(CURRENCY_NAME)).Value-ITEM_PRICE local h=(game.ReplicatedStorage:FindFirstChild(ITEM_NAME)):Clone()h.Parent=j.Backpack end end)
------------------------DO NOT EDIT------------------------
local click = Instance.new("ClickDetector", script.Parent)
local g = Instance.new("BillboardGui", script.Parent)
g.Size = UDim2.new(4, 0, 2, 0)
g.AlwaysOnTop = true
local c = Instance.new("TextLabel", script.Parent:WaitForChild("BillboardGui"))
c.BackgroundColor3 = Color3.new(255, 255, 255)
c.BorderColor3 = Color3.new(27, 42, 53)
c.Size = UDim2.new(1, 0, 1, 0)
c.Font = "Cartoon"
c.Text = "buy " .. ITEM_NAME .. " for " .. ITEM_PRICE .. " cash"
c.TextScaled = true
c.TextStrokeTransparency = 0
c.TextColor3 = Color3.new(255, 255, 255)
c.BackgroundTransparency = 1
c.Visible = false
local s = Instance.new("Sound", script)
s.Name = "cash"
s.SoundId = "rbxassetid://4525871712"
s.Volume = 1
script.Parent.ClickDetector.MouseHoverEnter:Connect(function()
	script.Parent.BillboardGui.TextLabel.Visible = true
end)
script.Parent.ClickDetector.MouseHoverLeave:Connect(function()
	script.Parent.BillboardGui.TextLabel.Visible = false
end)
script.Parent.ClickDetector.MouseClick:Connect(function(p)
	local plr = p
	if game.Players:FindFirstChild(p.Name).leaderstats:FindFirstChild(CURRENCY_NAME).Value >= ITEM_PRICE then
		script.cash:Play()
		local ppa = game.Players:FindFirstChild(p.Name)
		ppa.leaderstats.Cash.Value = ppa.leaderstats:FindFirstChild(CURRENCY_NAME).Value - ITEM_PRICE
		local c = game.ReplicatedStorage:FindFirstChild(ITEM_NAME):Clone()
		c.Parent = ppa.Backpack
	end
end)
