Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Tool.Name = "Gun"
- Gun = Instance.new("Part")
- Gun.Name = "Handle"
- Gun.Parent = Tool
- Tool.Parent = owner.Character
- Gun.Size = Vector3.new(0.82325, 2.1545, 6.25)
- Gun.Massless = true
- Gun.CanCollide = true
- local Pow = Instance.new("Sound", owner.character.Head)
- Pow.SoundId = "rbxassetid://5339941902"
- Pow.Volume = 1
- islunging = false
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Gun
- Mesh.MeshId = "http://www.roblox.com/asset/?id=868963093"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=868963099"
- Mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
- toolout = false
- owner = nil
- local E = Instance.new("RemoteEvent",Tool.Parent)
- local gunlocal = [[
- Tool = owner.Character:WaitForChild("Gun")
- local E = Tool.Parent:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Target ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]]
- Tool.Equipped:Connect(function()
- pcall(function()
- toolout = true
- if game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) ~= owner then
- owner = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
- NLS(gunlocal,owner.PlayerGui)
- end
- end)
- end)
- Tool.Unequipped:Connect(function()
- toolout = false
- end)
- Tool.Activated:connect(function()
- islunging = true
- Pow:Play()
- wait(0.65)
- islunging = false
- end)
- local isTouched = false
- function thinghere(plr,action,part)
- if islunging then
- if part.Name ~= "Base" then
- part:Destroy()
- end
- end
- end
- E.OnServerEvent:Connect(thinghere)
- Tool.Grip = CFrame.Angles(0,math.rad(90),0)
- Tool.GripPos = Vector3.new(1,0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement