Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- By iiMurpyh who even cares lol
- local player = game:GetService("Players").LocalPlayer
- local plr = player.Character
- local mouse = player:GetMouse()
- hand = Instance.new('Tool')
- hand.CanBeDropped = False
- hand.RequiresHandle = False
- hand.Name = "meme"
- hand.Parent = player.Backpack
- local function createExplosion(location,power)
- boom = Instance.new('Explosion',workspace)
- boom.Position = location
- boom.BlastRadius = power
- boom.Hit.Connect(onHit)
- sfx = Instance.new('Sound', boom)
- sfx.SoundId = 'rbxassetid://573314737'
- sfx:Play()
- end
- local function onActivate()
- local clickLocation = mouse.Hit
- local hpos = clickLocation.p
- createExplosion(hpos,5)
- boom.Hit:connect(onHit)
- end
- local function onHit(part)
- if part.Parent.ClassName == "Model" and part.Parent:FindFirstChildOfClass("Humanoid") then
- part:Destroy()
- end
- end
- hand.Activated:connect(onActivate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement