Advertisement
deadropz

Chara

Jun 1st, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = plr.Character
  3. local mouse = plr:GetMouse()
  4. local animc = Instance.new("Animation", char)
  5. animc.AnimationId = "rbxassetid://218504594"
  6. atkd = false
  7. godtuch = false
  8. freeze = false
  9. hot = false
  10. laser = false
  11. music1 = false
  12. local handle = Instance.new("Part")
  13. handle.Size = Vector3.new(0.4, 3, 0.8)
  14. handle.Material = "Wood"
  15. handle.BrickColor = BrickColor.new("Reddish brown")
  16. local weld = Instance.new("Weld", handle)
  17. local mesh = Instance.new("SpecialMesh")
  18. local swing = Instance.new("Sound", handle)
  19. local music = Instance.new("Sound", handle)
  20. local hits = Instance.new("Sound", handle)
  21. local hiti = Instance.new("Sound", handle)
  22. local hity = Instance.new("Sound", handle)
  23. local hitu = Instance.new("Sound", handle)
  24. local swing2 = Instance.new("Sound", handle)
  25. local damage = Instance.new("IntValue", handle)
  26. local gui = Instance.new("ScreenGui", plr.PlayerGui)
  27. local gui2 = Instance.new("ScreenGui", plr.PlayerGui)
  28. local gui3 = Instance.new("ScreenGui", plr.PlayerGui)
  29. local gui4 = Instance.new("ScreenGui", plr.PlayerGui)
  30. local txt = Instance.new("TextLabel", gui)
  31. local txt2 = Instance.new("TextLabel", gui)
  32. local txt3 = Instance.new("TextLabel", gui)
  33. local txt4 = Instance.new("TextLabel", gui)
  34. mesh.Scale = Vector3.new(1, 1, 1)
  35. mesh.MeshType = "FileMesh"
  36. mesh.TextureId = "http://www.roblox.com/asset/?id=155195316"
  37. mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
  38. txt.BorderSizePixel = 0
  39. txt.BackgroundTransparency = 0.5
  40. txt.BackgroundColor3 = Color3.new(108, 108, 108)
  41. txt.TextScaled = true
  42. txt.Visible = true
  43. txt.Position = UDim2.new(0, 0, 0, 0)
  44. txt.Size = UDim2.new(0, 200, 0, 50)
  45. txt.Font = "SciFi"
  46. txt.TextColor3 = Color3.new(255, 255, 255)
  47. txt2.BorderSizePixel = 0
  48. txt2.BackgroundTransparency = 0.5
  49. txt2.BackgroundColor3 = Color3.new(108, 108, 108)
  50. txt2.TextScaled = true
  51. txt2.Visible = true
  52. txt2.Position = UDim2.new(0, 0, 0.1, 0)
  53. txt2.Size = UDim2.new(0, 200, 0, 50)
  54. txt2.Font = "SciFi"
  55. txt2.TextColor3 = Color3.new(255, 255, 255)
  56. txt2.Text = "Regular"
  57. txt3.BorderSizePixel = 0
  58. txt3.BackgroundTransparency = 0.5
  59. txt3.BackgroundColor3 = Color3.new(108, 108, 108)
  60. txt3.TextScaled = true
  61. txt3.Visible = true
  62. txt3.Position = UDim2.new(0.28, 0, 0, 0)
  63. txt3.Size = UDim2.new(0, 200, 0, 50)
  64. txt3.Font = "SciFi"
  65. txt3.TextColor3 = Color3.new(255, 255, 255)
  66. txt4.BorderSizePixel = 0
  67. txt4.BackgroundTransparency = 0.5
  68. txt4.BackgroundColor3 = Color3.new(108, 108, 108)
  69. txt4.TextScaled = true
  70. txt4.Visible = true
  71. txt4.Position = UDim2.new(0.28, 0, 0.1, 0)
  72. txt4.Size = UDim2.new(0, 200, 0, 50)
  73. txt4.Font = "SciFi"
  74. txt4.TextColor3 = Color3.new(255, 255, 255)
  75. mesh.Parent = handle
  76. damage.Value = 90
  77. swing.Name = "swing"
  78. hits.Name = "Hit"
  79. hits.SoundId = "rbxassetid://388826051"
  80. swing.SoundId = "rbxassetid://437475935"
  81. music.SoundId = "rbxassetid://399570826"
  82. swing2.SoundId = "rbxassetid://605565775"
  83. hiti.SoundId = "rbxassetid://388826051"
  84. hity.SoundId = "rbxassetid://388826051"
  85. hitu.SoundId = "rbxassetid://388826051"
  86. handle.Parent = char
  87. weld.Part0 = handle
  88. weld.Part1 = char["Right Arm"]
  89. weld.C1 = CFrame.fromEulerAnglesXYZ(-1.6, 0, 0) * CFrame.new(0, 1, -1)
  90. char.Humanoid.MaxHealth = 6000
  91. char.Humanoid.Health = char.Humanoid.MaxHealth
  92.  
  93. txt.Text = "damage: "..damage.Value
  94. damage.Changed:connect(function()
  95. txt.Text = "damage: "..damage.Value
  96. end)
  97.  
  98. txt3.Text = "MaxHealth: "..char.Humanoid.MaxHealth
  99. char.Humanoid.Changed:connect(function()
  100. txt3.Text = "MaxHealth: "..char.Humanoid.MaxHealth
  101. end)
  102.  
  103. txt4.Text = "Speed: "..char.Humanoid.WalkSpeed
  104. char.Humanoid.Changed:connect(function()
  105. txt4.Text = "Speed: "..char.Humanoid.WalkSpeed
  106. end)
  107.  
  108. function debounce(func)
  109. local isRunning = false
  110. return function(...)
  111. if not isRunning then
  112. isRunning = true
  113.  
  114. func(...)
  115.  
  116. isRunning = false
  117. end
  118. end
  119. end
  120.  
  121. mouse.Button1Down:connect(debounce(function()
  122. local anim = char.Humanoid:LoadAnimation(animc)
  123.  
  124. swing:Play()
  125. anim:Play()
  126. atkd = true
  127. wait(0.9)
  128. atkd = false
  129. wait(1)
  130. end))
  131.  
  132. handle.Touched:connect(debounce(function(hit)
  133. if hit.Name == "Head" or hit.Name == "Torso" or hit.Name == "Right Arm" or hit.Name == "Left Arm" or hit.Name == "Right Leg" or hit.Name == "Left Leg" and hit.Parent.Name ~= char.Name then
  134. if atkd == true and godtuch == false and freeze == false and hot == false and laser == false then
  135. hit.Parent.Humanoid:TakeDamage(damage.Value)
  136. hits:Play()
  137. hit.Parent.Humanoid.PlatformStand = true
  138. wait(0.5)
  139. hit.Parent.Humanoid.PlatformStand = false
  140. wait(1)
  141. elseif atkd == true and godtuch == true and freeze == false and hot == false and laser == false then
  142. hit.Parent.Humanoid.Health = 0
  143. hits:Play()
  144. wait(1)
  145. elseif atkd == true and freeze == true and godtuch == false and hot == false and laser == false then
  146. hit.Anchored = true
  147. hit.BrickColor = BrickColor.new("Baby blue")
  148. hit.Material = "Ice"
  149. hiti:Play()
  150. wait(1)
  151. elseif atkd == true and freeze == false and godtuch == false and hot == true and laser == false then
  152. local fire = Instance.new("Fire")
  153. fire.Heat = 9
  154. fire.Size = 5
  155. fire.Color = Color3.new(236, 139, 70)
  156. fire.SecondaryColor = Color3.new(139, 80, 55)
  157. fire.Enabled = true
  158. hit.BrickColor = BrickColor.new("Really black")
  159. hit.Material = "Slate"
  160. fire.Parent = hit
  161. hity:Play()
  162. wait(0.5)
  163. hit:Destroy()
  164. wait(1)
  165. elseif atkd == true and freeze == false and godtuch == false and hot == false and laser == true then
  166. hit.CanCollide = true
  167. hit:BreakJoints()
  168. hitu:Play()
  169. wait(1)
  170. end
  171. end
  172. end))
  173.  
  174. mouse.KeyDown:connect(debounce(function(Key)
  175. if(Key:lower() == "q") and godtuch == false then
  176. godtuch = true
  177. handle.BrickColor = BrickColor.new("Bright red")
  178. handle.Material = "Neon"
  179. txt2.Text = "GodTuch"
  180. elseif (Key:lower() == "q") and godtuch == true then
  181. godtuch = false
  182. handle.BrickColor = BrickColor.new("Reddish brown")
  183. handle.Material = "Wood"
  184. txt2.Text = "Regular"
  185. elseif (Key:lower() == "r") then
  186. damage.Value = damage.Value + 10
  187. elseif (Key:lower() == "t") then
  188. damage.Value = damage.Value - 10
  189. elseif (Key:lower() == "e") and freeze == false then
  190. freeze = true
  191. handle.BrickColor = BrickColor.new("Baby blue")
  192. handle.Material = "Ice"
  193. txt2.Text = "Freeze"
  194. elseif (Key:lower() == "e") and freeze == true then
  195. freeze = false
  196. handle.Material = "Wood"
  197. handle.BrickColor = BrickColor.new("Reddish brown")
  198. txt2.Text = "Regular"
  199. elseif (Key:lower() == "h") and hot == false then
  200. local fire = Instance.new("Fire")
  201. fire.Heat = 9
  202. fire.Size = 5
  203. fire.Color = Color3.new(236, 139, 70)
  204. fire.SecondaryColor = Color3.new(139, 80, 55)
  205. fire.Enabled = true
  206. fire.Parent = handle
  207. handle.Material = "Neon"
  208. handle.BrickColor = BrickColor.new("Deep orange")
  209. txt2.Text = "Fire"
  210. hot = true
  211. elseif (Key:lower() == "h") and hot == true then
  212. hot = false
  213. handle.Material = "Wood"
  214. handle.BrickColor = BrickColor.new("Reddish brown")
  215. txt2.Text = "Regular"
  216. handle.Fire:Destroy()
  217. elseif (Key:lower() == "l") and laser == false then
  218. local p = Instance.new("ParticleEmitter")
  219. local color1 = Color3.new(255, 0, 0)
  220. local color2 = Color3.new(255, 0, 0)
  221. p.Size = NumberSequence.new(0.3)
  222. p.Color = ColorSequence.new(color1, color2)
  223. p.LockedToPart = true
  224. p.Lifetime = NumberRange.new(60)
  225. p.Rate = 10000
  226. p.Rotation = NumberRange.new(300)
  227. p.RotSpeed = NumberRange.new(300)
  228. p.Speed = NumberRange.new(0)
  229. p.Enabled = true
  230. p.LightEmission = 0.9
  231. p.Parent = handle
  232. p.Name = "P"
  233. swing.SoundId = "rbxassetid://437475935"
  234. handle.Material = "Neon"
  235. handle.BrickColor = BrickColor.new("Really red")
  236. txt2.Text = "Laser"
  237. laser = true
  238. elseif (Key:lower() == "l") and laser == true then
  239. handle.P:Destroy()
  240. handle.Material = "Wood"
  241. swing.SoundId = "rbxassetid://437475935"
  242. handle.BrickColor = BrickColor.new("Reddish brown")
  243. txt2.Text = "Regular"
  244. laser = false
  245. elseif (Key:lower() == "x") then
  246. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 10
  247. elseif (Key:lower() == "z") then
  248. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - 10
  249. elseif (Key:lower() == "c") then
  250. char.Humanoid.Health = char.Humanoid.MaxHealth
  251. elseif (Key:lower() == "f") then
  252. char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 10
  253. elseif (Key:lower() == "g") then
  254. char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed - 10
  255. elseif (Key:lower() == "v") then
  256. char.Humanoid.MaxHealth = 10000000000000000000000000000000000000000000000000000000000000000000
  257. elseif (Key:lower() == "b") then
  258. char.Humanoid.MaxHealth = 100
  259. elseif (Key:lower() == "n") then
  260. char.Humanoid.MaxHealth = 6000
  261. elseif (Key:lower() == "m") and music1 == false then
  262. music:Play()
  263. music1 = true
  264. elseif (Key:lower() == "m") and music1 == true then
  265. music:Stop()
  266. music1 = false
  267. end
  268. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement