Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local stamina = 20
- local morph = "http://www.roblox.com/asset/?id=565822197"
- --important variables
- local player = "Nutgear"
- local PCP = game.Players[player].Character --character parent OwO
- local PCPc = PCP:GetChildren()
- PCP.Head.face:Destroy()
- for i=1, #PCPc do
- if (PCPc[i].className == "Accessory") then
- PCPc[i]:remove()
- end
- end
- for i=1, #PCPc do
- if (PCPc[i].className == "Shirt") then
- PCPc[i]:remove()
- end
- end
- for i=1, #PCPc do
- if (PCPc[i].className == "ShirtGraphic") then
- PCPc[i]:remove()
- end
- end
- for i=1, #PCPc do
- if (PCPc[i].className == "Pants") then
- PCPc[i]:remove()
- end
- end
- PCP.Head.Transparency = 1
- PCP.Torso.Transparency = 1
- PCP["Right Leg"].Transparency = 1
- PCP["Right Arm"].Transparency = 1
- PCP["Left Arm"].Transparency = 1
- PCP["Left Leg"].Transparency = 1
- Instance.new("BlockMesh",PCP.Torso).Scale = Vector3.new(2.5,3,0)
- decal = Instance.new("Decal",PCP.Torso)
- decal.Texture = "http://www.roblox.com/asset/?id=565822197"
- decal.Face = "Front"
- decal = Instance.new("Decal",PCP.Torso)
- decal.Texture = "http://www.roblox.com/asset/?id=565822197"
- decal.Face = "Back"
- --functions
- function attack4()
- stamina = stamina - 3
- local sound = Instance.new("Sound",PCP.Torso)
- sound.SoundId = "rbxassetid://921897274"
- sound.Volume = 5
- sound:Play()
- local blaster = Instance.new("Part",workspace)
- blaster.Size = Vector3.new(6,6,0.05)
- blaster.Anchored = true
- blaster.Locked = true
- blaster.CanCollide = false
- blaster.CFrame = PCP.Torso.CFrame
- blaster.Transparency = 1
- decal = Instance.new("Decal",blaster)
- decal.Texture = "http://www.roblox.com/asset/?id=338426251"
- decal.Face = "Front"
- decal = Instance.new("Decal",blaster)
- decal.Texture = "http://www.roblox.com/asset/?id=338426251"
- decal.Face = "Back"
- wait(2.8)
- local b = Instance.new("Part",workspace)
- b.CanCollide = false
- b.Shape = 1
- b.Material = "Neon"
- b.Size = Vector3.new(10,10,1)
- b.Transparency = 1
- b.CanCollide = false
- b.Locked = true
- b.CFrame = blaster.CFrame
- b.Velocity = b.CFrame.LookVector*400
- decal = Instance.new("Decal",b)
- decal.Texture = "http://www.roblox.com/asset/?id=2617954162"
- decal.Face = "Front"
- decal = Instance.new("Decal",b)
- decal.Texture = "http://www.roblox.com/asset/?id=2617954162"
- decal.Face = "Back"
- wait(0.2)
- b.Touched:connect(function(hit)
- hit:BreakJoints()
- if not hit.Locked then
- decal = Instance.new("Decal",hit)
- decal.Texture = "http://www.roblox.com/asset/?id=2617954162"
- decal.Face = "Front"
- decal = Instance.new("Decal",hit)
- decal.Texture = "http://www.roblox.com/asset/?id=2617954162"
- decal.Face = "Back"
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- if h~=nil then
- for i = 1,10 do
- h.Health = h.Health - (h.MaxHealth / 100)
- wait(1.5)
- end
- else
- hit:BreakJoints()
- end
- end)
- wait(2.7)
- blaster:Destroy()
- end
- function createblaster()
- stamina = stamina - 0.5
- local sound = Instance.new("Sound",PCP.Torso)
- sound.SoundId = "rbxassetid://345052019"
- sound:Play()
- local blaster = Instance.new("Part",workspace)
- blaster.Size = Vector3.new(6,6,0.05)
- blaster.Anchored = true
- blaster.Locked = true
- blaster.CanCollide = false
- blaster.CFrame = PCP.Torso.CFrame
- blaster.Transparency = 1
- decal = Instance.new("Decal",blaster)
- decal.Texture = "http://www.roblox.com/asset/?id=896001345"
- decal.Face = "Front"
- decal = Instance.new("Decal",blaster)
- decal.Texture = "http://www.roblox.com/asset/?id=896001345"
- decal.Face = "Back"
- wait(1.4)
- local b = Instance.new("Part",workspace)
- b.CanCollide = false
- b.Shape = 1
- b.Material = "Neon"
- b.Size = Vector3.new(5,5,5)
- b.CanCollide = false
- b.Locked = true
- b.CFrame = blaster.CFrame
- b.Velocity = b.CFrame.LookVector*math.random(100,700)
- wait(0.2)
- b.Touched:connect(function(hit)
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- if h~=nil then
- for i = 1,5 do
- h.Health = h.Health - (h.MaxHealth / 100)
- wait(3)
- end
- else
- hit:BreakJoints()
- end
- end)
- wait(2.7)
- blaster:Destroy()
- end
- -------------------
- function boneattack()
- stamina = stamina - 0.25
- local sound = Instance.new("Sound",PCP.Torso)
- sound.SoundId = "rbxassetid://446961725"
- sound:Play()
- local blaster = Instance.new("Part",workspace)
- blaster.Size = Vector3.new(1.5,10,1)
- blaster.CFrame = PCP.Torso.CFrame
- blaster.Transparency = 1
- blaster.CanCollide = false
- blaster.Locked = true
- blaster.CFrame = blaster.CFrame
- decal = Instance.new("Decal",blaster)
- decal.Texture = "http://www.roblox.com/asset/?id=384318933"
- decal.Face = "Front"
- decal = Instance.new("Decal",blaster)
- decal.Texture = "http://www.roblox.com/asset/?id=384318933"
- decal.Face = "Back"
- blaster.Velocity = PCP.Torso.CFrame.LookVector*math.random(100,700)
- wait(0.2)
- blaster.Touched:connect(function(hit)
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- if h~=nil then
- for i = 1,5 do
- h.Health = h.Health - (h.MaxHealth / 100)
- wait(3)
- end
- else
- hit:BreakJoints()
- end
- end)
- wait(0.1)
- end
- function psychokinesis()
- stamina = stamina - 1
- local sound = Instance.new("Sound",PCP.Torso)
- sound.SoundId = "rbxassetid://4264104024"
- sound:Play()
- local b = Instance.new("Part",workspace)
- b.CanCollide = false
- b.Shape = 1
- b.Locked = true
- b.Material = "Neon"
- b.Transparency = 0.9
- b.Size = Vector3.new(5,5,5)
- b.CanCollide = false
- b.CFrame = PCP.Torso.CFrame
- b.Velocity = b.CFrame.LookVector*300
- wait(0.1)
- b.Touched:connect(function(hit)
- if hit.Anchored == false then
- hit.Velocity = b.CFrame.LookVector*50
- hit.Velocity = hit.Velocity + Vector3.new(0,250,0)
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- if h~=nil then
- h.Health = h.Health - 5
- end
- b:Destroy()
- end)
- end
- ----------------------
- --tools, variables and handles
- local blacked = false
- local psych = false
- PCP.Humanoid.WalkSpeed = 60
- local bt = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
- bt.Name = "Blaster"
- bt.RequiresHandle = false
- bt.Activated:Connect(createblaster)
- local sound = Instance.new("Sound",PCP.Torso)
- sound.SoundId = "rbxassetid://3194262532" --"rbxassetid://4264104024"
- sound.Volume = 1.5 --Music
- sound.Looped = true
- sound:Play()
- Instance.new("PitchShiftSoundEffect",sound).Octave = 1
- local boney = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
- boney.Name = "Bones"
- boney.RequiresHandle = false
- boney.Activated:Connect(boneattack)
- local bo = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
- bo.Name = "Blackout"
- bo.RequiresHandle = false
- bo.Activated:Connect(function()
- if blacked == false then
- blacked = true
- local sound = Instance.new("Sound",PCP.Torso)
- sound.SoundId = "rbxassetid://446961725"
- sound:Play()
- game.Lighting.Brightness = 0
- game.Lighting.OutdoorAmbient = Color3.fromRGB(0,0,0)
- wait(0.5)
- sound:Play()
- game.Lighting.Brightness = 2 --128, 128, 128
- game.Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
- createblaster()
- for i = 1,5 do
- psychokinesis()
- boneattack()
- end
- createblaster()
- wait(0.55)
- sound:Destroy()
- wait(1)
- blacked = false
- end
- end)
- local ps = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
- ps.Name = "Psychokinesis"
- ps.RequiresHandle = false
- ps.Activated:Connect(function()
- if psych == false then
- psych = true
- psychokinesis()
- wait(.3)
- psych = false
- end
- end)
- local ps = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
- ps.Name = "Stamina Refill"
- ps.RequiresHandle = false
- ps.Activated:Connect(function()
- if stamina <= 15 then
- for i = 1,15 do
- stamina = stamina + 1
- wait(1)
- end
- end
- end)
- local bm = Instance.new("Tool",game.Players[player].Backpack) --for the blaster
- bm.Name = "Bad Memory Buster"
- bm.RequiresHandle = false
- bm.Activated:Connect(attack4)
- --events
- local staminae = Instance.new("Hint",game.Players[player].PlayerGui)
- while wait() do
- if stamina <= 10 then
- PCP.Humanoid.MaxHealth = 50
- else
- PCP.Humanoid.MaxHealth = 10000
- PCP.Humanoid.Health = 10000
- end
- if stamina >= 20 then
- stamina = 20
- end
- staminae.Text = "Stamina: " ..stamina.. ""
- PCP.Humanoid.WalkSpeed = stamina * 3
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement