So I am trying to make an character shop gui but can't figure out how to do this I tried doing XxxLloyd061302xxXs video but it didn't work I will show you the script he maade so could you fix any problems with the script.
Script:
script.Parent.MouseButton1Click:connect(function()
local RS = game:GetService("ReplicatedStorage")
local item = RS:WaitForChild("Raven")
local price = 2000 -- Change Your Price Here
local player = game.Players.LocalPlayer
local stats = player:WaitForChild("leaderstats")
if stats.Cash.Value == price then -- Change the Money to your Currency Name
stats.Money.Value = stats.Money.Value - price
local cloned = item:Clone()
local cloned2 = item:Clone()
cloned.Parent = game.StarterGui.Locker --where u want it
cloned2.Parent = game.StarterGui.Locker --where u want it
cloned.Position = Vector3.new(0.155, 0,0.243, 0) --position
cloned2.Position = Vector3.new(0.155, 0,0.243, 0) --position
end
end)
If you would like to know it is in a normal script and that I changed it a bit.

2 comments
use a local script for Guis and use playergui
what happens when your cash value is higher than the price but u wanna buy it? change "==" to ">=" (greater than or equal to)