Подбор монет в роблокс студио ( туториал )

Аватар автора
Игровые Страсти
В это видео я показываю как сделать систему монет в роблокс студио! Скрипт в сервис скрипт сервис: local PlayerS = game:GetService("Player") PlayerS.PlayerAdded:Connect(function(player) local a = Instance.new("Folder",player) a.Name = "leaderstats" local b = Instance.new("NumberValue",a) b.Value = 0 b.Name = "Coins" end) Скрипт монеты: local db = true script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then if db == true then db = false script.Parent.Transparency = 1 local player = game.Players:GetPlayerFromCharacter(hit.Parent) player.leaderstats.Coins.Value = player.leaderstats.Coins.Value +1 script.CollectedSound:Play() script.Parent.Transparency = 1 wait(5) db = true script.Parent.Transparency = 0 end end end)

0/0


0/0

0/0

0/0