Advertisement
ZKiller

Elite Grox [ROBLOX]

Oct 29th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.63 KB | None | 0 0
  1. local mouse = game.Players.LocalPlayer:GetMouse()
  2. local d = false
  3. --=================[Main]=================--
  4. local model = Instance.new("Model")
  5. model.Parent = script.Parent
  6. model.Name = "Grox Parts"
  7. local d = false
  8. wait(1)
  9. local shirt = script.Parent:FindFirstChild("Shirt")
  10. if shirt ~= nil then
  11. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=13321208"
  12. else
  13. local s = Instance.new("Shirt")
  14. s.Parent = script.Parent
  15. s.ShirtTemplate = "http://www.roblox.com/asset/?id=13321208"
  16. end
  17. local pants = script.Parent:FindFirstChild("Pants")
  18. if pants ~= nil then
  19. pants.PantsTemplate = "http://www.roblox.com/asset/?id=13324322"
  20. else
  21. local p = Instance.new("Pants")
  22. p.Parent = script.Parent
  23. p.ShirtTemplate = "http://www.roblox.com/asset/?id=13324322"
  24. end
  25. local anim = Instance.new("Animation")
  26. anim.Parent = script.Parent
  27. anim.Name = "Punch"
  28. anim.AnimationId = "rbxassetid://1138955921"
  29. script.Parent.Humanoid.WalkSpeed = 22
  30. script.Parent.Humanoid.JumpPower = 70
  31. script.Parent.Humanoid.MaxHealth = 1000
  32. wait(1)
  33. script.Parent.Humanoid.Health = 1000
  34. function littledmg(hit)
  35. local h = hit.Parent:findFirstChildOfClass("Humanoid")
  36. if h.Parent ~= script.Parent and h ~= nil then
  37. h.Health = h.Health - math.random(1,5)
  38. end
  39. end
  40. function dmg(hit)
  41. local h = hit.Parent:findFirstChildOfClass("Humanoid")
  42. if h.Parent ~= script.Parent and h ~= nil then
  43. h.Health = h.Health - math.random(5,25)
  44. end
  45. end
  46. function bigdmg(hit)
  47. local h = hit.Parent:findFirstChildOfClass("Humanoid")
  48. if h.Parent ~= script.Parent and h ~= nil then
  49. h.Health = h.Health - math.random(10,50)
  50. end
  51. end
  52. function onehitkill(hit)
  53. local h = hit.Parent:findFirstChildOfClass("Humanoid")
  54. if h.Parent ~= script.Parent and h ~= nil then
  55. h.Health = 0
  56. end
  57. end
  58. function rifleshot()
  59. local targetPos = script.Parent.Humanoid.TargetPoint
  60. local lookAt = (targetPos - script.Parent.Head.Position).unit
  61. local bullet = Instance.new("Part")
  62. bullet.Touched:connect(dmg)
  63. bullet.Parent = game.Workspace
  64. bullet.Locked = true
  65. bullet.Name = "Laser bullet"
  66. bullet.Shape = Enum.PartType.Ball
  67. bullet.Size = Vector3.new(1,1,1)
  68. bullet.Material = Enum.Material.Neon
  69. bullet.BrickColor = BrickColor.new('Really red')
  70. bullet.CanCollide = false
  71. bullet.CFrame = script.Parent.Torso.CFrame
  72. bullet.Velocity = lookAt * 1000
  73. local a0 = Instance.new("Attachment")
  74. a0.Parent = bullet
  75. a0.Position = Vector3.new(0,.25,0)
  76. a0.Name = "Trail Attachment 0"
  77. local a1 = Instance.new("Attachment")
  78. a1.Parent = bullet
  79. a1.Position = Vector3.new(0,-.25,0)
  80. a1.Name = "Trail Attachment 1"
  81. local trail = Instance.new("Trail")
  82. trail.Parent = bullet
  83. trail.Attachment0 = a0
  84. trail.Attachment1 = a1
  85. trail.Transparency = NumberSequence.new(0,1)
  86. trail.Color = ColorSequence.new(Color3.new(255,0,0))
  87. trail.Lifetime = .1
  88. end
  89. function pistolshot()
  90. local targetPos = script.Parent.Humanoid.TargetPoint
  91. local lookAt = (targetPos - script.Parent.Head.Position).unit
  92. local bullet = Instance.new("Part")
  93. bullet.Touched:connect(littledmg)
  94. bullet.Parent = game.Workspace
  95. bullet.Locked = true
  96. bullet.Name = "Laser bullet"
  97. bullet.Shape = Enum.PartType.Ball
  98. bullet.Size = Vector3.new(.5,.5,.5)
  99. bullet.Material = Enum.Material.Neon
  100. bullet.BrickColor = BrickColor.new('Really red')
  101. bullet.CanCollide = false
  102. bullet.CFrame = script.Parent.Torso.CFrame
  103. bullet.Velocity = lookAt * 1000
  104. local a0 = Instance.new("Attachment")
  105. a0.Parent = bullet
  106. a0.Position = Vector3.new(0,.5,0)
  107. a0.Name = "Trail Attachment 0"
  108. local a1 = Instance.new("Attachment")
  109. a1.Parent = bullet
  110. a1.Position = Vector3.new(0,-.5,0)
  111. a1.Name = "Trail Attachment 1"
  112. local trail = Instance.new("Trail")
  113. trail.Parent = bullet
  114. trail.Attachment0 = a0
  115. trail.Attachment1 = a1
  116. trail.Transparency = NumberSequence.new(0,1)
  117. trail.Color = ColorSequence.new(Color3.new(255,0,0))
  118. trail.Lifetime = .1
  119. end
  120. function superrifleshot()
  121. local targetPos = script.Parent.Humanoid.TargetPoint
  122. local lookAt = (targetPos - script.Parent.Head.Position).unit
  123. local bullet = Instance.new("Part")
  124. bullet.Touched:connect(bigdmg)
  125. bullet.Parent = game.Workspace
  126. bullet.Locked = true
  127. bullet.Name = "Laser bullet"
  128. bullet.Shape = Enum.PartType.Ball
  129. bullet.Size = Vector3.new(.5,.5,2)
  130. bullet.Material = Enum.Material.Neon
  131. bullet.BrickColor = BrickColor.new('Royal purple')
  132. bullet.CanCollide = false
  133. bullet.CFrame = script.Parent.Torso.CFrame
  134. bullet.Velocity = lookAt * 1000
  135. local a0 = Instance.new("Attachment")
  136. a0.Parent = bullet
  137. a0.Position = Vector3.new(0,.5,0)
  138. a0.Name = "Trail Attachment 0"
  139. local a1 = Instance.new("Attachment")
  140. a1.Parent = bullet
  141. a1.Position = Vector3.new(0,-.5,0)
  142. a1.Name = "Trail Attachment 1"
  143. local trail = Instance.new("Trail")
  144. trail.Parent = bullet
  145. trail.Attachment0 = a0
  146. trail.Attachment1 = a1
  147. trail.Transparency = NumberSequence.new(0,1)
  148. trail.Color = ColorSequence.new(Color3.new(255,0,255))
  149. trail.Lifetime = .1
  150. end
  151. function bfgshot()
  152. local targetPos = script.Parent.Humanoid.TargetPoint
  153. local lookAt = (targetPos - script.Parent.Head.Position).unit
  154. local bullet = Instance.new("Part")
  155. bullet.Touched:connect(onehitkill)
  156. bullet.Parent = game.Workspace
  157. bullet.Locked = true
  158. bullet.Name = "Laser bullet"
  159. bullet.Shape = Enum.PartType.Ball
  160. bullet.Size = Vector3.new(2,2,2)
  161. bullet.Material = Enum.Material.Neon
  162. bullet.BrickColor = BrickColor.new('Lime green')
  163. bullet.CanCollide = false
  164. bullet.CFrame = script.Parent.Torso.CFrame
  165. bullet.Velocity = lookAt * 1000
  166. local a0 = Instance.new("Attachment")
  167. a0.Parent = bullet
  168. a0.Position = Vector3.new(0,1,0)
  169. a0.Name = "Trail Attachment 0"
  170. local a1 = Instance.new("Attachment")
  171. a1.Parent = bullet
  172. a1.Position = Vector3.new(0,-1,0)
  173. a1.Name = "Trail Attachment 1"
  174. local trail = Instance.new("Trail")
  175. trail.Parent = bullet
  176. trail.Attachment0 = a0
  177. trail.Attachment1 = a1
  178. trail.Transparency = NumberSequence.new(0,1)
  179. trail.Color = ColorSequence.new(Color3.new(0,255,0))
  180. trail.Lifetime = .1
  181. end
  182. --=================[EARS]=================--
  183. local ears = Instance.new("Part")
  184. ears.Parent = model
  185. ears.Size = Vector3.new(1,1,1)
  186. ears.BrickColor = BrickColor.new('Pastel brown')
  187. local ear_weld = Instance.new("Weld")
  188. ear_weld.Parent = ears
  189. ear_weld.Part0 = script.Parent.Head
  190. ear_weld.Part1 = ears
  191. local ears_mesh = Instance.new("SpecialMesh")
  192. ears_mesh.Parent = ears
  193. ears_mesh.MeshType = "FileMesh"
  194. ears_mesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
  195. ears_mesh.Scale = Vector3.new(1,2,1)
  196. ears_mesh.Offset = Vector3.new(0,.8,0)
  197. --=================[WEAPONS]=================--
  198. local wep = Instance.new("Tool")
  199. wep.Parent = game.Players[script.Parent.Name].Backpack
  200. wep.Name = "Laser Gun"
  201. wep.GripPos = Vector3.new(0.4,-0.6,0.1)
  202. local wephandle = Instance.new("Part")
  203. wephandle.Parent = wep
  204. wephandle.Name = "Handle"
  205. wephandle.Size = Vector3.new(1,1,3)
  206. local wepmesh = Instance.new("SpecialMesh")
  207. wepmesh.Parent = wephandle
  208. wepmesh.Name = "Gun Mesh"
  209. wepmesh.MeshId = "http://www.roblox.com/asset/?id=193471371"
  210. wepmesh.TextureId = "http://www.roblox.com/asset/?id=1138993948"
  211.  
  212. local wep2 = Instance.new("Tool")
  213. wep2.Parent = game.Players[script.Parent.Name].Backpack
  214. wep2.Name = "Laser Pistol"
  215. wep2.GripPos = Vector3.new(0.4,-0.6,0.1)
  216. local wephandle2 = Instance.new("Part")
  217. wephandle2.Parent = wep2
  218. wephandle2.Name = "Handle"
  219. wephandle2.Size = Vector3.new(0.5,1,1.5)
  220. local wepmesh2 = Instance.new("SpecialMesh")
  221. wepmesh2.Parent = wephandle2
  222. wepmesh2.Name = "Gun Mesh"
  223. wepmesh2.MeshId = "rbxassetid://634222143"
  224. wepmesh2.TextureId = "rbxassetid://634221905"
  225. wepmesh2.Scale = Vector3.new(1.5,1.5,1.5)
  226.  
  227. local wep3 = Instance.new("Tool")
  228. wep3.Parent = game.Players[script.Parent.Name].Backpack
  229. wep3.Name = "Purple Laser Rifle"
  230. wep3.GripPos = Vector3.new(0,-0.4,0.9)
  231. local wephandle3 = Instance.new("Part")
  232. wephandle3.Parent = wep3
  233. wephandle3.Name = "Handle"
  234. wephandle3.Size = Vector3.new(0.75,1,3.5)
  235. local wepmesh3 = Instance.new("SpecialMesh")
  236. wepmesh3.Parent = wephandle3
  237. wepmesh3.Name = "Gun Mesh"
  238. wepmesh3.MeshId = "http://www.roblox.com/asset/?id=280037291"
  239. wepmesh3.TextureId = "http://www.roblox.com/asset/?id=280037426"
  240.  
  241. local wep4 = Instance.new("Tool")
  242. wep4.Parent = game.Players[script.Parent.Name].Backpack
  243. wep4.Name = "BFG-9000"
  244. wep4.GripPos = Vector3.new(0,-0.6,1)
  245. local wephandle4 = Instance.new("Part")
  246. wephandle4.Parent = wep4
  247. wephandle4.Name = "Handle"
  248. wephandle4.Size = Vector3.new(1.2,1.15,3.15)
  249. local wepmesh4 = Instance.new("SpecialMesh")
  250. wepmesh4.Parent = wephandle4
  251. wepmesh4.Name = "Gun Mesh"
  252. wepmesh4.MeshId = "http://www.roblox.com/asset/?id=94296999"
  253. wepmesh4.TextureId = "rbxassetid://146111231"
  254. wepmesh4.Scale = Vector3.new(3,3,3)
  255. --=================[End of that things]=================--
  256. wep.Activated:connect(rifleshot)
  257. wep2.Activated:connect(pistolshot)
  258. wep3.Activated:connect(superrifleshot)
  259. wep4.Activated:connect(bfgshot)
  260. mouse.KeyDown:connect(function(key)
  261. key = key:lower()
  262. if key == "e" then
  263. local anim = script.Parent.Humanoid:LoadAnimation(anim)
  264. anim:play()
  265. end
  266. end)
  267. while true do
  268. wait(.1)
  269. script.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=24222023"
  270. script.Parent["Body Colors"].HeadColor = BrickColor.new('Dusty Rose')
  271. script.Parent["Body Colors"].LeftArmColor = BrickColor.new('Dusty Rose')
  272. script.Parent["Body Colors"].LeftLegColor = BrickColor.new('Dusty Rose')
  273. script.Parent["Body Colors"].RightArmColor = BrickColor.new('Dusty Rose')
  274. script.Parent["Body Colors"].RightLegColor = BrickColor.new('Dusty Rose')
  275. script.Parent["Body Colors"].TorsoColor = BrickColor.new('Dusty Rose')
  276. local hats = script.Parent:FindFirstChildOfClass("Accessory")
  277. hats.Parent = nil
  278. end
  279. -- Made by ZKiller467570 --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement