Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Rap God script by PotatoSaiyan.
- Press on someone to transform them into a rapper :)
- --]]
- explode = false -- if u want them to explode or not
- local countdown = 7 -- seconds before the explosion if u have it on
- plr = game.Players.LocalPlayer
- char = plr.Character
- hum = char.Humanoid
- tool = Instance.new("HopperBin", plr.Backpack)
- tool.Name = "Do da rap"
- mouse = plr:GetMouse()
- flyspeed = 2
- tool.Selected:connect(function()
- mouse.Button1Down:connect(function()
- if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then
- local torso = mouse.Target.Parent:FindFirstChild("Torso")
- local thum = torso.Parent:FindFirstChild("Humanoid")
- if thum ~= hum then
- local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = Vector3.new(0,1e8,0)
- bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed)
- bv.Parent = torso
- local pe = Instance.new("ParticleEmitter", torso)
- pe.LightEmission = 1
- pe.Size = NumberSequence.new(0.5)
- pe.Lifetime = NumberRange.new(5,10)
- pe.Rate = 50
- pe.VelocitySpread = 45
- pe.Speed = NumberRange.new(10)
- local Rap = Instance.new("Sound", torso)
- Rap.Volume = 5
- Rap.SoundId = "rbxassetid://657411321"
- Rap.TimePosition = 0
- Rap:Play()
- if explode == true then
- local ex = Instance.new("Sound", torso)
- ex.Volume = 1
- ex.SoundId = "rbxassetid://138186576"
- ex.TimePosition = 23.5
- ex:Play()
- for i = 1,countdown do
- tool.Name = "Exploding in " .. countdown - i .. "."
- wait(1)
- end
- tool.Name = "Do da rap // by PotatoSaiyan"
- local explosion = Instance.new("Explosion", torso)
- explosion.Position = torso.Position
- ex.TimePosition = 0.4
- ex:Play()
- Rap:Stop()
- torso.Parent:BreakJoints()
- pe:Destroy()
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement