Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService('RunService')local loopCount = 5
- local count = 0
- RunService.Heartbeat:Connect(function(step)
- if count < loopCount then
- count = count + 1
- print("Time between each loop: "..step)
- end
- end)
- local Ve = Instance.new("ClickDetector", script)
- Ve.Name = "Ve"
- local PA = Instance.new("Folder", script)
- PA.Name = "PA"
- function New(color, plrHV)
- local NewPart = Instance.new("Part")
- NewPart.Parent = PA
- NewPart.Position = plrHV.Position + Vector3.new(0, 0, 0)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = color
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = false
- NewPart.Size = Vector3.new(1, 2, 1)
- NewPart.CanCollide = false
- --BodyPos
- local Part = NewPart
- local Body = Instance.new("BodyPosition")
- Body.Parent = Part
- Body.Position = plrHV.Position + Vector3.new(0, 0, 0)
- Body.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- Part.Anchored = false
- --ClickDetector
- local ClickDetector = Instance.new("ClickDetector")
- ClickDetector.Parent = Part
- ClickDetector.MaxActivationDistance = 6
- return Body
- end
- --Player
- plr = game.Workspace:WaitForChild(owner.Name)
- plrH = plr:WaitForChild('HumanoidRootPart')
- --Parts
- local v1 = New(Color3.new(50, 0, 0), plrH)
- local v2 = New(Color3.new(0, 150, 0), plrH)
- local v3 = New(Color3.new(0, 200, 150), plrH)
- local v4 = New(Color3.new(0, 200, 150), plrH)
- local v5 = New(Color3.new(0, 200, 150), plrH)
- local v6 = New(Color3.new(0, 200, 150), plrH)
- local v7 = New(Color3.new(0, 200, 150), plrH)
- local v8 = New(Color3.new(0, 200, 150), plrH)
- v1.Parent.ClickDetector.MouseClick:connect(function(pclick)
- if pclick.Name == owner.Name then
- for i, p in pairs(game.Workspace:GetChildren()) do
- if p.Name == "Script" then
- if p:FindFirstChild("Ve") then
- print("Done")
- else
- p:Destroy()
- end
- end
- end
- end
- end)
- v2.Parent.ClickDetector.MouseClick:connect(function(pclick)
- if pclick.Name == owner.Name then
- print("--Workspace--")
- for i, p in pairs(game.Workspace:GetChildren()) do
- print(p.Name)
- end
- print("--Lighting--")
- for i, p in pairs(game.Lighting:GetChildren()) do
- print(p.Name)
- end
- print("--Players--")
- for i, p in pairs(game.Players:GetChildren()) do
- print(p.Name)
- end
- end
- end)
- --Positon
- local i = true
- while i == true do
- v1.Position = plrH.Position + Vector3.new(5, 0, 0)
- v2.Position = plrH.Position + Vector3.new(-5, 0, 0)
- v3.Position = plrH.Position + Vector3.new(0, 0, 5)
- v4.Position = plrH.Position + Vector3.new(0, 0, -5)
- v5.Position = plrH.Position + Vector3.new(5, 0, 5)
- v6.Position = plrH.Position + Vector3.new(-5, 0, -5)
- v7.Position = plrH.Position + Vector3.new(5, 0, -5)
- v8.Position = plrH.Position + Vector3.new(-5, 0, 5)
- wait(0.01)
- end
Advertisement
Add Comment
Please, Sign In to add comment