Error on script

  1. What do you want to achieve?
    When you press on open the ui the money will load

  2. What is the issue?
    bcdadeb4be32cdc3ba2c17ea3c7558fd
    60da35b3b83f14236d43d2497944ba8b

  3. What solutions have you tried so far?
    Everything

local button = script.Parent
local tweens = game:GetService("TweenService")
local background = script.Parent.Parent.BackgroundR
local open = false
local sound = script.Parent.Parent.UIClick
local players = game:GetService("Players").LocalPlayer
local Money = players.Money

button.MouseButton1Click:Connect(function()
	if open == false then
		background:TweenPosition(UDim2.new(0.05, 0,0.644, 0),"Out","Sine",0.6)
		sound:Play()
	background.Visible = true
		open = true
		background:WaitForChild("Money").Text = Money
	elseif open == true then
		background:TweenPosition(UDim2.new(0.049, 0,0.999, 0),"Out","Sine",0.6)
		sound:Play()
		open = false
		wait(0.6)
		background.Visible = false
end
end)

button.MouseEnter:Connect(function()
	button:TweenSize(UDim2.new(0, 76,0, 77),"Out","Sine",0.5)
end)

button.MouseLeave:Connect(function()
	button:TweenSize(UDim2.new(0, 61,0, 59),"Out","Sine",0.5)
end)

Try this:
I think you need to put money.Value instead only money

local button = script.Parent
local tweens = game:GetService("TweenService")
local background = script.Parent.Parent.BackgroundR
local open = false
local sound = script.Parent.Parent.UIClick
local players = game:GetService("Players").LocalPlayer
local Money = players.Money

button.MouseButton1Click:Connect(function()
	if open == false then
		background:TweenPosition(UDim2.new(0.05, 0,0.644, 0),"Out","Sine",0.6)
		sound:Play()
	background.Visible = true
		open = true
		background:WaitForChild("Money").Text = Money.Value
	elseif open == true then
		background:TweenPosition(UDim2.new(0.049, 0,0.999, 0),"Out","Sine",0.6)
		sound:Play()
		open = false
		wait(0.6)
		background.Visible = false
end
end)

button.MouseEnter:Connect(function()
	button:TweenSize(UDim2.new(0, 76,0, 77),"Out","Sine",0.5)
end)

button.MouseLeave:Connect(function()
	button:TweenSize(UDim2.new(0, 61,0, 59),"Out","Sine",0.5)
end)

Oh yea, I forgot the value…