Upscalefanatic3

Untitled

Jun 16th, 2020
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local stamina = 20
  2. local morph = "http://www.roblox.com/asset/?id=565822197"
  3.  
  4. --important variables
  5. local player = game:GetService("Players").LocalPlayer
  6. local PCP = game.Players[player].Character --character parent OwO
  7.  
  8.    local PCPc = PCP:GetChildren()
  9.    PCP.Head.face:Destroy()
  10.     for i=1, #PCPc do
  11.         if (PCPc[i].className == "Accessory") then
  12.             PCPc[i]:remove()
  13.         end
  14.     end
  15.  
  16.    for i=1, #PCPc do
  17.         if (PCPc[i].className == "Shirt") then
  18.             PCPc[i]:remove()
  19.         end
  20.     end
  21.  
  22.    for i=1, #PCPc do
  23.         if (PCPc[i].className == "ShirtGraphic") then
  24.             PCPc[i]:remove()
  25.         end
  26.     end
  27.  
  28.     for i=1, #PCPc do
  29.         if (PCPc[i].className == "Pants") then
  30.             PCPc[i]:remove()
  31.         end
  32.     end
  33.  
  34. PCP.Head.Transparency = 1
  35. PCP.Torso.Transparency = 1
  36. PCP["Right Leg"].Transparency = 1
  37. PCP["Right Arm"].Transparency = 1
  38. PCP["Left Arm"].Transparency = 1
  39. PCP["Left Leg"].Transparency = 1
  40.  
  41. Instance.new("BlockMesh",PCP.Torso).Scale = Vector3.new(2.5,3,0)
  42. decal = Instance.new("Decal",PCP.Torso)
  43. decal.Texture = "http://www.roblox.com/asset/?id=565822197"
  44. decal.Face = "Front"
  45.  
  46. decal = Instance.new("Decal",PCP.Torso)
  47. decal.Texture = "http://www.roblox.com/asset/?id=565822197"
  48. decal.Face = "Back"
  49.  
  50. --functions
  51. function attack4()
  52. stamina = stamina - 3
  53. local sound = Instance.new("Sound",PCP.Torso)
  54. sound.SoundId = "rbxassetid://921897274"
  55. sound.Volume = 5
  56. sound:Play()
  57.  
  58. local blaster = Instance.new("Part",workspace)
  59. blaster.Size  = Vector3.new(6,6,0.05)
  60. blaster.Anchored = true
  61. blaster.Locked = true
  62. blaster.CanCollide = false
  63. blaster.CFrame = PCP.Torso.CFrame
  64. blaster.Transparency = 1
  65. decal = Instance.new("Decal",blaster)
  66. decal.Texture = "http://www.roblox.com/asset/?id=338426251"
  67. decal.Face = "Front"
  68.  
  69. decal = Instance.new("Decal",blaster)
  70. decal.Texture = "http://www.roblox.com/asset/?id=338426251"
  71. decal.Face = "Back"
  72.  
  73. wait(2.8)
  74. local b = Instance.new("Part",workspace)
  75. b.CanCollide = false
  76. b.Shape = 1
  77. b.Material = "Neon"
  78. b.Size = Vector3.new(10,10,1)
  79. b.Transparency = 1
  80. b.CanCollide = false
  81. b.Locked = true
  82. b.CFrame = blaster.CFrame
  83. b.Velocity = b.CFrame.LookVector*400
  84. decal = Instance.new("Decal",b)
  85. decal.Texture = "http://www.roblox.com/asset/?id=2617954162"
  86. decal.Face = "Front"
  87.  
  88. decal = Instance.new("Decal",b)
  89. decal.Texture = "http://www.roblox.com/asset/?id=2617954162"
  90. decal.Face = "Back"
  91. wait(0.2)
  92. b.Touched:connect(function(hit)
  93. hit:BreakJoints()
  94.         local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  95.     if h~=nil then
  96.         for i = 1,5 do
  97.         h.Health = 0
  98.         wait(3)
  99.         end
  100.     end
  101.        
  102. end)
  103. wait(2.7)
  104. blaster:Destroy()
  105. end
  106.  
  107. function createblaster()
  108. stamina = stamina - 0.5
  109. local sound = Instance.new("Sound",PCP.Torso)
  110. sound.SoundId = "rbxassetid://345052019"
  111. sound:Play()
  112.  
  113. local blaster = Instance.new("Part",workspace)
  114. blaster.Size  = Vector3.new(6,6,0.05)
  115. blaster.Anchored = true
  116. blaster.Locked = true
  117. blaster.CanCollide = false
  118. blaster.CFrame = PCP.Torso.CFrame
  119. blaster.Transparency = 1
  120. decal = Instance.new("Decal",blaster)
  121. decal.Texture = "http://www.roblox.com/asset/?id=896001345"
  122. decal.Face = "Front"
  123.  
  124. decal = Instance.new("Decal",blaster)
  125. decal.Texture = "http://www.roblox.com/asset/?id=896001345"
  126. decal.Face = "Back"
  127.  
  128. wait(1.4)
  129. local b = Instance.new("Part",workspace)
  130. b.CanCollide = false
  131. b.Shape = 1
  132. b.Material = "Neon"
  133. b.Size = Vector3.new(5,5,5)
  134. b.CanCollide = false
  135. b.Locked = true
  136. b.CFrame = blaster.CFrame
  137. b.Velocity = b.CFrame.LookVector*math.random(100,700)
  138. wait(0.2)
  139. b.Touched:connect(function(hit)
  140. hit:BreakJoints()
  141.         local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  142.     if h~=nil then
  143.         for i = 1,5 do
  144.         h.Health = 0
  145.         wait(3)
  146.         end
  147.     end
  148.        
  149. end)
  150. wait(2.7)
  151. blaster:Destroy()
  152. end
  153.  
  154. -------------------
  155.  
  156. function boneattack()
  157. stamina = stamina - 0.25
  158. local sound = Instance.new("Sound",PCP.Torso)
  159. sound.SoundId = "rbxassetid://446961725"
  160. sound:Play()
  161.  
  162. local blaster = Instance.new("Part",workspace)
  163. blaster.Size  = Vector3.new(1.5,10,1)
  164. blaster.CFrame = PCP.Torso.CFrame
  165. blaster.Transparency = 1
  166. blaster.CanCollide = false
  167. blaster.Locked = true
  168. blaster.CFrame = blaster.CFrame
  169. decal = Instance.new("Decal",blaster)
  170. decal.Texture = "http://www.roblox.com/asset/?id=384318933"
  171. decal.Face = "Front"
  172.  
  173. decal = Instance.new("Decal",blaster)
  174. decal.Texture = "http://www.roblox.com/asset/?id=384318933"
  175. decal.Face = "Back"
  176.  
  177.  
  178. blaster.Velocity = PCP.Torso.CFrame.LookVector*math.random(100,700)
  179. wait(0.2)
  180. blaster.Touched:connect(function(hit)
  181. hit:BreakJoints()
  182.         local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  183.     if h~=nil then
  184.         for i = 1,5 do
  185.         h.Health = 0
  186.         wait(3)
  187.         end
  188.     end
  189.        
  190. end)
  191. wait(0.1)
  192. end
  193.  
  194. function psychokinesis()
  195. stamina = stamina - 1
  196. local sound = Instance.new("Sound",PCP.Torso)
  197. sound.SoundId = "rbxassetid://4264104024"
  198. sound:Play()
  199.  
  200. local b = Instance.new("Part",workspace)
  201. b.CanCollide = false
  202. b.Shape = 1
  203. b.Locked = true
  204. b.Material = "Neon"
  205. b.Transparency = 0.9
  206. b.Size = Vector3.new(5,5,5)
  207. b.CanCollide = false
  208. b.CFrame = PCP.Torso.CFrame
  209. b.Velocity = b.CFrame.LookVector*300
  210. wait(0.1)
  211. b.Touched:connect(function(hit)
  212.     if hit.Anchored == false then
  213.  
  214.     hit.Velocity = b.CFrame.LookVector*50
  215.     hit.Velocity = hit.Velocity + Vector3.new(0,250,0)
  216.     end
  217.     local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  218.     if h~=nil then
  219.             local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  220.     if h~=nil then
  221.         for i = 1,5 do
  222.         h.Health = 0
  223.         wait(3)
  224.         end
  225.     end
  226.         hit:BreakJoints()
  227.     end
  228.     b:Destroy()
  229. end)
  230.  
  231. end
  232.  
  233. ----------------------
  234. --tools, variables and handles
  235. local blacked = false
  236. local psych = false
  237.  
  238. PCP.Humanoid.WalkSpeed = 60
  239.  
  240. local bt = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
  241. bt.Name = "Blaster"
  242. bt.RequiresHandle = false
  243. bt.Activated:Connect(createblaster)
  244.  
  245.  
  246. local sound = Instance.new("Sound",PCP.Torso)
  247. sound.SoundId = "rbxassetid://3194262532" --"rbxassetid://4264104024"
  248. sound.Volume = 1.5 --Music
  249. sound.Looped = true
  250. sound:Play()
  251. Instance.new("PitchShiftSoundEffect",sound).Octave = 1
  252.  
  253. local boney = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
  254. boney.Name = "Bones"
  255. boney.RequiresHandle = false
  256. boney.Activated:Connect(boneattack)
  257.  
  258. local bo = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
  259. bo.Name = "Blackout"
  260. bo.RequiresHandle = false
  261. bo.Activated:Connect(function()
  262.     if blacked == false then
  263.     blacked = true
  264.     local sound = Instance.new("Sound",PCP.Torso)
  265.     sound.SoundId = "rbxassetid://446961725"
  266.     sound:Play()
  267.     game.Lighting.Brightness = 0
  268.     game.Lighting.OutdoorAmbient = Color3.fromRGB(0,0,0)
  269.     wait(0.5)
  270.     sound:Play()
  271.     game.Lighting.Brightness = 2 --128, 128, 128
  272.     game.Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
  273.     createblaster()
  274.     for i = 1,5 do
  275.     psychokinesis()
  276.     boneattack()
  277.     end
  278.     createblaster()
  279.     wait(0.55)
  280.     sound:Destroy()
  281.     wait(1)
  282.     blacked = false
  283.     end
  284. end)
  285.  
  286. local ps = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
  287. ps.Name = "Psychokinesis"
  288. ps.RequiresHandle = false
  289. ps.Activated:Connect(function()
  290.     if psych == false then
  291.     psych = true
  292.     psychokinesis()
  293.     wait(.3)
  294.     psych = false
  295.     end
  296. end)
  297. local ps = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
  298. ps.Name = "Stamina Refill"
  299. ps.RequiresHandle = false
  300. ps.Activated:Connect(function()
  301.     if stamina <= 15 then
  302.     for i = 1,15 do
  303.     stamina = stamina + 1
  304.     wait(1)
  305.     end
  306.     end
  307. end)
  308.  
  309. local bm = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
  310. bm.Name = "Bad Memory Buster"
  311. bm.RequiresHandle = false
  312. bm.Activated:Connect(attack4)
  313. --events
  314. local staminae = Instance.new("Hint",game.Players[player].PlayerGui)
  315. while wait() do
  316.     if stamina <= 10 then
  317.         PCP.Humanoid.MaxHealth = 50
  318.     else
  319.         PCP.Humanoid.MaxHealth = 10000
  320.         PCP.Humanoid.Health = 10000
  321.         end
  322.     if stamina >= 20 then
  323.         stamina = 20
  324.     end
  325.     staminae.Text = "Stamina: " ..stamina.. ""
  326.     PCP.Humanoid.WalkSpeed = stamina * 3
  327. end
RAW Paste Data