Hello! I need help with my GUI. I am making a store that sells trails. It uses a currency called "Cash." Can someone help me and tell what I did wrong?
quick1 = game.Players.LocalPlayer.Stats.Cash
quick2 = game.Players.LocalPlayer.HumanoidRootPart
num1 = 1000
script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.Stats.Cash.Value >= 1000 then
quick1.Value = quick1.Value - num1
Instance.new("Part", game.Players.LocalPlayer.HumanoidRootPart)
Instance.new("ParticleEmitter", quick2.Part)
quick2.Part.Transparency = 1
quick2.Part.ParticleEmitter.EmissionDirection = 'Back'
quick2.Part.ParticleEmitter.Color = "Bright blue"
end
end)
Thank you in advance.

1 comment
you should probably define the first instance u make and then use particle emitter instance for the first instances variable