Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=game.Players.LocalPlayer
- t=p.Character.Torso
- m=p:GetMouse()
- m.Button1Down:connect(function()
- pcall(function()
- if m.Target.Name == 'Base' then return end
- local part=m.Target
- part.Anchored = true
- local sl=Instance.new('SelectionPartLasso',t)
- sl.Humanoid=p.Character.Humanoid
- sl.Part=part
- sl.Color=BrickColor.Random()
- local int=math.random(0,360)
- local s=0
- local u=10
- local dir=true
- game:service'RunService'.Stepped:connect(function()
- part.CFrame=t.CFrame*CFrame.Angles(0,math.rad(int+s),0)*CFrame.new(0,0,-u)
- s=s+1
- if dir==true then
- u=u+.5
- elseif dir==false then
- u=u-.5
- end
- if u==12 or u==8 then
- dir=not dir
- end
- if s==360 then s=0 end
- end)
- end)
- end)
- m.KeyDown:connect(function(k)
- if k=='e' then
- for i,v in pairs(t:children()) do
- if v:IsA'SelectionPartLasso' then
- coroutine.resume(coroutine.create(function()
- v.Part:Destroy()
- v:Destroy()
- end))
- end
- end
- end
- end)
- print'Grab tool'
- print'Press "e" to clear selection'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement