Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Camera0 = Instance.new("Camera")
- Tool1 = Instance.new("Tool")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Sparkles4 = Instance.new("Sparkles")
- LocalScript5 = Instance.new("LocalScript")
- LocalScript6 = Instance.new("LocalScript")
- Script7 = Instance.new("Script")
- LocalScript8 = Instance.new("LocalScript")
- Animation9 = Instance.new("Animation")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Camera12 = Instance.new("Camera")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-5.58517981, 6.47635651, -47.5441399, -0.69869715, -0.354527712, 0.621395588, -1.4901163e-08, 0.86857748, 0.495553493, -0.715417624, 0.346241802, -0.606872559)
- Camera0.CoordinateFrame = CFrame.new(-5.58517981, 6.47635651, -47.5441399, -0.69869715, -0.354527712, 0.621395588, -1.4901163e-08, 0.86857748, 0.495553493, -0.715417624, 0.346241802, -0.606872559)
- Camera0.Focus = CFrame.new(-6.82797098, 5.48524952, -46.3303947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-6.82797098, 5.48524952, -46.3303947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool1.Name = "Boogie Bomb"
- Tool1.Parent = mas
- Tool1.TextureId = "rbxassetid://1346403670"
- Tool1.Grip = CFrame.new(0, -0.100000001, 0, 0, 0, -1, -1, 0, 0, 0, 1, 0)
- Tool1.GripForward = Vector3.new(1, -0, -0)
- Tool1.GripPos = Vector3.new(0, -0.100000001, 0)
- Tool1.GripRight = Vector3.new(0, -1, 0)
- Tool1.GripUp = Vector3.new(0, 0, 1)
- Part2.Name = "Handle"
- Part2.Parent = Tool1
- Part2.CFrame = CFrame.new(-13.3982124, 1.12173963, -44.494091, 7.63072676e-05, -0.999998987, 0.00142630411, 1.06038633e-05, 0.00142630492, 0.999998987, -1, -7.62920681e-05, 1.07126898e-05)
- Part2.Orientation = Vector3.new(-89.9199982, 89.5699997, 0.430000007)
- Part2.Position = Vector3.new(-13.3982124, 1.12173963, -44.494091)
- Part2.Rotation = Vector3.new(-90, 0.0799999982, 90)
- Part2.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part2.Size = Vector3.new(0.639999926, 0.7299999, 0.470000088)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Mid gray")
- Part2.Locked = true
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Mid gray")
- Part2.FormFactor = Enum.FormFactor.Custom
- Part2.formFactor = Enum.FormFactor.Custom
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=65514551"
- SpecialMesh3.Scale = Vector3.new(0.800000012, 0.800000012, 0.800000012)
- SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=65514619 "
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Sparkles4.Parent = Part2
- Sparkles4.Color = Color3.new(0.354167, 8.16, 0.2)
- Sparkles4.SparkleColor = Color3.new(0.2, 0.8, 0.2)
- LocalScript5.Name = "Local Gui"
- LocalScript5.Parent = Tool1
- table.insert(cors,sandbox(LocalScript5,function()
- Tool = script.Parent
- local stillEquipped = false
- function onEquippedLocal(mouse)
- stillEquipped = true
- if mouse == nil then
- print("Mouse not found")
- return
- end
- while stillEquipped do
- print("Setting Mouse to go")
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- while Tool.Enabled and stillEquipped do
- wait(0.01)
- end
- print("Setting Mouse to wait")
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- while not Tool.Enabled and stillEquipped do
- wait(0.01)
- end
- end
- end
- function onUnequippedLocal()
- stillEquipped = false
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- LocalScript6.Name = "GrenadeScript"
- LocalScript6.Parent = Tool1
- table.insert(cors,sandbox(LocalScript6,function()
- local Tool = script.Parent
- local Grenade = Tool.Handle
- while Grenade:FindFirstChild("Sparkles") == nil do wait() end
- local vCharacter
- local myTorso
- local myHumanoid
- local vPlayer
- local sparkles = Grenade.Sparkles
- Tool.Enabled = true
- local debris = game:GetService("Debris")
- function shoot(direction, grenadeClone)
- if myTorso and myHumanoid then
- local spawnPos = Grenade.Position + direction * 4.0
- grenadeClone.CFrame = CFrame.new(spawnPos, spawnPos + direction)
- grenadeClone.Velocity = (direction + Vector3.new(0, 2, 0)).unit * 50.0
- grenadeClone.RotVelocity = Vector3.new(0, 10, 0)
- local floatForce = Instance.new("BodyForce")
- floatForce.force = Vector3.new(0, grenadeClone:GetMass() * 98.1, 0)
- floatForce.Parent = grenadeClone
- local cloneScript = Tool.BlowScript:Clone()
- cloneScript.Parent = grenadeClone
- cloneScript.Disabled = false
- grenadeClone.Parent = game.Workspace
- end
- end
- function onActivated()
- if Tool.Enabled == false then
- return
- end
- if myTorso == nil or myHumanoid == nil then
- return
- end
- Tool.Enabled = false
- local grenadeClone = Grenade:Clone()
- grenadeClone.CanCollide = true
- Grenade.Transparency = 1.0
- if sparkles then sparkles.Enabled = false end
- local target = myHumanoid.TargetPoint
- local direction = (target - Grenade.Position).unit
- shoot(direction, grenadeClone)
- wait(4.0)
- if sparkles then sparkles.Enabled = true end
- Grenade.Transparency = 0.0
- Tool.Enabled = true
- end
- function onEquipped()
- vCharacter = Tool.Parent
- myTorso = vCharacter:FindFirstChild("Torso")
- myHumanoid = vCharacter:FindFirstChild("Humanoid")
- if sparkles and sparkles.Enabled == false then wait(1.0) sparkles.Enabled = true end
- end
- function onUnequipped()
- if throwAnim then throwAnim:Stop() end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- end))
- Script7.Name = "BlowScript"
- Script7.Parent = Tool1
- table.insert(cors,sandbox(Script7,function()
- local Grenade = script.Parent
- while Grenade:FindFirstChild("Sparkles") == nil do wait() end
- while script:FindFirstChild("DanceScript") == nil do
- wait()
- end
- while script:FindFirstChild("BOOM") == nil do
- wait()
- end
- local boom = script.BOOM
- boom:Play()
- local duration = 2.2
- local sparkles = Grenade.Sparkles
- sparkles.Enabled = true
- while duration > 0 do
- tick()
- duration = duration - wait()
- wait()
- sparkles.SparkleColor = Color3.new(math.random(), math.random(), math.random())
- end
- local AOE = Vector3.new(14, 14, 14)
- local players = game.Players:GetChildren()
- for i = 1, #players do
- if players[i] and players[i].Character and players[i].Character.Torso and players[i].Character:FindFirstChild("DanceScript") == nil then
- local torso = players[i].Character.Torso
- local distance = (Grenade.Position - torso.Position).magnitude
- if distance < 20.0 then
- local cloneScript = script.DanceScript:Clone()
- cloneScript.Parent = players[i].Character
- cloneScript.Disabled = false
- end
- end
- end
- if boom then boom:Stop() end
- if Grenade then Grenade:Remove() end
- end))
- LocalScript8.Name = "DanceScript"
- LocalScript8.Parent = Script7
- table.insert(cors,sandbox(LocalScript8,function()
- local vCharacter = script.Parent
- local vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
- local backpack = nil
- if vPlayer then
- backpack = vPlayer:FindFirstChild("Backpack")
- end
- while script:FindFirstChild("DanceAnim") == nil do
- wait()
- end
- while script:FindFirstChild("DanceSound") == nil do
- wait()
- end
- local danceSound = script.DanceSound
- danceSound:Play()
- local myTorso = vCharacter:FindFirstChild("Torso")
- local myHumanoid = vCharacter:FindFirstChild("Humanoid")
- local debris = game:GetService("Debris")
- if myTorso == nil or myHumanoid == nil then
- script:Remove()
- end
- local toolInHand = nil
- local backpackItems = {}
- myHumanoid.WalkSpeed = 0.0
- local children = vCharacter:GetChildren()
- for i = 1, #children do
- if children[i] and children[i].className == "Tool" then
- toolInHand = children[i]
- toolInHand.Parent = nil
- end
- end
- if backpack then
- local bChildren = backpack:GetChildren()
- for j = 1, #bChildren do
- if bChildren[j] then
- table.insert(backpackItems, bChildren[j])
- bChildren[j].Parent = nil
- end
- end
- end
- local danceAnim = myHumanoid:LoadAnimation(script.DanceAnim)
- if danceAnim then danceAnim:Play() end
- wait(10)
- if danceSound then danceSound:Stop() end
- wait(1.0)
- if danceAnim then danceAnim:Stop() end
- myHumanoid.WalkSpeed = 16.0
- if toolInHand then toolInHand.Parent = backpack end
- for a = 1, #backpackItems do
- if backpackItems[a] then
- backpackItems[a].Parent = backpack
- end
- end
- script:Remove()
- end))
- LocalScript8.Disabled = true
- Animation9.Name = "DanceAnim"
- Animation9.Parent = LocalScript8
- Animation9.AnimationId = "http://www.roblox.com/Asset?ID=45834924"
- Sound10.Name = "DanceSound"
- Sound10.Parent = LocalScript8
- Sound10.Looped = true
- Sound10.SoundId = "rbxassetid://1408347492"
- Sound10.Volume = 10
- Sound11.Name = "BOOM"
- Sound11.Parent = Script7
- Sound11.SoundId = "http://www.roblox.com/asset/?id=65530262 "
- Sound11.Volume = 1
- Camera12.Name = "ThumbnailCamera"
- Camera12.Parent = Tool1
- Camera12.CFrame = CFrame.new(33.9371872, 2.33776069, -19.744482, 0.0488479175, 0.171724021, -0.98393333, 1.86264493e-09, 0.985109329, 0.17192927, 0.998806238, -0.00839838851, 0.0481205396)
- Camera12.CoordinateFrame = CFrame.new(33.9371872, 2.33776069, -19.744482, 0.0488479175, 0.171724021, -0.98393333, 1.86264493e-09, 0.985109329, 0.17192927, 0.998806238, -0.00839838851, 0.0481205396)
- Camera12.Focus = CFrame.new(40.8946457, 1.1220367, -20.0847454, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera12.focus = CFrame.new(40.8946457, 1.1220367, -20.0847454, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement