КАК СДЕЛАТЬ СИСТЕМУ МОНЕТ В РОБЛОКС СТУДИО? ГАЙД

Аватар автора
1) скрипт на leaderstats local function Leaderstats(player) local stats = Instance.new(«Folder») stats.Name = «leaderstats» stats.Parent = player local coins = Instance.new(«IntValue») coins.Value = 0 coins.Name = «Coins» coins.Parent = stats end game.Players.PlayerAdded:Connect(Leaderstats) 2) скрипт на монету Amount = 1 local function TouchCoin(hit) local humanoid = hit.Parent:FindFirstChild(«Humanoid») if humanoid ~= nil then local ThisPlayer = game.Players:FindFirstChild(hit.Parent.Name) if ThisPlayer ~= nil then local stats = ThisPlayer:FindFirstChild(«leaderstats») if stats ~= nil then local score = stats:FindFirstChild(«Coins») if score ~= nil then score.Value += Amount script.Parent:Destroy() end end end end end script.Parent.Touched:Connect(TouchCoin)

0/0


0/0

0/0

0/0

0/0