Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local character = game.Players.SebCamBot.Character
- -- Get the head
- local head = character:FindFirstChild("Head")
- while true do
- -- Build a ray in the direction the head is facing
- local origin = head.Position
- local lookDirection = head.CFrame.lookVector
- local ray = Ray.new(origin, lookDirection * 500)
- -- Raycast, ignoring the player's character
- local part, hitPosition = workspace:FindPartOnRay(ray, character)
- if part then
- if part.Name == "Base" then
- local a = 1
- else
- local Part = part
- local Body = Instance.new("BodyPosition")
- Body.Parent = Part
- Body.Position = Part.Position + Vector3.new(0, 25, 0)
- Body. MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- Part.Anchored = false
- Part.CanCollide = false
- end
- end
- wait(0.1)
- end
Add Comment
Please, Sign In to add comment