Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- created by pr0xel of v3rmillion
- -- > click and drag players for fun :)
- Player = game.Players.LocalPlayer
- Char = Player.Character
- Mouse = Player:GetMouse()
- CurrentBP = -1
- Dist = -1
- DoBP = false
- Mouse.Button1Down:connect(function()
- if Mouse.Target then
- DoBP = true
- Dist = (Mouse.Target.Position - Char.Torso.Position).magnitude
- CurrentBP = Instance.new("BodyPosition", Mouse.Target)
- CurrentBP.Name = "lel rekt m8"
- CurrentBP.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- CurrentBP.P = 100000
- end
- end)
- Mouse.Button1Up:connect(function()
- DoBP = false
- if CurrentBP ~= -1 then
- CurrentBP:Destroy()
- end
- CurrentBP = -1
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- if DoBP and CurrentBP ~= -1 then
- local un = -(Char.Torso.Position - Mouse.Hit.p).unit * Dist
- CurrentBP.position = Char.Torso.Position + un
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement