SebTDZ

CMDS

Apr 11th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.83 KB | None | 0 0
  1. local RunService = game:GetService('RunService')local loopCount = 5
  2. local count = 0
  3.  
  4. RunService.Heartbeat:Connect(function(step)
  5.     if count < loopCount then
  6.         count = count + 1
  7.         print("Time between each loop: "..step)
  8.     end
  9. end)
  10. local Ve = Instance.new("ClickDetector", script)
  11. Ve.Name = "Ve"
  12. local PA = Instance.new("Folder", script)
  13. PA.Name = "PA"
  14. function New(color, plrHV)
  15.     local NewPart = Instance.new("Part")
  16.     NewPart.Parent = PA
  17.     NewPart.Position = plrHV.Position + Vector3.new(0, 0, 0)
  18.     NewPart.Material = Enum.Material.Neon
  19.     NewPart.Color = color
  20.     NewPart.TopSurface = "Smooth"
  21.     NewPart.BottomSurface = "Smooth"
  22.     NewPart.Anchored = false
  23.     NewPart.Size = Vector3.new(1, 2, 1)
  24.     NewPart.CanCollide = false
  25.     --BodyPos
  26.     local Part = NewPart
  27.     local Body = Instance.new("BodyPosition")
  28.     Body.Parent = Part
  29.     Body.Position = plrHV.Position + Vector3.new(0, 0, 0)
  30.     Body.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  31.     Part.Anchored = false
  32.     --ClickDetector
  33.     local ClickDetector = Instance.new("ClickDetector")
  34.     ClickDetector.Parent = Part
  35.     ClickDetector.MaxActivationDistance = 6
  36.     return Body
  37. end
  38.  
  39. --Player
  40. plr = game.Workspace:WaitForChild(owner.Name)
  41. plrH = plr:WaitForChild('HumanoidRootPart')
  42. --Parts
  43. local v1 = New(Color3.new(50, 0, 0), plrH)
  44. local v2 = New(Color3.new(0, 150, 0), plrH)
  45. local v3 = New(Color3.new(0, 200, 150), plrH)
  46. local v4 = New(Color3.new(0, 200, 150), plrH)
  47. local v5 = New(Color3.new(0, 200, 150), plrH)
  48. local v6 = New(Color3.new(0, 200, 150), plrH)
  49. local v7 = New(Color3.new(0, 200, 150), plrH)
  50. local v8 = New(Color3.new(0, 200, 150), plrH)
  51. v1.Parent.ClickDetector.MouseClick:connect(function(pclick)
  52.     if pclick.Name == owner.Name then
  53.         for i, p in pairs(game.Workspace:GetChildren()) do
  54.             if p.Name == "Script" then
  55.                 if p:FindFirstChild("Ve") then
  56.                     print("Done")
  57.                 else
  58.                     p:Destroy()
  59.                 end
  60.             end
  61.         end
  62.     end
  63. end)
  64. v2.Parent.ClickDetector.MouseClick:connect(function(pclick)
  65.     if pclick.Name == owner.Name then
  66.         print("--Workspace--")
  67.         for i, p in pairs(game.Workspace:GetChildren()) do
  68.             print(p.Name)
  69.         end
  70.         print("--Lighting--")
  71.         for i, p in pairs(game.Lighting:GetChildren()) do
  72.             print(p.Name)
  73.         end
  74.         print("--Players--")
  75.         for i, p in pairs(game.Players:GetChildren()) do
  76.             print(p.Name)
  77.         end
  78.     end
  79. end)
  80. --Positon
  81. local i = true
  82. while i == true do
  83.     v1.Position = plrH.Position + Vector3.new(5, 0, 0)
  84.     v2.Position = plrH.Position + Vector3.new(-5, 0, 0)
  85.     v3.Position = plrH.Position + Vector3.new(0, 0, 5)
  86.     v4.Position = plrH.Position + Vector3.new(0, 0, -5)
  87.     v5.Position = plrH.Position + Vector3.new(5, 0, 5)
  88.     v6.Position = plrH.Position + Vector3.new(-5, 0, -5)
  89.     v7.Position = plrH.Position + Vector3.new(5, 0, -5)
  90.     v8.Position = plrH.Position + Vector3.new(-5, 0, 5)
  91.     wait(0.01)
  92. end
Advertisement
Add Comment
Please, Sign In to add comment