Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Y_Level = 0 --Put the height you want the parts to spawn at here.
- local WaitTime = 1.5 --Time between spawning and deleting.
- -- These are color and material settings.
- local Settings = {
- Material = "Grass",
- Color = BrickColor.Green(), --BC only.
- Size = Vector3.new(400, 10, 400),
- PartParent = workspace
- }
- --code
- game:GetService("Players").PlayerAdded:Connect(function(plr)
- wait()
- wait()
- while true do
- local part = Instance.new("Part",Settings.PartParent) part.Size = Settings.Size part.Material = Settings.Material part.Anchored = true
- part.BrickColor = Settings.Color
- part.Position = plr.Character:FindFirstChild("Head").Position
- part.Position = Vector3.new(part.Position.X, Y_Level, part.Position.Z)
- wait(WaitTime)
- part:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement