Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- function insert()
- --[[--This call will cause a "wait" until the data comes back
- local root = game:GetService("InsertService"):LoadAsset(modelID)
- local instances = root:GetChildren()
- if #instances == 0 then
- root:Remove()
- return
- end
- --Continue the insert process
- root.Name = "InsertedObject" .. modelID
- game:GetService("InsertService"):Insert(root)
- root:MoveTo(Vector3.new(0,50,0))]]--
- local part = Instance.new("Part", game.Workspace)
- part.Name = "ClonedPart"
- part.Size = Vector3.new(10,10,10)
- part.BrickColor = BrickColor.Random()
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- part.Position = Vector3.new(math.random(-500,500), math.random(100,200), math.random(-500,500))
- local sound = Instance.new("Sound", part)
- sound.Looped = true -- tick to true = RIP EARS
- sound.MaxDistance = 10000000000
- sound.EmitterSize = 10000
- sound.SoundId = "rbxassetid://12221967"
- sound.Name = "SampleSound"
- sound.PlayOnRemove = true
- sound.Volume = 1
- local randompitch = math.random(12,15)
- randompitch = randompitch / 10
- sound.Pitch = randompitch
- sound:Play()
- end
- while true do
- insert()
- wait(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement