(Hope you don't mind, but i added R15 compatibility.)
01 | local me = game.Players.LocalPlayer |
02 | local tool = script.Parent |
04 | local ws = game:GetService( "Workspace" ) |
06 | tool.Equipped:connect( function (mouse) |
07 | mouse.Button 1 Down:connect( function () |
09 | handle = me.Character:FindFirstChild( "Torso" ) |
11 | handle = me.Character.UpperTorso |
14 | local p = Instance.new( "Part" ) |
15 | p.CFrame = CFrame.new(handle.Position) |
16 | p.TopSurface = "Smooth" |
17 | p.BottomSurface = "Smooth" |
18 | p.Shape = Enum.PartType.Ball |
19 | p.Size = Vector 3. new( 2 , 2 , 2 ) |
21 | p.BrickColor = BrickColor.new( "Really red" ) |
24 | local bv = Instance.new( "BodyVelocity" ) |
26 | bv.velocity = (mouse.Hit.p - handle.Position).unit* 90 |
28 | p.Touched:connect( function (hit) |
29 | if hit.Parent.Name ~ = me.Character.Name then |
30 | hit.Parent.Humanoid:TakeDamage( 5 ) |
33 | game:GetService( "Debris" ):AddItem(p, 7 ) |
Use a tool, not a hopperbin.
In the properties window, change the RequiresHandle Property of the tool to false.