Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- Tool0.Name = "Scoob"
- Tool0.Parent = owner.Backpack
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(-0.00300200004, 1.55452394, -0.00200699992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-0.00300200004, 1.55452394, -0.00200699992)
- Part1.Size = Vector3.new(2.5, 3.10899997, 3.25900006)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://1107996700"
- SpecialMesh2.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- SpecialMesh2.TextureId = "rbxassetid://1107996710"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Script3.Parent = Tool0
- plr = owner
- char = plr.Character
- local effectfolder = Instance.new("Folder",script)
- effectfolder.Name = 'effectfolder'
- function shoot(from,dir)
- spawn(function()
- local bullet = Instance.new("Part")
- local mesh = Instance.new("SpecialMesh")
- bullet.Name = "bullet"
- bullet.Parent = effectfolder
- bullet.Size = Vector3.new(10, 0.265, 0.265)
- bullet.Anchored = true
- bullet.BottomSurface = Enum.SurfaceType.Smooth
- bullet.BrickColor = BrickColor.new("Bright yellow")
- bullet.CanCollide = false
- bullet.Material = Enum.Material.Neon
- bullet.Reflectance = 1
- bullet.Transparency = 1
- bullet.TopSurface = Enum.SurfaceType.Smooth
- bullet.brickColor = BrickColor.new("Bright yellow")
- mesh.Parent = bullet
- mesh.MeshType = Enum.MeshType.Sphere
- bullet.Touched:Connect(function(obj)
- local hum = obj.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- if not hum:IsDescendantOf(char) then
- obj.Parent:BreakJoints()
- end
- end
- end)
- game:GetService("Debris"):AddItem(bullet,5)
- bullet.CFrame = CFrame.new(from,dir)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
- bullet.Velocity = bullet.CFrame.rightVector*1000
- bullet.RotVelocity = Vector3.new(0,0,0)
- bullet.Anchored = false
- bullet.Massless = true
- bullet.Transparency = 0
- spawn(function()
- local flyy = Instance.new('BodyVelocity',bullet)
- flyy.Velocity = bullet.CFrame.rightVector*1000
- end)
- end)
- end
- local remote = Instance.new("RemoteEvent",owner.Character)
- remote.Name = "Remote"
- local ls = [[
- plr = owner
- mouse = plr:GetMouse()
- remote = plr.Character:WaitForChild("Remote")
- holding = false
- mouse.KeyDown:Connect(function(key)
- end)
- mouse.Button1Down:Connect(function()
- holding = true
- remote:FireServer(2,nil,true)
- spawn(function()
- while holding do
- --game:GetService("RunService").RenderStepped:wait()
- wait(.1)
- local dir = mouse.Hit.p
- remote:FireServer(1,dir,true)
- end
- end)
- end)
- mouse.Button1Up:Connect(function()
- holding = false
- remote:FireServer(2,nil,false)
- end)
- mouse.KeyUp:Connect(function(key)
- end)
- ]]
- NLS(ls,owner.Character)
- local holding = false
- local equipped = false
- local scoob = Instance.new("Sound")
- scoob.Parent = Part1
- scoob.SoundId = "rbxassetid://1246537612"
- scoob.Volume = 3
- Tool0.Equipped:Connect(function()
- equipped = true
- scoob:Play()
- end)
- Tool0.Unequipped:Connect(function()
- equipped = false
- end)
- local Sound0 = Instance.new("Sound")
- Sound0.Parent = Part1
- Sound0.SoundId = "rbxassetid://991269011"
- Sound0.Volume = 3
- Sound0.Looped = true
- remote.OnServerEvent:Connect(function(plr,mode,dir,hold)
- if mode == 1 and equipped then
- spawn(function()
- shoot((char['Torso'] or char['UpperTorso']).CFrame.p,dir)
- end)
- elseif mode == 2 and equipped then
- spawn(function()
- if hold then
- holding = true
- if not Sound0 then
- Sound0 = Instance.new("Sound")
- Sound0.Name = "tyler1 gratting"
- Sound0.Parent = Part1
- Sound0.SoundId = "rbxassetid://991269011"
- Sound0.Volume = 3
- Sound0.Looped = true
- end
- Sound0:Resume()
- repeat wait() until not holding
- Sound0:Pause()
- elseif not hold then
- holding = false
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement