RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a script that spawns in a orb and then deletes it when the player collects it"
-- script for orb local part = script.Parent local function collect(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then player.leaderstats.Orbs.Value = player.leaderstats.Orbs.Value + 1 part:Destroy() end end part.Touched:Connect(collect) -- script for spawner local spawner = script.Parent local orb = game.Workspace.Orb while true do local newOrb = orb:Clone() newOrb.Parent = game.Workspace newOrb.Position = spawner.Position wait(10) end