Advertisement
TheUnknownDiscord

delet this

Aug 31st, 2021 (edited)
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Tool = Instance.new("Tool")
  2. Tool.Name = "Gun"
  3. Gun = Instance.new("Part")
  4. Gun.Name = "Handle"
  5. Gun.Parent = Tool
  6. Tool.Parent = owner.Character
  7. Gun.Size = Vector3.new(0.82325, 2.1545, 6.25)
  8. Gun.Massless = true
  9. Gun.CanCollide = true
  10. local Pow = Instance.new("Sound", owner.character.Head)
  11. Pow.SoundId = "rbxassetid://5339941902"
  12. Pow.Volume = 1
  13. islunging = false
  14. Mesh = Instance.new("SpecialMesh")
  15. Mesh.Parent = Gun
  16. Mesh.MeshId = "http://www.roblox.com/asset/?id=868963093"
  17. Mesh.TextureId = "http://www.roblox.com/asset/?id=868963099"
  18. Mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
  19. toolout = false
  20. owner = nil
  21. local E = Instance.new("RemoteEvent",Tool.Parent)
  22. local gunlocal = [[
  23. Tool = owner.Character:WaitForChild("Gun")
  24. local E = Tool.Parent:FindFirstChildWhichIsA("RemoteEvent")
  25. local Mouse = owner:GetMouse()
  26. function ButtonDown()
  27. if Mouse.Target ~= nil then
  28. E:FireServer("Down",Mouse.Target)
  29. end
  30. end
  31. Mouse.Button1Down:Connect(ButtonDown)
  32. ]]
  33. Tool.Equipped:Connect(function()
  34. pcall(function()
  35. toolout = true
  36. if game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) ~= owner then
  37. owner = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
  38. NLS(gunlocal,owner.PlayerGui)
  39. end
  40. end)
  41. end)
  42.  
  43. Tool.Unequipped:Connect(function()
  44. toolout = false
  45. end)
  46.  
  47. Tool.Activated:connect(function()
  48. islunging = true
  49. Pow:Play()
  50. wait(0.65)
  51. islunging = false
  52. end)
  53.  
  54. local isTouched = false
  55.  
  56. function thinghere(plr,action,part)
  57. if islunging then
  58. if part.Name ~= "Base" then
  59. part:Destroy()
  60. end
  61. end
  62. end
  63.  
  64. E.OnServerEvent:Connect(thinghere)
  65. Tool.Grip = CFrame.Angles(0,math.rad(90),0)
  66. Tool.GripPos = Vector3.new(1,0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement