RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a dropper and a conveyer along with a money system in leaderstats"
-- script for dropper local part = Instance.new("Part") part.Parent = game.Workspace part.BrickColor = BrickColor.new("Bright red") part.Anchored = true part.Size = Vector3.new(1, 1, 1) while true do local clone = part:Clone() clone.Position = Vector3.new(0, 50, 0) clone.Anchored = false clone.Parent = game.Workspace wait(1) end -- script for conveyor local conveyor = Instance.new("Part") conveyor.Parent = game.Workspace conveyor.BrickColor = BrickColor.new("Bright blue") conveyor.Anchored = true conveyor.Size = Vector3.new(10, 1, 1) conveyor.Velocity = Vector3.new(0, 0, 10) -- script for money system game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local money = Instance.new("IntValue") money.Name = "Money" money.Value = 0 money.Parent = leaderstats end) game.Workspace.ChildAdded:Connect(function(child) if child:IsA("Part") and child.BrickColor == BrickColor.new("Bright red") then child.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(hit.Parent) player.leaderstats.Money.Value = player.leaderstats.Money.Value + 1 child:Destroy() end end) end end)