tool = Instance.new("Tool",owner.Backpack) script.Parent = tool tool.Name = "bomb" tool.CanBeDropped = false tool.RequiresHandle = true handle = Instance.new("Part",tool) handle.Name = "Handle" handle.Size = Vector3.new(0.5, 1, 0.5) hmesh = Instance.new("SpecialMesh",handle) hmesh.MeshId = "http://www.roblox.com/asset/?id=88742707" hmesh.TextureId = "http://www.roblox.com/asset/?id=88742969" hmesh.Scale = Vector3.new(0.792, 0.792, 0.792) hmesh.Offset = Vector3.new(0, 0.5, 0) tool.GripUp = Vector3.new(0, 1, 0) tool.GripRight = Vector3.new(-0.997, 0, 0.081) tool.GripPos = Vector3.new(0, -0.667, 0) tool.GripForward = Vector3.new(0.081, 0, 0.997) event = Instance.new("RemoteEvent",tool) event.Name = "Fire" NLS([[ local mouse = game.Players.LocalPlayer:GetMouse() tool = script.Parent tool.Activated:Connect(function() local MousePos = mouse.Hit.p script.Parent.Fire:FireServer(MousePos) end) ]],tool) --[[Bezier]]-- local function lerp(p0,p1,t) return p0*(1-t) + p1*t end local function quad(p0,p1,p2,t) local l1 = lerp(p0,p1,t) local l2 = lerp(p0,p2,t) local quad = lerp(l1,l2,t) return quad end junk = game:GetService("Debris") script.Parent.Fire.OnServerEvent:Connect(function(player,MousePos) local warhead = Instance.new("Part") warhead.Size = Vector3.new(1.5,1.5,6) warhead.CFrame = CFrame.Angles(math.rad(-90),0,0) warhead.Position = MousePos + Vector3.new(0,1000,0) warhead.Parent = game.Workspace warhead.Anchored = true local mesh = Instance.new("SpecialMesh") mesh.MeshId = "http://www.roblox.com/asset/?id=88782666" mesh.TextureId = "http://www.roblox.com/asset/?id=88782631" mesh.Scale = Vector3.new(4.5, 4.5, 3) mesh.Parent = warhead local sound = Instance.new("Sound") sound.SoundId = "http://www.roblox.com/asset/?id=258057783" sound.Volume = 3 sound.PlaybackSpeed = 1.5 sound.Parent = warhead local start = MousePos + Vector3.new(0,1000,0) local finish = MousePos local middle = (finish - start) + Vector3.new(MousePos.X,0,MousePos.Z) local max = 50 for i = 1,max do local t = i/max local update = quad(start,middle,finish,t) warhead.Position = update task.wait() end local e = Instance.new("Explosion",workspace) e.Position = warhead.Position e.BlastPressure = 800000 e.BlastRadius = 30 e.Hit:Connect(function(hit) warhead.Sound:Play() local bad = hit.Parent:FindFirstChildOfClass("ForceField") if bad then bad:Destroy() end local hum = hit.Parent:FindFirstChildOfClass("Humanoid") wait() if hum then hum:Destroy() end if hit.Anchored == true then hit.Anchored = false hit:BreakJoints() for _,joints in pairs(hit:GetJoints()) do joints:Destroy() end end warhead.Transparency = 1 warhead.CanCollide = false end) junk:AddItem(warhead,3) end)