SebTDZ

Untitled

May 25th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.01 KB | None | 0 0
  1. local target = owner
  2. -- One
  3. local NewPart = Instance.new("Part")
  4. NewPart.Parent = game.Workspace
  5. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position - Vector3.new(0, 3, 0)
  6. NewPart.Material = Enum.Material.Neon
  7. NewPart.Color = Color3.new(200, 0, 0)
  8. NewPart.TopSurface = "Smooth"
  9. NewPart.BottomSurface = "Smooth"
  10. NewPart.Anchored = true
  11. NewPart.Transparency = 0
  12. NewPart.Size = Vector3.new(5, 0.5, 5)
  13. -- Two
  14. local NewPart = Instance.new("Part")
  15. NewPart.Parent = game.Workspace
  16. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 5, 0)
  17. NewPart.Material = Enum.Material.Neon
  18. NewPart.Color = Color3.new(200, 0, 0)
  19. NewPart.TopSurface = "Smooth"
  20. NewPart.BottomSurface = "Smooth"
  21. NewPart.Anchored = true
  22. NewPart.Transparency = 0
  23. NewPart.Size = Vector3.new(5, 0.5, 5)
  24. -- Three
  25. local NewPart = Instance.new("Part")
  26. NewPart.Parent = game.Workspace
  27. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 1, 2.25)
  28. NewPart.Material = Enum.Material.Neon
  29. NewPart.Color = Color3.new(200, 0, 0)
  30. NewPart.TopSurface = "Smooth"
  31. NewPart.BottomSurface = "Smooth"
  32. NewPart.Anchored = true
  33. NewPart.Transparency = 0.3
  34. NewPart.Size = Vector3.new(4.75, 7.5, 0.5)
  35. -- Four
  36. local NewPart = Instance.new("Part")
  37. NewPart.Parent = game.Workspace
  38. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(2.25, 1, 0)
  39. NewPart.Material = Enum.Material.Neon
  40. NewPart.Color = Color3.new(200, 0, 0)
  41. NewPart.TopSurface = "Smooth"
  42. NewPart.BottomSurface = "Smooth"
  43. NewPart.Anchored = true
  44. NewPart.Transparency = 0.3
  45. NewPart.Size = Vector3.new(0.5, 7.5, 4.75)
  46. -- Five
  47. local NewPart = Instance.new("Part")
  48. NewPart.Parent = game.Workspace
  49. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(-2.25, 1, 0)
  50. NewPart.Material = Enum.Material.Neon
  51. NewPart.Color = Color3.new(200, 0, 0)
  52. NewPart.TopSurface = "Smooth"
  53. NewPart.BottomSurface = "Smooth"
  54. NewPart.Anchored = true
  55. NewPart.Transparency = 0.3
  56. NewPart.Size = Vector3.new(0.5, 7.5, 4.75)
  57. -- Six
  58. local NewPart = Instance.new("Part")
  59. NewPart.Parent = game.Workspace
  60. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 1, -2.25)
  61. NewPart.Material = Enum.Material.Neon
  62. NewPart.Color = Color3.new(200, 0, 0)
  63. NewPart.TopSurface = "Smooth"
  64. NewPart.BottomSurface = "Smooth"
  65. NewPart.Anchored = true
  66. NewPart.Transparency = 0.3
  67. NewPart.Size = Vector3.new(4.75, 7.5, 0.5)
  68. -- Lock
  69. local JailPos = target.Character:WaitForChild('HumanoidRootPart').Position
  70. local JailCFrame = target.Character:WaitForChild('HumanoidRootPart').CFrame
  71. local Var = Instance.new("IntValue", target)
  72. Var.Name = "Jailed"
  73. while game.Players:FindFirstChild(Player) and game.Players:FindFirstChild(Player):FindFirstChild(Var.Name) do
  74.     if (JailPos - target.Character:WaitForChild('HumanoidRootPart').Position).magnitude <= 9 then
  75.         target.Character:WaitForChild('HumanoidRootPart').CFrame = JailCFrame
  76.     end
  77.     wait(0.1)
  78. end
Advertisement
Add Comment
Please, Sign In to add comment