Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local mou = plr:GetMouse()
- local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
- local head = char:FindFirstChild("Head")
- local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
- local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
- local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
- local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
- local ls = tor:FindFirstChild("Left Shoulder")
- local rs = tor:FindFirstChild("Right Shoulder")
- local ONO = true
- local rp = Instance.new("Part", char)
- rp.Transparency = 1
- rp.Size = Vector3.new(1, 1, 1)
- local rpw = Instance.new("Weld", rp)
- rpw.Part0 = rarm
- rpw.Part1 = rp
- rpw.C1 = CFrame.new(0, 1, 0)
- local starts = rs.C0
- mou.Button1Down:connect(function()
- if ONO == true then
- if mou.Target ~= nil and mou.Target:IsA("Part") and mou.Target.Name ~= "Base" then
- ONO = false
- thing = mou.Target
- local start = thing.CFrame
- local finish = rp.CFrame
- rs.C0 = starts
- local finishs = rs.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90))
- if thing.Parent and thing.Parent:FindFirstChildOfClass("Humanoid") then
- thing.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- for i = 0,1,.1 do
- thing.CFrame = start:lerp(finish, i)
- rs.C0 = starts:lerp(finishs, i)
- wait()
- end
- thing.CanCollide = false
- thing.Anchored = false
- neww = Instance.new("Weld", thing)
- neww.Part0 = rp
- neww.Part1 = thing
- end
- elseif ONO == false then
- neww:Destroy()
- why = Instance.new("BodyPosition", thing)
- why.Position = mou.Hit.p
- why.MaxForce = Vector3.new(10000, 10000, 10000)
- game:GetService("Debris"):AddItem(why, 10)
- rs.C0 = starts
- ONO = true
- end
- end)
- while true do
- wait()
- hum.PlatformStand = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement