Advertisement
deadropz

Stick Script

May 31st, 2017
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.12 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. ff = false
  13. local handle = Instance.new("Part")
  14. handle.Size = Vector3.new(7, 0.2, 0.2)
  15. handle.Material = "Wood"
  16. handle.CanCollide = false
  17. handle.BrickColor = BrickColor.new("Reddish brown")
  18. local weld = Instance.new("Weld", handle)
  19. local swing = Instance.new("Sound", handle)
  20. local music = Instance.new("Sound", handle)
  21. local hits = Instance.new("Sound", handle)
  22. local hiti = Instance.new("Sound", handle)
  23. local hity = Instance.new("Sound", handle)
  24. local hitu = Instance.new("Sound", handle)
  25. local swing2 = Instance.new("Sound", handle)
  26. local damage = Instance.new("IntValue", handle)
  27. local gui = Instance.new("ScreenGui", plr.PlayerGui)
  28. local gui2 = Instance.new("ScreenGui", plr.PlayerGui)
  29. local gui3 = Instance.new("ScreenGui", plr.PlayerGui)
  30. local gui4 = Instance.new("ScreenGui", plr.PlayerGui)
  31. local txt = Instance.new("TextLabel", gui)
  32. local txt2 = Instance.new("TextLabel", gui)
  33. local txt3 = Instance.new("TextLabel", gui)
  34. local txt4 = Instance.new("TextLabel", gui)
  35. txt.BorderSizePixel = 0
  36. txt.BackgroundTransparency = 0.5
  37. txt.BackgroundColor3 = Color3.new(108, 108, 108)
  38. txt.TextScaled = true
  39. txt.Visible = true
  40. txt.Position = UDim2.new(0, 0, 0, 0)
  41. txt.Size = UDim2.new(0, 200, 0, 50)
  42. txt.Font = "SciFi"
  43. txt.TextColor3 = Color3.new(255, 255, 255)
  44. txt2.BorderSizePixel = 0
  45. txt2.BackgroundTransparency = 0.5
  46. txt2.BackgroundColor3 = Color3.new(108, 108, 108)
  47. txt2.TextScaled = true
  48. txt2.Visible = true
  49. txt2.Position = UDim2.new(0, 0, 0.1, 0)
  50. txt2.Size = UDim2.new(0, 200, 0, 50)
  51. txt2.Font = "SciFi"
  52. txt2.TextColor3 = Color3.new(255, 255, 255)
  53. txt2.Text = "Regular"
  54. txt3.BorderSizePixel = 0
  55. txt3.BackgroundTransparency = 0.5
  56. txt3.BackgroundColor3 = Color3.new(108, 108, 108)
  57. txt3.TextScaled = true
  58. txt3.Visible = true
  59. txt3.Position = UDim2.new(0.28, 0, 0, 0)
  60. txt3.Size = UDim2.new(0, 200, 0, 50)
  61. txt3.Font = "SciFi"
  62. txt3.TextColor3 = Color3.new(255, 255, 255)
  63. txt4.BorderSizePixel = 0
  64. txt4.BackgroundTransparency = 0.5
  65. txt4.BackgroundColor3 = Color3.new(108, 108, 108)
  66. txt4.TextScaled = true
  67. txt4.Visible = true
  68. txt4.Position = UDim2.new(0.28, 0, 0.1, 0)
  69. txt4.Size = UDim2.new(0, 200, 0, 50)
  70. txt4.Font = "SciFi"
  71. txt4.TextColor3 = Color3.new(255, 255, 255)
  72. damage.Value = 90
  73. swing.Name = "swing"
  74. hits.Name = "Hit"
  75. hits.SoundId = "rbxassetid://743521272"
  76. swing.SoundId = "rbxassetid://608537390"
  77. music.SoundId = "rbxassetid://379494325"
  78. swing2.SoundId = "rbxassetid://605565775"
  79. hiti.SoundId = "rbxassetid://260433557"
  80. hity.SoundId = "rbxassetid://150442604"
  81. hitu.SoundId = "rbxassetid://605600977"
  82. handle.Parent = char
  83. weld.Part0 = handle
  84. weld.Part1 = char["Right Arm"]
  85. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) * CFrame.new(0, -1, 0)
  86. handle.CanCollide = false
  87. char.Humanoid.MaxHealth = 6000
  88. char.Humanoid.Health = char.Humanoid.MaxHealth
  89.  
  90. txt.Text = "damage: "..damage.Value
  91. damage.Changed:connect(function()
  92. txt.Text = "damage: "..damage.Value
  93. end)
  94.  
  95. txt3.Text = "MaxHealth: "..char.Humanoid.MaxHealth
  96. char.Humanoid.Changed:connect(function()
  97. txt3.Text = "MaxHealth: "..char.Humanoid.MaxHealth
  98. end)
  99.  
  100. txt4.Text = "Speed: "..char.Humanoid.WalkSpeed
  101. char.Humanoid.Changed:connect(function()
  102. txt4.Text = "Speed: "..char.Humanoid.WalkSpeed
  103. end)
  104.  
  105. function debounce(func)
  106. local isRunning = false
  107. return function(...)
  108. if not isRunning then
  109. isRunning = true
  110.  
  111. func(...)
  112.  
  113. isRunning = false
  114. end
  115. end
  116. end
  117.  
  118. mouse.Button1Down:connect(debounce(function()
  119. local anim = char.Humanoid:LoadAnimation(animc)
  120.  
  121. swing:Play()
  122. anim:Play()
  123. atkd = true
  124. wait(0.9)
  125. atkd = false
  126. wait(1)
  127. end))
  128.  
  129. handle.Touched:connect(debounce(function(hit)
  130. 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
  131. if atkd == true and godtuch == false and freeze == false and hot == false and laser == false then
  132. hit.Parent.Humanoid:TakeDamage(damage.Value)
  133. hits:Play()
  134. hit.Parent.Humanoid.PlatformStand = true
  135. wait(3)
  136. hit.Parent.Humanoid.PlatformStand = false
  137. wait(1)
  138. elseif atkd == true and godtuch == true and freeze == false and hot == false and laser == false then
  139. hit.Parent.Humanoid.Health = 0
  140. hits:Play()
  141. wait(1)
  142. elseif atkd == true and freeze == true and godtuch == false and hot == false and laser == false then
  143. hit.Anchored = true
  144. hit.BrickColor = BrickColor.new("Baby blue")
  145. hit.Material = "Ice"
  146. hiti:Play()
  147. wait(1)
  148. elseif atkd == true and freeze == false and godtuch == false and hot == true and laser == false then
  149. local fire = Instance.new("Fire")
  150. fire.Heat = 9
  151. fire.Size = 5
  152. fire.Color = Color3.new(236, 139, 70)
  153. fire.SecondaryColor = Color3.new(139, 80, 55)
  154. fire.Enabled = true
  155. hit.BrickColor = BrickColor.new("Really black")
  156. hit.Material = "Slate"
  157. fire.Parent = hit
  158. hity:Play()
  159. wait(0.5)
  160. hit:Destroy()
  161. wait(1)
  162. elseif atkd == true and freeze == false and godtuch == false and hot == false and laser == true then
  163. hit.CanCollide = true
  164. hit:BreakJoints()
  165. hitu:Play()
  166. wait(1)
  167. end
  168. end
  169. end))
  170.  
  171. mouse.KeyDown:connect(debounce(function(Key)
  172. if(Key:lower() == "q") and godtuch == false then
  173. godtuch = true
  174. handle.BrickColor = BrickColor.new("Bright red")
  175. handle.Material = "Neon"
  176. txt2.Text = "GodTuch"
  177. elseif (Key:lower() == "q") and godtuch == true then
  178. godtuch = false
  179. handle.BrickColor = BrickColor.new("Reddish brown")
  180. handle.Material = "Wood"
  181. txt2.Text = "Regular"
  182. elseif (Key:lower() == "r") then
  183. damage.Value = damage.Value + 10
  184. elseif (Key:lower() == "t") then
  185. damage.Value = damage.Value - 10
  186. elseif (Key:lower() == "e") and freeze == false then
  187. freeze = true
  188. handle.BrickColor = BrickColor.new("Baby blue")
  189. handle.Material = "Ice"
  190. txt2.Text = "Freeze"
  191. elseif (Key:lower() == "e") and freeze == true then
  192. freeze = false
  193. handle.Material = "Wood"
  194. handle.BrickColor = BrickColor.new("Reddish brown")
  195. txt2.Text = "Regular"
  196. elseif (Key:lower() == "h") and hot == false then
  197. local fire = Instance.new("Fire")
  198. fire.Heat = 9
  199. fire.Size = 5
  200. fire.Color = Color3.new(236, 139, 70)
  201. fire.SecondaryColor = Color3.new(139, 80, 55)
  202. fire.Enabled = true
  203. fire.Parent = handle
  204. handle.Material = "Neon"
  205. handle.BrickColor = BrickColor.new("Deep orange")
  206. txt2.Text = "Fire"
  207. hot = true
  208. elseif (Key:lower() == "h") and hot == true then
  209. hot = false
  210. handle.Material = "Wood"
  211. handle.BrickColor = BrickColor.new("Reddish brown")
  212. txt2.Text = "Regular"
  213. handle.Fire:Destroy()
  214. elseif (Key:lower() == "l") and laser == false then
  215. local p = Instance.new("ParticleEmitter")
  216. local color1 = Color3.new(255, 0, 0)
  217. local color2 = Color3.new(255, 0, 0)
  218. p.Size = NumberSequence.new(0.3)
  219. p.Color = ColorSequence.new(color1, color2)
  220. p.LockedToPart = true
  221. p.Lifetime = NumberRange.new(60)
  222. p.Rate = 10000
  223. p.Rotation = NumberRange.new(300)
  224. p.RotSpeed = NumberRange.new(300)
  225. p.Speed = NumberRange.new(0)
  226. p.Enabled = true
  227. p.LightEmission = 0.9
  228. p.Parent = handle
  229. p.Name = "P"
  230. swing.SoundId = "rbxassetid://605565775"
  231. handle.Material = "Neon"
  232. handle.BrickColor = BrickColor.new("Really red")
  233. txt2.Text = "Laser"
  234. laser = true
  235. elseif (Key:lower() == "l") and laser == true then
  236. handle.P:Destroy()
  237. handle.Material = "Wood"
  238. swing.SoundId = "rbxassetid://608537390"
  239. handle.BrickColor = BrickColor.new("Reddish brown")
  240. txt2.Text = "Regular"
  241. laser = false
  242. elseif (Key:lower() == "x") then
  243. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 10
  244. elseif (Key:lower() == "z") then
  245. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - 10
  246. elseif (Key:lower() == "c") then
  247. char.Humanoid.Health = char.Humanoid.MaxHealth
  248. elseif (Key:lower() == "f") then
  249. char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 10
  250. elseif (Key:lower() == "g") then
  251. char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed - 10
  252. elseif (Key:lower() == "v") then
  253. char.Humanoid.MaxHealth = 10000000000000000000000000000000000000000000000000000000000000000000
  254. elseif (Key:lower() == "b") then
  255. char.Humanoid.MaxHealth = 100
  256. elseif (Key:lower() == "n") then
  257. char.Humanoid.MaxHealth = 6000
  258. elseif (Key:lower() == "m") and music1 == false then
  259. music:Play()
  260. music1 = true
  261. elseif (Key:lower() == "m") and music1 == true then
  262. music:Stop()
  263. music1 = false
  264. elseif (Key:lower() == "p") and ff == false then
  265. local forcef = Instance.new("ForceField")
  266. ff = true
  267. forcef.Visible = false
  268. forcef.Parent = char
  269. local part1 = char.Torso:Clone()
  270. local welds = Instance.new("Weld", char.Torso)
  271. part1.CFrame = char.Torso.CFrame
  272. part1.Size = char.Torso.Size + Vector3.new(0.05, 0.05, 0.05)
  273. part1.Material = "Neon"
  274. part1.BrickColor = BrickColor.new("Toothpaste")
  275. part1.Transparency = 0.5
  276. part1.Anchored = false
  277. part1.Name = "Tor"
  278. part1.Parent = char
  279. part1.Orientation = char.Torso.Orientation
  280. welds.Part0 = char.Torso
  281. welds.Part1 = part1
  282. local part2 = char["Right Arm"]:Clone()
  283. local welds2 = Instance.new("Weld", char["Right Arm"])
  284. part2.CFrame = char.Torso.CFrame
  285. part2.Size = char["Right Arm"].Size + Vector3.new(0.05, 0.05, 0.05)
  286. part2.Material = "Neon"
  287. part2.BrickColor = BrickColor.new("Toothpaste")
  288. part2.Transparency = 0.5
  289. part2.Anchored = false
  290. part2.Name = "RighA"
  291. part2.Parent = char
  292. part2.Orientation = char["Right Arm"].Orientation
  293. welds2.Part0 = char["Right Arm"]
  294. welds2.Part1 = part2
  295. local part3 = char["Left Arm"]:Clone()
  296. local welds3 = Instance.new("Weld", char["Left Arm"])
  297. part3.CFrame = char["Left Arm"].CFrame
  298. part3.Size = char["Left Arm"].Size + Vector3.new(0.05, 0.05, 0.05)
  299. part3.Material = "Neon"
  300. part3.BrickColor = BrickColor.new("Toothpaste")
  301. part3.Transparency = 0.5
  302. part3.Anchored = false
  303. part3.Name = "LefA"
  304. part3.Parent = char
  305. part3.Orientation = char["Left Arm"].Orientation
  306. welds3.Part0 = char["Left Arm"]
  307. welds3.Part1 = part3
  308. local part4 = char.Head:Clone()
  309. local welds4 = Instance.new("Weld", char.Head)
  310. part4.CFrame = char.Head.CFrame
  311. part4.Size = char.Head.Size + Vector3.new(0.05, 0.05, 0.05)
  312. part4.face:Destroy()
  313. part4.Material = "Neon"
  314. part4.BrickColor = BrickColor.new("Toothpaste")
  315. part4.Transparency = 0.5
  316. part4.Anchored = false
  317. part4.Name = "Hea"
  318. part4.Parent = char
  319. part4.Orientation = char.Head.Orientation
  320. welds4.Part0 = char.Head
  321. welds4.Part1 = part4
  322. local part5 = char["Right Leg"]:Clone()
  323. local welds5 = Instance.new("Weld", char["Right Leg"])
  324. part5.CFrame = char["Right Leg"].CFrame
  325. part5.Size = char["Right Leg"].Size + Vector3.new(0.05, 0.05, 0.05)
  326. part5.Material = "Neon"
  327. part5.BrickColor = BrickColor.new("Toothpaste")
  328. part5.Transparency = 0.5
  329. part5.Anchored = false
  330. part5.Name = "RighL"
  331. part5.Parent = char
  332. part5.Orientation = char["Right Leg"].Orientation
  333. welds5.Part0 = char["Right Leg"]
  334. welds5.Part1 = part5
  335. local part6 = char["Left Leg"]:Clone()
  336. local welds6 = Instance.new("Weld", char["Left Leg"])
  337. part6.CFrame = char["Left Leg"].CFrame
  338. part6.Size = char["Left Leg"].Size + Vector3.new(0.05, 0.05, 0.05)
  339. part6.Material = "Neon"
  340. part6.BrickColor = BrickColor.new("Toothpaste")
  341. part6.Transparency = 0.5
  342. part6.Anchored = false
  343. part6.Name = "LeftL"
  344. part6.Parent = char
  345. part6.Orientation = char["Left Leg"].Orientation
  346. welds6.Part0 = char["Left Leg"]
  347. welds6.Part1 = part6
  348. elseif (Key:lower() == "p") and ff ==true then
  349. ff = false
  350. char.Tor:Destroy()
  351. char.RighA:Destroy()
  352. char.LefA:Destroy()
  353. char.Hea:Destroy()
  354. char.RighL:Destroy()
  355. char.LeftL:Destroy()
  356. end
  357. end))
  358.  
  359. while true do
  360. wait(0.001)
  361. if ff == true then
  362. char.Humanoid.MaxHealth = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  363. wait(0.2)
  364. char.Humanoid.Health = char.Humanoid.MaxHealth
  365. end
  366. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement