Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A Samsung Galaxy Note 7 Rigged With Explodsives!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("SpecialMesh")
- o4 = Instance.new("Sound")
- o5 = Instance.new("LocalScript")
- o1.Name = "Phone Bomb"
- o1.Parent = game.Players.LocalPlayer.Backpack
- o1.TextureId = "rbxassetid://16370867"
- o1.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
- o1.GripPos = Vector3.new(0, -0.375, 0.25)
- o1.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
- o1.ToolTip = "A Samsung Galaxy Note 7 Rigged With Explodsives!"
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Position = Vector3.new(-4.320683, 0.855857015, -3.17578101)
- o2.FormFactor = Enum.FormFactor.Custom
- o2.Size = Vector3.new(0.75, 1.25, 0.200000003)
- o2.CFrame = CFrame.new(-4.320683, 0.855857015, -3.17578101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Position = Vector3.new(-4.320683, 0.855857015, -3.17578101)
- o3.Parent = o2
- o3.MeshId = "http://www.roblox.com/asset/?id=268471347"
- o3.Scale = Vector3.new(1.375, 1.375, 1.375)
- o3.TextureId = "rbxassetid://637111231"
- o3.MeshType = Enum.MeshType.FileMesh
- o4.Name = "Fire"
- o4.Parent = o2
- o4.SoundId = "rbxasset://sounds/swoosh.wav"
- o4.Volume = 0.69999998807907
- o5.Name = "MainScript"
- o5.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- A Samsung Galaxy Note 7 Rigged With Explodsives!
- --Varibles--
- Uses = 1 --How many uses availible until its useless--
- CanKill = true -- Can it kill people? --
- local tool = o1
- ammountofuses = Uses
- function swing(mouse)
- vCharacter = tool.Parent
- vPlayer = game.Players:playerFromCharacter(vCharacter)
- if ammountofuses > 0 then
- ammountofuses = ammountofuses -1
- print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
- tool.Handle.Fire:Play()
- local explosive = tool.Handle:Clone()
- --explosive.Position = tool.Handle.Position
- explosive.CanCollide = true
- explosive.Parent = workspace
- explosive.RotVelocity=Vector3.new(0,0,0)
- explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
- explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
- if ammountofuses <= 0 then
- script.Parent.Handle:Remove()
- end
- explode(explosive, tool)
- end
- end
- function explode(part, weapon)
- local firesound = Instance.new("Sound", part)
- firesound.SoundId = "rbxassetid://192104941"
- local explodesound = Instance.new("Sound", part)
- explodesound.SoundId = "rbxassetid://157878578"
- wait(1)
- local smoke = Instance.new("Smoke", part)
- smoke.Color = Color3.new(0, 0, 0)
- wait(2)
- local fire = Instance.new("Fire", part)
- firesound:Play()
- wait(3)
- local explosion = Instance.new("Explosion", part)
- explodesound:Play()
- explosion.Position = part.Position
- if CanKill == true then
- explosion.BlastPressure = 100000
- else
- explosion.BlastPressure = 0
- end
- explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
- wait(1)
- part:Destroy()
- if ammountofuses <= 0 then
- weapon:Destroy()
- end
- end
- --script.Parent.Activated:connect(swing)
- tool.Equipped:connect(function(mouse)
- if mouse==nil then
- print("Mouse not found")
- return
- end
- equipped=true
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- swing(mouse)
- end)
- end)
- function tagHumanoid(humanoid)
- local tag = Instance.new("ObjectValue")
- tag.Name = "creator"
- tag.Value = vPlayer
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType1"
- tag.Value = tool.Name
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType2"
- tag.Value = "blown to pieces"
- tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:FindFirstChild("creator")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType1")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType2")
- if tag ~= nil then
- tag:Remove()
- end
- end
- end
- end,o5)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Add Comment
Please, Sign In to add comment