Advertisement
rubikz

Untitled

Jul 29th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.87 KB | None | 0 0
  1. --Lets create a cool load-up animation.
  2. Bp = game.Players.LocalPlayer.Backpack
  3. jun = Bp.Parent
  4.  
  5. BlastRing = Instance.new("Part") --Creating the spike ball.
  6. BlastRing.Parent = game.Lighting
  7. BlastRing.Name = "BlastRing"
  8. BlastRing.formFactor = "Symmetric"
  9. BlastRing.Size = Vector3.new(0, 0, 0)
  10. BlastRing.CanCollide = false
  11. BlastRing.TopSurface = "Smooth"
  12. BlastRing.BottomSurface = "Smooth"
  13. BlastRing.BrickColor = BrickColor.new("Forest green")
  14. BlastRing.Reflectance = 0
  15. BlastRing.Anchored = true
  16. Mesh2 = Instance.new("SpecialMesh")
  17. Mesh2.Parent = BlastRing
  18. Mesh2.MeshType = "FileMesh"
  19. Mesh2.MeshId = "http://www.roblox.com/Asset/?id=9982590"
  20. Mesh2.Scale = Vector3.new(1, 1, 1)
  21.  
  22. ExsplosionRing = Instance.new("Part") --Creating the ring.
  23. ExsplosionRing.Parent = game.Lighting
  24. ExsplosionRing.Name = "Explosion Ring"
  25. ExsplosionRing.formFactor = "Symmetric"
  26. ExsplosionRing.Size = Vector3.new(0, 0, 0)
  27. ExsplosionRing.CanCollide = false
  28. ExsplosionRing.TopSurface = "Smooth"
  29. ExsplosionRing.BottomSurface = "Smooth"
  30. ExsplosionRing.BrickColor = BrickColor.new("Black")
  31. ExsplosionRing.Transparency = 0.3
  32. ExsplosionRing.Reflectance = 0
  33. ExsplosionRing.Anchored = true
  34. Mesh3 = Instance.new("SpecialMesh")
  35. Mesh3.Parent = ExsplosionRing
  36. Mesh3.MeshType = "FileMesh"
  37. Mesh3.MeshId = "http://www.roblox.com/Asset/?id=20329976"
  38. Mesh3.Scale = Vector3.new(1, 1, 1)
  39. Mesh3.Offset = Vector3.new(0,-2,0)
  40.  
  41.  
  42. jun.Character.Humanoid.WalkSpeed = 0
  43.  
  44. blastring2 = BlastRing:clone() --Cloning spike ball out of lighting to surround player.
  45. blastring2.Parent = jun.Character
  46. blastring2.Position = jun.Character.Torso.Position
  47. blastring2.BrickColor = BrickColor.new("Forest green")
  48. blastring2.Transparency = 0.5
  49. blastring2.Reflectance = 0
  50.  
  51. for i = 1, 50 do --Making the spike ball grow around the player.
  52. wait(0.03)
  53. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
  54. blastring2.Transparency = blastring2.Transparency + 0.01
  55. end
  56.  
  57. blastring3 = ExsplosionRing:clone() --Cloning the ring out of lighting to surround player.
  58. blastring3.Parent = jun.Character
  59. blastring3.Position = jun.Character.Torso.Position
  60. blastring3.BrickColor = BrickColor.new("Black")
  61. blastring3.Transparency = 0.3
  62. blastring3.Reflectance = 0
  63.  
  64. for i = 1, 50 do --Resizing the rin to grow around the players legs.
  65. wait(0.03)
  66. blastring3.Mesh.Scale = blastring3.Mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
  67. blastring3.Transparency = blastring3.Transparency + 0.01
  68. end
  69. blastring2:remove()
  70. blastring3:Destroy()
  71.  
  72. jun.Character.Humanoid.WalkSpeed = 22
  73. --End of animation.
  74.  
  75. --Lets start the actual Mage Script.
  76. local lp = game.Players.LocalPlayer
  77.  
  78. --Set The Players Health As If Wearing Armor.
  79. lp.Character.Humanoid.MaxHealth = lp.Character.Humanoid.MaxHealth+200
  80. wait(0.03)
  81. lp.Character.Humanoid.Health = lp.Character.Humanoid.MaxHealth
  82. --End Armor Control
  83.  
  84. --Create the Model to place the armor in.
  85. m = Instance.new("Model",lp.Character)
  86. m.Name = "Scapters Armor"
  87.  
  88. --Let's start creating the Left Arm.
  89. la = Instance.new("Part",m)
  90. la.Name = "Left Arm"
  91. la.FormFactor = "Custom"
  92. la.Material = "Concrete"
  93. la.CanCollide = false
  94. la.BrickColor = BrickColor.new("Forest green")
  95. la.BottomSurface = "Smooth"
  96. la.TopSurface = "Smooth"
  97. la.Size = Vector3.new(1.05,1.05,1.05)
  98. law = Instance.new("ManualWeld",la) --Weld the armor piece to the Left Arm.
  99. law.Part0 = la
  100. law.Part1 = lp.Character["Left Arm"]
  101. law.C0 = CFrame.new(0,-0.5,0) --Positions the Left Arm.
  102. --End Left Arm.
  103.  
  104. --Let's start creating the Right Arm.
  105. ra = Instance.new("Part",m)
  106. ra.Name = "Right Arm"
  107. ra.FormFactor = "Custom"
  108. ra.Material = "Concrete"
  109. ra.CanCollide = false
  110. ra.BrickColor = BrickColor.new("Forest green")
  111. ra.BottomSurface = "Smooth"
  112. ra.TopSurface = "Smooth"
  113. ra.Size = Vector3.new(1.05,1.05,1.05)
  114. raw = Instance.new("ManualWeld",ra) --Weld the armor piece to the Right Arm.
  115. raw.Part0 = ra
  116. raw.Part1 = lp.Character["Right Arm"]
  117. raw.C0 = CFrame.new(0,-0.5,0) --Positions the Right Arm.
  118. --End Right Arm.
  119.  
  120. --Let's start creating the Torso.
  121. t = Instance.new("Part",m)
  122. t.Name = "Torso"
  123. t.FormFactor = "Custom"
  124. t.CanCollide = false
  125. t.Material = "Concrete"
  126. t.BrickColor = BrickColor.new("Forest green")
  127. t.BottomSurface = "Smooth"
  128. t.TopSurface = "Smooth"
  129. t.Size = Vector3.new(2.05,2.05,1.05)
  130. tw = Instance.new("ManualWeld",t) --Weld the armor piece to the Torso.
  131. tw.Part0 = t
  132. tw.Part1 = lp.Character.Torso --Torso does not need to be positioned.
  133. sg = Instance.new("SurfaceGui",t) --Creating a surfacegui to display health.(buggy)
  134. f = Instance.new("Frame",sg)
  135. f.BackgroundTransparency = 1
  136. f.Size = UDim2.new(1,0,1,0)
  137. tl = Instance.new("TextLabel",f)
  138. tl.BackgroundTransparency = 1
  139. tl.Size = UDim2.new(1,0,1,0)
  140. tl.Font = "SourceSansBold"
  141. tl.FontSize = "Size96"
  142. tl.TextColor3 = Color3.new(0,0,0)
  143. tl.TextStrokeColor3 = Color3.new(0,0,0)
  144. tl.TextStrokeTransparency = 0
  145. --End Torso.
  146.  
  147. --Let's start creating the Left Leg.
  148. ll = Instance.new("Part",m)
  149. ll.Name = "Left Leg"
  150. ll.FormFactor = "Custom"
  151. ll.Material = "Concrete"
  152. ll.CanCollide = false
  153. ll.BrickColor = BrickColor.new("Forest green")
  154. ll.BottomSurface = "Smooth"
  155. ll.TopSurface = "Smooth"
  156. ll.Size = Vector3.new(1.05,1.65,1.05)
  157. llw = Instance.new("ManualWeld",ll) --Weld the armor piece to the Left Leg.
  158. llw.Part0 = ll
  159. llw.Part1 = lp.Character["Left Leg"]
  160. llw.C0 = CFrame.new(0,-0.2,0) --Positions the Left Leg.
  161. --End Left Leg.
  162.  
  163. --Let's start creating the Right Leg.
  164. rl = Instance.new("Part",m)
  165. rl.Name = "Right Leg"
  166. rl.FormFactor = "Custom"
  167. rl.Material = "Concrete"
  168. rl.CanCollide = false
  169. rl.BrickColor = BrickColor.new("Forest green")
  170. rl.BottomSurface = "Smooth"
  171. rl.TopSurface = "Smooth"
  172. rl.Size = Vector3.new(1.05,1.65,1.05)
  173. rlw = Instance.new("ManualWeld",rl) --Weld the armor piece to the Right Leg.
  174. rlw.Part0 = rl
  175. rlw.Part1 = lp.Character["Right Leg"]
  176. rlw.C0 = CFrame.new(0,-0.2,0) --Positions the Right Leg.
  177. --End Right Leg.
  178.  
  179. --Let's make it so elasticity and friction are set to a high value to prevent stutters.
  180. for i,v in ipairs(m:GetChildren()) do
  181. v.Friction = 2000
  182. v.Elasticity = 2000
  183. end
  184. --End stutter provention.
  185.  
  186. local color1 = Color3.new(0, 85, 0)
  187. local color2 = Color3.new(0,0,0)
  188. local sequence = ColorSequence.new(color1,color2)
  189.  
  190. --Let's create the staff.
  191. t = Instance.new("Tool", lp.Backpack) --Creating the tool for the staff to be put into.
  192. t.Name = "Scapters Staff"
  193. t.GripPos = Vector3.new(0,0.65,0)
  194. t.ToolTip = "Whome-ever wields this staff is a true legend."
  195. t.CanBeDropped = false
  196. s = Instance.new("Part",t) --This will be the base part of the staff(the part the player holds).
  197. s.Name = "Handle"
  198. s.BrickColor = BrickColor.new("Burnt Sienna")
  199. s.FormFactor = "Custom"
  200. s.Size = Vector3.new(0.32,5.64,0.28)
  201. s.Material = "Wood"
  202. b = Instance.new("Part",t) --Lets create the tip of the staff.
  203. b.Material = "Concrete"
  204. b.BrickColor = BrickColor.new("Forest green")
  205. b.Shape = "Ball"
  206. b.Size = Vector3.new(1,1,1)
  207. b.TopSurface = "Smooth"
  208. b.BottomSurface = "Smooth"
  209. bw = Instance.new("ManualWeld",rl) --Weld the tip to the staff.
  210. bw.Part0 = s
  211. bw.Part1 = b
  212. bw.C0 = CFrame.new(0,2.5,0) --Positions the tip.
  213. pe = Instance.new("ParticleEmitter",b) -- Lets create the fancy looking particles
  214. pe.Color = sequence
  215. pe.Texture = "http://www.roblox.com/asset/?id=242292318"
  216. pe.LightEmission = 1
  217. pe.Lifetime = NumberRange.new(1,1)
  218. pe.Rotation = NumberRange.new(360,360)
  219. pe.RotSpeed = NumberRange.new(360,360)
  220. pe.Speed = NumberRange.new(1,1)
  221. pe.LockedToPart = true
  222. sk = Instance.new("Part",t)--Let's create the skull
  223. sk.BrickColor = BrickColor.new("Forest green")
  224. sk.Material = "Concrete"
  225. sm = Instance.new("SpecialMesh",sk)
  226. sm.MeshId = "http://www.roblox.com/asset/?id=6552202"
  227. sm.Scale = Vector3.new(3.2,3.2,3.2)
  228. skw = Instance.new("ManualWeld",rl) --Weld the skull to the staff.
  229. skw.Part0 = s
  230. skw.Part1 = sk
  231. skw.C0 = CFrame.new(0,2.5,0) --Positions the skull.
  232. game.Players.LocalPlayer.Character.Humanoid:EquipTool(t) --Auto-Equip the staff.
  233. --End staff creation.
  234.  
  235. --Backup
  236. t.Equipped:connect(function()
  237. local bww = Instance.new("ManualWeld",rl) --Weld the tip to the staff.
  238. bww.Part0 = s
  239. bww.Part1 = b
  240. bww.C0 = CFrame.new(0,2.5,0) --Positions the tip.
  241. local skww = Instance.new("ManualWeld",rl) --Weld the skull to the staff.
  242. skww.Part0 = s
  243. skww.Part1 = sk
  244. skww.C0 = CFrame.new(0,2.5,0) --Positions the skull.
  245. end)
  246.  
  247. local mouse = game.Players.LocalPlayer:GetMouse()
  248.  
  249. --Lighting Attack
  250. mouse.Button1Down:connect(function()
  251. local hit = mouse.Target -- This is where the lightning will go.
  252.  
  253. end)
  254.  
  255. --Poison Attack
  256. mouse.Button2Down:connect(function() --Creating the event to detect where the ball will be placed.
  257. local hit = mouse.Target --This is where it gets the players position.
  258. if hit.Parent:FindFirstChild("Torso") then
  259. local h = Instance.new("Part", game.Workspace)
  260. h.Shape = "Ball"
  261. h.Size = Vector3.new(1,1,1)
  262. h.BrickColor = BrickColor.new("Forest green")
  263. h.Material = "Concrete"
  264. h.Anchored = true
  265. h.CanCollide = false
  266. pe = Instance.new("ParticleEmitter",h) --Make the ball look fancy.
  267. pe.Color = sequence
  268. pe.Texture = "http://www.roblox.com/asset/?id=242292318"
  269. pe.LightEmission = 1
  270. pe.Lifetime = NumberRange.new(1,1)
  271. pe.Rotation = NumberRange.new(360,360)
  272. pe.RotSpeed = NumberRange.new(360,360)
  273. pe.Speed = NumberRange.new(1,1)
  274. h.CFrame = hit.Parent.HumanoidRootPart.CFrame --Changes the balls position to the hit players HumanoidRootPart.
  275. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-25
  276. wait(1)
  277. h:Destroy()
  278. for i = 1, 8 do
  279. hit.Parent.Head.BrickColor = BrickColor.new("Sea green") --Set player to poison colors.
  280. hit.Parent["Left Arm"].BrickColor = BrickColor.new("Sea green")
  281. hit.Parent["Right Arm"].BrickColor = BrickColor.new("Sea green")
  282. hit.Parent["Left Leg"].BrickColor = BrickColor.new("Sea green")
  283. hit.Parent["Right Leg"].BrickColor = BrickColor.new("Sea green")
  284. hit.Parent.Torso.BrickColor = BrickColor.new("Sea green")
  285. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-5
  286. lp.Character.Humanoid.Health = lp.Character.Humanoid.Health+5 --Life steal.
  287. pe = Instance.new("ParticleEmitter",hit.Parent.Torso) --Make the poison effect look fancy.
  288. pe.Color = sequence
  289. pe.Texture = "http://www.roblox.com/asset/?id=242292318"
  290. pe.LightEmission = 1
  291. pe.Lifetime = NumberRange.new(1,1)
  292. pe.Rotation = NumberRange.new(360,360)
  293. pe.RotSpeed = NumberRange.new(360,360)
  294. pe.Speed = NumberRange.new(1,1)
  295. wait(0.8)
  296. pe:Destroy()
  297. hit.Parent.Head.BrickColor = hit.Parent["Body Colors"].HeadColor --Set player colors back to normal.
  298. hit.Parent["Left Arm"].BrickColor = hit.Parent["Body Colors"].LeftArmColor
  299. hit.Parent["Right Arm"].BrickColor = hit.Parent["Body Colors"].RightArmColor
  300. hit.Parent["Left Leg"].BrickColor = hit.Parent["Body Colors"].LeftLegColor
  301. hit.Parent["Right Leg"].BrickColor = hit.Parent["Body Colors"].RightLegColor
  302. hit.Parent.Torso.BrickColor = hit.Parent["Body Colors"].TorsoColor
  303. wait(0.8)
  304. end
  305. end
  306. end)
  307.  
  308. --Let's create a forcefield event.
  309. local color1 = Color3.new(0, 170, 0)
  310. local color2 = Color3.new(0, 170, 0)
  311. local sequence = ColorSequence.new(color1,color2)
  312. mouse1 = game.Players.LocalPlayer:GetMouse()
  313.  
  314. mouse1.KeyDown:connect(function(key)
  315. if key == "f" then
  316. pe = Instance.new("ParticleEmitter",m.Torso)
  317. pe.Rate = 1
  318. wait(0.03)
  319. pe.Rate = 0
  320. pe.LightEmission = 0.5
  321. pe.Size = NumberSequence.new(5,5)
  322. pe.Texture = "http://www.roblox.com/asset/?id=147741899"
  323. pe.Color = sequence
  324. pe.Lifetime = NumberRange.new(100e100,100e100)
  325. pe.Rotation = NumberRange.new(360,360)
  326. pe.RotSpeed = NumberRange.new(40,40)
  327. pe.LockedToPart = true
  328. pe.Speed = NumberRange.new(0,0)
  329. pe:Emit(1)
  330. lp.Character.Humanoid.MaxHealth = math.huge
  331. wait(0.03)
  332. lp.Character.Humanoid.Health = math.huge
  333. wait(25)
  334. lp.Character.Humanoid.MaxHealth = 300
  335. wait(0.03)
  336. lp.Character.Humanoid.Health = 300
  337. pe:Destroy()
  338. end
  339. end)
  340. --End forcefield event.
  341.  
  342. while wait(0) do --Create the loop to constantly make the textlabel update with health.(buggy)
  343. tl.Text = "Heath: "..math.floor(lp.Character.Humanoid.Health).."/"..lp.Character.Humanoid.MaxHealth
  344. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement