Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while wait() do
- if not game.Workspace:FindFirstChild("scriptOneBrick") then
- local sob = Instance.new("Part")
- sob.Parent = game.Workspace
- sob.Name = "scriptOneBrick"
- sob.Position = Vector3.new(0, 100, 0)
- sob.Size = Vector3.new(10, 10, 10)
- sob.Shape = "Ball"
- sob.Anchored = true
- sob.CanCollide = false
- sob.Transparency = 0.5
- else
- local sob = game.Workspace:FindFirstChild("scriptOneBrick")
- for _, v in pairs(game.Workspace:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- local hum = v:FindFirstChild("Humanoid")
- if v:FindFirstChild("HumanoidRootPart") then
- local hrp = v:FindFirstChild("HumanoidRootPart")
- if not hrp:FindFirstChild("RopeConstraint") then
- local rope = Instance.new("RopeConstraint")
- rope.Length = 100
- rope.Parent = hrp
- rope.Visible = true
- rope.Restitution = 1
- local att0 = Instance.new("Attachment")
- att0.Parent = hrp
- local att1 = Instance.new("Attachment")
- att1.Parent = sob
- rope.Attachment0 = att0
- rope.Attachment1 = att1
- else
- local rope = hrp:FindFirstChild("RopeConstraint")
- if rope.Attachment0 == nil then
- local att0 = Instance.new("Attachment")
- att0.Parent = hrp
- rope.Attachment0 = att0
- elseif rope.Attachment1 == nil then
- local att1 = Instance.new("Attachment")
- att1.Parent = sob
- rope.Attachment1 = att1
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment