local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remotes = ReplicatedStorage.Remotes
local Gui = script.Parent
local Frame = Gui.Frame
local Clicks = Frame.Clicks.Amount
local ClicksPerSec = Frame.Clicks.CPS
local BuyClicks = Frame.Clicks.Buy
local Gems = Frame.Gems.Amount
local function UpdateCurrency(currency: "Clicks" | "Gems", amount: number)
if currency == "Clicks" then
Clicks.Text = amount
elseif currency == "Gems" then
Gems.Text = amount
end
end
Remotes.UpdateClicks.OnClientEvent:Connect(function(amount)
UpdateCurrency("Clicks", amount {it says this ,,amount" word is the problem })
end)
This is the code and it says that the ,,amount" word next to the { sign is the problem. someone please help.
** You are now Level 1! **