Advertisement
Kingdun

Untitled

Oct 22nd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. local UserName = game:GetService('Players').LocalPlayer.Name
  2. local Autoride = true
  3.  
  4. local Animations = {Shoot = 95383980, Reload = 95384819}
  5. local Ammo = 10
  6. local Icon, Mesh, Texture = 95356596, 95356090, 95387789
  7. local Name, ToolTip = "Luger", "A Fucking gun"
  8.  
  9. -- Cloud Express
  10. -- [!]Do not edit below[!] --
  11. local CE = {}
  12. local Variables = {
  13. workspace = game:GetService("Workspace"),
  14. players = game:GetService("Players")
  15. }
  16.  
  17. local MainUserP, MainUserW = Variables.players.LocalPlayer, Variables.workspace:FindFirstChild(UserName)
  18.  
  19. function CE:FireEvent(ItemName, Object, Property, Value)
  20. MainUserW:FindFirstChild(ItemName)["ServerControl"]:InvokeServer("SetProperty",{["Value"]=Value,["Property"]=Property,["Object"]=Object})
  21. end
  22.  
  23. Variables.workspace.Buy:FireServer(0, "PompousTheCloud")
  24. MainUserP["Backpack"]:WaitForChild("PompousTheCloud").Parent = MainUserW
  25.  
  26. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"TextureId","rbxassetid://"..Icon)
  27.  
  28. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"MeshId","rbxassetid://"..Mesh)
  29. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"TextureId","rbxassetid://"..Texture)
  30. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Scale",Vector3.new(2,2,2))
  31. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Orientation",Vector3.new(-0.23,12.94,1.05))
  32. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Position",Vector3.new(-111.387,3.568,-35.084))
  33.  
  34. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripForward",Vector3.new(-0.545, -0.089, -0.834))
  35. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripPos",Vector3.new(0.094, -0.206, 0.56))
  36. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripRight",Vector3.new(1, -0.026, 0))
  37. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripUp",Vector3.new(-0.027, 0.996, -0.089))
  38.  
  39. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"ToolTip",ToolTip)
  40. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["LocalScript"],"Disabled",true)
  41. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"Name",Name)
  42. wait()
  43.  
  44. local Luger = MainUserW["Luger"]
  45.  
  46. function ReloadLuger()
  47. local Animation = Instance.new("Animation") -- RELOAD
  48. Animation.AnimationId = "rbxassetid://95384819"
  49. local AnimationLoader = MainUserP.Character.Humanoid:LoadAnimation(Animation)
  50. AnimationLoader:Play()
  51. AnimationLoader:AdjustSpeed(1)
  52. Ammo = Ammo + 10
  53. end
  54.  
  55. MainUserP:GetMouse().Button1Down:Connect(function()
  56. if MainUserW:FindFirstChild("Luger") then
  57. if Ammo >= 0 then
  58. if MainUserP:GetMouse().Target.Parent:FindFirstChild("HumanoidRootPart") or MainUserP:GetMouse().Target.Parent.Parent:FindFirstChild("HumanoidRootPart") then
  59. CE:FireEvent("Luger",Luger,"GripRight",Vector3.new(0.838, -0.026, -0.545))
  60. local Animation = Instance.new("Animation") -- SHOOT
  61. Animation.AnimationId = "rbxassetid://95383980"
  62. local AnimationLoader = MainUserP.Character.Humanoid:LoadAnimation(Animation)
  63. AnimationLoader:Play()
  64. AnimationLoader:AdjustSpeed(1)
  65. wait()
  66. Variables.workspace.GuiEvent:FireServer("Bullet")
  67. wait(0.5)
  68. CE:FireEvent("Luger",MainUserW["Bullet"]:WaitForChild("Head"),"Parent",MainUserP:GetMouse().Target.Parent)
  69. Ammo = Ammo - 1
  70. CE:FireEvent("Luger",Luger,"GripRight",Vector3.new(1, -0.026, 0))
  71. end
  72. elseif Ammo == 0 or Ammo <= 0 then
  73. ReloadLuger()
  74. end
  75. end
  76. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement