Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --require(13124687790).Owner("xXRedPawnerXx") REQUIRE. IF YOU WANNA EXECUTE THE SOURCE USE H/
- --RAW version: 3.5.0
- --Require version: 3.5.0
- --BASIC VARIABLES
- local RunService = game:GetService("RunService")
- local player = "xXRedPawnerXx"
- local playerbin = game.Players[player]
- local character = playerbin.Character
- local h = Instance.new("Hint") --playerbin.PlayerGui
- --STATS AND SETTINGS
- local NoHint = true
- local CritsPlz = false
- local msg = ". . ."
- local psirate = 128
- local phase = 1
- local staticphase = 1
- local psiMAX = 2000 --6000
- local psi = psiMAX
- local humanoid = character.Humanoid
- humanoid.MaxHealth = 4000 --6000
- humanoid.Health = humanoid.MaxHealth
- humanoid.WalkSpeed = (36/(psiMAX+humanoid.MaxHealth))*(psi+humanoid.Health) -- 36 is the default walkspeed
- --TEXTURES
- local tex_jumpscares = {"http://www.roblox.com/asset/?id=4204898333","http://www.roblox.com/asset/?id=15016407","http://www.roblox.com/asset/?id=9118806617","http://www.roblox.com/asset/?id=6337170651"}
- local aud_cutout = {"rbxassetid://8724367184","rbxassetid://7224422552","rbxassetid://5171923555"}
- local aud_prejump = {"rbxassetid://7229804590","rbxassetid://4883181281","rbxassetid://6932519682"}
- local tex_hitbox = "http://www.roblox.com/asset/?id=48272732"
- local tex_giygas = "http://www.roblox.com/asset/?id=12708018814"
- local tex_damage = "http://www.roblox.com/asset/?id=480633900"
- local tex_wounded = {"http://www.roblox.com/asset/?id=13769798083","http://www.roblox.com/asset/?id=13769799301"}
- local tex_fatal = {"http://www.roblox.com/asset/?id=13769798083","http://www.roblox.com/asset/?id=13769799301","http://www.roblox.com/asset/?id=13769800293","http://www.roblox.com/asset/?id=13769801871","http://www.roblox.com/asset/?id=13769804443","http://www.roblox.com/asset/?id=13769805888"}
- --MATH FUNCTIONS
- local X = 0
- local fun_BGmovement_XZ = 1
- local fun_BGmovement_Y = 2*math.sin(X/20)
- local fun_stability = 8
- --local fun_color = Vector3.new(1,1,1)
- local bg = Instance.new("Part",character)
- bg.Size = Vector3.new(1,1,1)
- bg.Transparency = 1
- bg.Anchored = true
- bg.CanCollide = false
- bg.CanTouch = false
- local bg_mesh = Instance.new("SpecialMesh",bg)
- bg_mesh.MeshId = "rbxassetid://1527559"
- bg_mesh.TextureId = tex_wounded[1]
- bg_mesh.Scale = Vector3.new(1024, 768, -1024)
- --SCRIPT PROPER
- if NoHint == false then
- h.Parent = workspace
- end
- script.Parent= workspace
- local music = Instance.new("Sound",character)
- music.SoundId = "rbxassetid://13048821234"
- music.Looped = true
- music.Volume = 8
- local ambience = Instance.new("Sound",character.Head)
- ambience.SoundId = "rbxassetid://196346387"
- ambience.Volume = 2
- ambience.Looped = true
- ambience:Play()
- local shriek = Instance.new("Sound",character.Head)
- shriek.SoundId = "rbxassetid://163684930"
- shriek.Volume = 3
- shriek.PlaybackSpeed = 0.75
- shriek.Looped = true
- shriek:Play()
- character.Health:Destroy()
- character.Animate:Destroy()
- local x1 = character:GetChildren()
- for i = 1,#x1 do
- if x1[i]:IsA("BasePart") then
- x1[i].Transparency = 1
- elseif x1[i].ClassName == "Accessory" then
- x1[i]:Destroy()
- end
- end
- character.Head.face:Destroy()
- function playSFX(id, vol, pitch)
- local sound = Instance.new("Sound",character.Head)
- sound.SoundId = id
- sound.Volume = vol
- sound.PlaybackSpeed = pitch
- sound.PlayOnRemove = true
- sound:Destroy()
- end
- local light = Instance.new("PointLight",character.Head)
- light.Range = 12
- light.Color = Color3.new(1,0,0)
- light.Brightness = 6
- local fogholder = Instance.new("Part")
- fogholder.Locked = true
- fogholder.Transparency = 1
- fogholder.CanCollide = false
- fogholder.Anchored = false
- local fg_pos = Instance.new("BodyPosition",fogholder)
- fg_pos.D = 30
- fg_pos.P = 50
- local BG = function()
- for X = 1,math.huge do
- RunService.Heartbeat:Wait()
- bg.Rotation = bg.Rotation + Vector3.new(fun_BGmovement_XZ,fun_BGmovement_Y,fun_BGmovement_XZ)
- if phase >= 2 then
- bg.Transparency = 0.6 + math.sin(X/fun_stability)/6
- end
- if phase == 4 then
- bg_mesh.VertexColor = Vector3.new(9*math.sin(X/4),6*math.cos(X/4),6*math.cos(X/4))
- else
- bg_mesh.VertexColor = Vector3.new(1,1,1)
- end
- fg_pos.Position = character.HumanoidRootPart.Position + Vector3.new(30*math.sin(X/150)*math.cos(X/75),10*math.sin(X/75),30*math.cos(X/150)*math.sin(X/100))
- --fogholder.Position = character.HumanoidRootPart.Position + Vector3.new(20*math.sin(X/150)*math.cos(X/75),10*math.sin(X/75),40*math.cos(X/150)*math.sin(X/100))
- end
- end
- local co_BG = coroutine.create(BG)
- local BG_anim = function()
- while RunService.Heartbeat:Wait() do
- if phase >= 3 then
- for i = 1,#tex_fatal do
- bg_mesh.TextureId = tex_fatal[i]
- RunService.Heartbeat:Wait()
- end
- else
- for i = 1,#tex_wounded do
- bg_mesh.TextureId = tex_wounded[i]
- for i = 1,3 do
- RunService.Heartbeat:Wait()
- end
- end
- end
- end
- end
- local co_BGanim = coroutine.create(BG_anim)
- fogholder.Parent = character
- local CLK = function()
- while RunService.Heartbeat:Wait() do
- humanoid.WalkSpeed = 36 - (28/(psiMAX+humanoid.MaxHealth))*(psi+humanoid.Health)
- bg.Position = character.HumanoidRootPart.Position
- if NoHint == false then
- h.Text = "HP: " ..humanoid.Health.. "/" ..humanoid.MaxHealth.. " PSI: " .. math.floor(psi+0.5) .. "/" ..psiMAX.. " [ "..msg.." ] "
- end
- light.Brightness = (6/humanoid.MaxHealth)*humanoid.Health
- if psi >= psiMAX then
- psi = psiMAX
- else
- psi = psi + psirate/60
- end
- end
- end
- local co_CLK = coroutine.create(CLK)
- coroutine.resume(co_CLK)
- --coroutine.resume(co_BG)
- local Hitbox_FX = Instance.new("ParticleEmitter",character.Head)
- Hitbox_FX.Speed = NumberRange.new(0.05,0.05)
- Hitbox_FX.Color = ColorSequence.new(Color3.new(0.16,0.16,0.16),Color3.new(.33,0.08,0.08))
- Hitbox_FX.Transparency = NumberSequence.new{
- NumberSequenceKeypoint.new(0,1),
- NumberSequenceKeypoint.new(0.5,0),
- NumberSequenceKeypoint.new(1,1),
- }
- Hitbox_FX.Size = NumberSequence.new(5,5)
- Hitbox_FX.LightEmission = 1
- Hitbox_FX.LightInfluence = 1
- Hitbox_FX.Texture = tex_hitbox
- Hitbox_FX.Lifetime = NumberRange.new(4,4)
- Hitbox_FX.RotSpeed = NumberRange.new(-2.5,2.5)
- Hitbox_FX.LockedToPart = true
- Hitbox_FX.Orientation = Enum.ParticleOrientation.FacingCameraWorldUp
- Hitbox_FX.Rate = 0.25
- local Giygas_Fog = Instance.new("ParticleEmitter")
- Giygas_Fog.Name = "Fog"
- Giygas_Fog.Parent = fogholder
- Giygas_Fog.Speed = NumberRange.new(1, 1)
- Giygas_Fog.Orientation = Enum.ParticleOrientation.VelocityParallel
- Giygas_Fog.Color = ColorSequence.new(Color3.new(1, 0.25, 0.25),Color3.new(1, 0.25, 0.25))
- Giygas_Fog.LightEmission = 1
- Giygas_Fog.LightInfluence = 1
- Giygas_Fog.RotSpeed = NumberRange.new(0,6)
- Giygas_Fog.LockedToPart = true
- Giygas_Fog.Squash = NumberSequence.new{
- NumberSequenceKeypoint.new(0,-0.4),
- NumberSequenceKeypoint.new(0.7,0),
- NumberSequenceKeypoint.new(1,-1.5),
- }
- Giygas_Fog.Texture = tex_giygas
- Giygas_Fog.Transparency = NumberSequence.new{
- NumberSequenceKeypoint.new(0,1),
- NumberSequenceKeypoint.new(0.5,0),
- NumberSequenceKeypoint.new(1,1),
- }
- Giygas_Fog.ZOffset = 50
- Giygas_Fog.Size = NumberSequence.new(20,20)
- Giygas_Fog.Brightness = 0
- Giygas_Fog.Lifetime = NumberRange.new(6, 6)
- Giygas_Fog.Rate = 1
- Giygas_Fog.SpreadAngle = Vector2.new(180, -180)
- Giygas_Fog.VelocitySpread = 180
- local DamageFX = Instance.new("ParticleEmitter")
- Script1 = Instance.new("Script")
- DamageFX.Parent = character.HumanoidRootPart
- DamageFX.Speed = NumberRange.new(300, 300)
- DamageFX.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
- DamageFX.Enabled = false
- DamageFX.LightEmission = 1
- DamageFX.LightInfluence = 1
- DamageFX.Texture = "http://www.roblox.com/asset/?id=480633900"
- Giygas_Fog.Transparency = NumberSequence.new{
- NumberSequenceKeypoint.new(0,1),
- NumberSequenceKeypoint.new(0.5,0),
- NumberSequenceKeypoint.new(1,1),
- }
- DamageFX.ZOffset = 0
- DamageFX.Size = NumberSequence.new(100,100)
- DamageFX.Brightness = 0
- DamageFX.Lifetime = NumberRange.new(0.125, 0.125)
- DamageFX.Rate = 400
- DamageFX.SpreadAngle = Vector2.new(0, 360)
- function static(length)
- local players = game:GetService("Players"):GetChildren()
- for x = 1,#players do
- local h = players[x]
- local drop = h.PlayerGui
- local static = Instance.new("ScreenGui")
- static.Name = "Static"
- local prex = drop:FindFirstChild("Static")
- if prex == nil then
- static.Parent = drop
- elseif prex ~= static and humanoid.Health >= 1 then
- prex:Destroy()
- end
- local image = Instance.new("ImageLabel",static)
- local sound = Instance.new("Sound",static)
- sound.SoundId = "rbxassetid://170092034"
- sound.Looped = true
- sound.Volume = 0.5
- sound.PlaybackSpeed = 0.2
- image.ImageColor3 = Color3.new(1,0,0)
- sound:Play()
- image.BackgroundTransparency = 1
- image.Transparency = 0.8
- image.Size = UDim2.new(1,0,1,0)
- for i = 1,1*length do
- image.Image = "http://www.roblox.com/asset/?id=10218289720"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218295778"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218298795"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218303689"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218307266"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218303689"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218298795"
- RunService.Heartbeat:Wait()
- image.Image = "http://www.roblox.com/asset/?id=10218295778"
- RunService.Heartbeat:Wait()
- end
- static:Destroy()
- end
- end
- humanoid.HealthChanged:connect(function()
- DamageFX.Enabled = true
- playSFX("rbxassetid://7074143771", 0.25, 1)
- for i = 1,2 do
- RunService.Heartbeat:Wait()
- end
- playSFX("rbxassetid://1097541069", 1, math.random(80,120)/100)
- DamageFX.Enabled = false
- end)
- humanoid.HealthChanged:connect(function()
- if math.random(1,1000) <= (250*staticphase-250) and humanoid.Health >= 0 then
- static(math.random(1,15))
- end
- end)
- humanoid.Died:connect(function()
- music:Destroy()
- ambience:Destroy()
- shriek:Destroy()
- bg:Destroy()
- Giygas_Fog.Enabled = false
- Hitbox_FX.Enabled = false
- local death = Instance.new("Sound",workspace)
- death.SoundId = "rbxassetid://5385069016"
- death.PlayOnRemove = true
- death:Destroy()
- static(40)
- end)
- --PHASES
- coroutine.resume(co_BG)
- coroutine.resume(co_BGanim)
- humanoid.HealthChanged:connect(function()
- if humanoid.Health <= humanoid.MaxHealth*(75/100) then
- phase = 2
- staticphase = 2
- X = 0
- fun_stability = 8
- fun_BGmovement_Y = 40*math.sin(X/60)
- fun_BGmovement_XZ = 1
- ambience.PlaybackSpeed = 1.25
- psirate = 192
- music.SoundId = "rbxassetid://13048821234"
- Giygas_Fog.Lifetime = NumberRange.new(3,3)
- Giygas_Fog.Rate = 2
- if music.Playing ~= true then
- music:Play()
- end
- end
- if humanoid.Health <= humanoid.MaxHealth*(50/100) then
- phase = 3
- ambience.PlaybackSpeed = 1.75
- staticphase = 4
- psirate = 512
- Giygas_Fog.Lifetime = NumberRange.new(2,2)
- fun_stability = 4
- fun_BGmovement_Y = 0.5 --math.sin(X*50)
- fun_BGmovement_XZ = 4
- Giygas_Fog.Rate = 3
- -- bg_mesh.TextureId = tex_fatal
- music.SoundId = "rbxassetid://13048824379"
- end
- if humanoid.Health <= humanoid.MaxHealth*(25/100) then
- ambience.PlaybackSpeed = 2
- staticphase = 6
- phase = 4
- psirate = 1024
- fun_BGmovement_Y = 0
- fun_BGmovement_XZ = 12
- Giygas_Fog.Lifetime = NumberRange.new(1,1)
- Giygas_Fog.Rate = 4
- fun_stability = 2
- music.SoundId = "rbxassetid://13048827883"
- end
- end)
- --PSI and ATTACKS
- function crit(probability)
- if math.random(0,1000) <= probability and CritsPlz == true then
- return true
- else
- return false
- end
- end
- local doing_magic = false
- --humanoid.Touched:connect(function(y)
- -- local enemy = y.Parent:FindFirstChildOfClass("Humanoid")
- -- if enemy ~= nil and enemy.Parent.Name ~= player then
- -- enemy:TakeDamage(2)
- -- end
- --end)
- local t_Lifeup = Instance.new("Tool",playerbin.Backpack)
- t_Lifeup.Name = "PK Lifeup (800 PSI)"
- t_Lifeup.RequiresHandle = false
- t_Lifeup.Activated:Connect(function()
- if doing_magic == false and psi >= 600 then
- doing_magic = true
- msg = "Giygas tries PK Lifeup!"
- playSFX("rbxassetid://13048879322",10,1)
- wait(1)
- msg = ". . ."
- psi = psi - 800
- humanoid.Health = humanoid.Health + humanoid.MaxHealth*(4/100)
- playSFX("rbxassetid://2226293507",3,1)
- wait(4)
- doing_magic = false
- end
- end)
- local t_Freeze = Instance.new("Tool",playerbin.Backpack)
- t_Freeze.Name = "PK Freeze (150 PSI)"
- t_Freeze.RequiresHandle = false
- t_Freeze.Activated:Connect(function()
- if doing_magic == false and psi >= 150 then
- doing_magic = true
- msg = "Giygas tries PK Freeze!"
- playSFX("rbxassetid://13048879322",10,1)
- wait(1)
- msg = ". . ."
- psi = psi - 150
- playSFX("rbxassetid://13049208249",10,1)
- local e = Instance.new("Explosion",workspace)
- e.BlastRadius = 48
- e.Visible = false
- e.Position = character.Head.Position
- e.BlastPressure = 0
- e.Hit:Connect(function(part,distance)
- if distance <= 64 and part.Parent ~= character then
- local hum = part.Parent:FindFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local ice = Instance.new("Part")
- ice.Name = "Ice"
- ice.Anchored = true
- part.Anchored = true
- ice.BrickColor = BrickColor.Blue()
- ice.Transparency = 0.5
- ice.Material = Enum.Material.Ice
- ice.CFrame = part.CFrame
- ice.Size = Vector3.new(6,8,6)
- ice.Parent = workspace
- wait(1.5)
- part.Anchored = false
- ice.Material = Enum.Material.Neon
- ice.Shape = 0
- ice.CanCollide = false
- if crit(4) == true then
- playSFX("rbxassetid://8789851536",5,1)
- hum:TakeDamage(math.huge) --instakill
- end
- for i = 1,15 do
- RunService.Heartbeat:Wait()
- ice.Transparency = ice.Transparency + 0.5/15
- ice.Size = ice.Size + Vector3.new(2,2,2)
- end
- ice:Destroy()
- hum.PlatformStand = true
- hum:TakeDamage(45)
- wait(3)
- hum.PlatformStand = false
- end
- end
- end)
- wait(1/phase)
- doing_magic = false
- end
- end)
- function DamageHumanoids(range, damage, chance, part)
- local x = workspace:GetChildren()
- for i = 1,#x do
- if x[i]:IsA("Model") and x[i].Name ~= player then
- local hum = x[i]:FindFirstChildOfClass("Humanoid")
- if hum~= nil and hum.Parent:FindFirstChild("Head") ~= nil then
- if math.abs((hum.Parent.Head.Position - character.HumanoidRootPart.Position).Magnitude) <= range then
- hum:TakeDamage(damage)
- if math.random(0,6) == 0 then
- hum.Sit = true
- end
- local velocity = math.random(50,200)
- local primary = nil
- if hum.Parent.PrimaryPart ~= nil then
- primary = hum.Parent.PrimaryPart
- primary.Velocity = CFrame.new(primary.Position,part.Position):vectorToWorldSpace(Vector3.new(0,velocity*0.66,velocity))
- else
- primary = hum.Parent.Head
- primary.Velocity = CFrame.new(primary.Position,character.Head.Position):vectorToWorldSpace(Vector3.new(0,velocity*0.66,velocity))
- end
- if crit(chance) == true then
- playSFX("rbxassetid://8789851536",5,1)
- if hum.Parent:FindFirstChild("Head") ~= nil then
- hum:TakeDamage(math.huge)
- end
- end
- end
- end
- end
- end
- end
- t_GiygasAtk = Instance.new("Tool",playerbin.Backpack)
- t_GiygasAtk.Name = "Giygas' Attack (1050 PSI)"
- t_GiygasAtk.RequiresHandle = false
- t_GiygasAtk.Activated:Connect(function()
- if doing_magic == false and psi >= 1050 then
- doing_magic = true
- psi = psi - 1050
- msg = "You cannot grasp the true form of Giygas' attack!"
- playSFX("rbxassetid://13048879322",10,1)
- wait(1)
- msg = ". . ."
- for i = 1,4 do
- playSFX("rbxassetid://13048892034",10,1.2)
- local ring = Instance.new("Part",workspace)
- ring.Position = character.HumanoidRootPart.Position
- ring.Anchored = true
- ring.CastShadow = false
- ring.CanCollide = false
- ring.Material = Enum.Material.Neon
- ring.Transparency = 0
- ring.Orientation = Vector3.new(90,0,0)
- ring.Size = Vector3.new(10,10,1)
- ring.BrickColor = BrickColor.new("Hot pink")
- local mesh = Instance.new("FileMesh",ring)
- mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
- DamageHumanoids(90, math.random(400,700), 9, ring)
- for i = 1,30 do
- RunService.Heartbeat:Wait()
- ring.Size = ring.Size + Vector3.new(3,3,3)
- mesh.Scale = mesh.Scale + Vector3.new(12,12,8)
- ring.Transparency = (1/30)*i
- end
- ring:Destroy()
- end
- wait(2/phase)
- doing_magic = false
- end
- end)
- local jumped = false
- local secret = false
- local secret_chance = 69 --69 by default
- function KinderSurprise(hit)
- local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and hit.Parent.Name ~= player and jumped == false then --and hit.Parent.Name ~= player
- jumped = true
- playSFX("rbxassetid://7322622109",5,1)
- msg = "You cannot comprehend the true form of PK Trap!"
- wait(1)
- playSFX("rbxassetid://8789851536",5,1.3)
- hum.PlatformStand = true
- hum.Parent.PrimaryPart.Velocity = hum.Parent.PrimaryPart.CFrame.LookVector*100
- local unfortunate = game.Players:GetPlayerFromCharacter(hum.Parent)
- if game.Players:GetPlayerFromCharacter(hum.Parent) ~= nil then --Surprise jumpscare!
- local vox = Instance.new("Sound",unfortunate.PlayerGui)
- local jumpscare = Instance.new("ScreenGui",unfortunate.PlayerGui)
- jumpscare.Name = "HERE"
- jumpscare.Enabled = true
- local image = Instance.new("ImageLabel",jumpscare)
- print(image.Name .. " PRESENT! KENICHI!")
- image.Active = true
- image.Size = UDim2.new(1,0,1,0)
- local click = Instance.new("Sound",unfortunate.PlayerGui)
- click.SoundId = "rbxassetid://7811669782"
- click.Volume = 10
- click:Play()
- image.Image = "http://www.roblox.com/asset/?id=7188341508"
- image.ImageColor3 = Color3.new(0,0,0)
- wait(0.03)
- image.ImageColor3 = Color3.new(1,1,1)
- wait(0.03)
- image.ImageColor3 = Color3.new(0,0,0)
- wait(0.03)
- image.ImageColor3 = Color3.new(1,1,1)
- image.Image = "http://www.roblox.com/asset/?id=9468576413"
- vox.SoundId = aud_cutout[math.random(1,#aud_cutout)]
- vox.Volume = 3
- vox:Play()
- wait(vox.TimeLength)
- click:Play()
- image.Image = "http://www.roblox.com/asset/?id=7188341508"
- image.ImageColor3 = Color3.new(0,0,0)
- wait(0.03)
- image.ImageColor3 = Color3.new(1,1,1)
- wait(0.03)
- image.ImageColor3 = Color3.new(0,0,0)
- wait(0.03)
- image.ImageColor3 = Color3.new(1,1,1)
- image.Image = "http://www.roblox.com/asset/?id=78918078"
- vox:Stop()
- vox.SoundId = aud_prejump[math.random(1,#aud_prejump)]
- vox.Volume = 5
- vox:Play()
- wait(vox.TimeLength)
- local screech = Instance.new("Sound",unfortunate.PlayerGui)
- screech.Volume = 2
- screech.Looped = true
- screech.SoundId = "rbxassetid://9078619391"
- if math.random(0,1000) <= secret_chance then
- secret = true
- image.Image = "http://www.roblox.com/asset/?id=10840742363"
- else
- image.Image = tex_jumpscares[ math.random(1,#tex_jumpscares) ]
- screech.SoundId = "rbxassetid://6555091799" --rbxassetid://8280196339
- screech.PlaybackSpeed = 4
- end
- screech:Play()
- for i = 1,(screech.TimeLength*8) do
- wait(0.125)
- image.ImageColor3 = Color3.new(1,0,0)
- wait(0.125)
- image.ImageColor3 = Color3.new(1,1,1)
- end
- click:Play()
- image.Image = "http://www.roblox.com/asset/?id=7188341508"
- image.ImageColor3 = Color3.new(0,0,0)
- wait(0.03)
- image.ImageColor3 = Color3.new(1,1,1)
- wait(0.03)
- image.ImageColor3 = Color3.new(0,0,0)
- wait(0.03)
- image.ImageColor3 = Color3.new(1,1,1)
- screech:Destroy()
- jumpscare.Enabled = false
- end
- if secret == false then
- hum:TakeDamage(math.random(0,2400))
- hum.MaxHealth = hum.MaxHealth*0.66
- else
- msg = "Suddenly, you have been saved by Whisper the Wolf!"
- hum.Health = hum.Health + 500
- end
- hum.PlatformStand = false
- playSFX("rbxassetid://4520789398",6,1)
- jumped = false
- end
- end
- local con_cool = false
- t_Confusion = Instance.new("Tool",playerbin.Backpack)
- t_Confusion.Name = "PK Trap (650 PSI)"
- t_Confusion.RequiresHandle = false
- t_Confusion.Activated:Connect(function()
- if doing_magic == false and psi >= 650 and con_cool == false then
- doing_magic = true
- con_cool = true
- psi = psi - 650
- msg = "Giygas tries PK Trap!"
- playSFX("rbxassetid://13048879322",10,1)
- wait(1)
- msg = ". . ."
- game.Lighting.FogColor = Color3.fromRGB(0,0,0)
- for i = 1,30 do
- game.Lighting.FogEnd = (100000/2000)*(29-i) --100000 default
- RunService.Heartbeat:Wait()
- end
- local jumptrap = Instance.new("Part")
- jumptrap.Anchored = true
- jumptrap.CanCollide = false
- jumptrap.CastShadow = false
- jumptrap.Transparency = 0.9
- jumptrap.Size = Vector3.new(8,8,8)
- Instance.new("Sparkles",jumptrap).Color = Color3.new(0,0,0)
- playSFX("http://www.roblox.com/asset/?id=11956590",3,0.95)
- jumptrap.Material = Enum.Material.ForceField
- jumptrap.Shape = 0
- jumptrap.BrickColor = BrickColor.Black()
- jumptrap.Position = character.Head.Position
- jumptrap.Parent = workspace
- jumptrap.Touched:Connect(KinderSurprise)
- for i = 1,30 do
- game.Lighting.FogEnd = (100000/2000)*(i*5) --100000 default
- RunService.Heartbeat:Wait()
- end
- doing_magic = false
- for i = 1,180*phase do
- RunService.Heartbeat:Wait()
- jumptrap.Transparency = math.cos(i/20)
- jumptrap.Position = character.Head.Position + Vector3.new(10*math.sin(i/40),0,10*math.cos(i/40))
- end
- for i = 1,15 do
- RunService.Heartbeat:Wait()
- jumptrap.Transparency = jumptrap.Transparency/i
- jumptrap.Size = jumptrap.Size - Vector3.new(0.4,0.4,0.4)
- end
- con_cool = false
- jumptrap:Destroy()
- end
- end)
- local savedpos = Vector3.new(0,0,0)
- function strike(pos)
- local thunder = Instance.new("Part",workspace)
- thunder.Material = Enum.Material.Neon
- thunder.Size = Vector3.new(4,2000,4)
- Instance.new("CylinderMesh",thunder).Scale = Vector3.new(1,2,1)
- thunder.CanCollide = false
- thunder.CastShadow = false
- thunder.Anchored = true
- thunder.Position = pos
- local e = Instance.new("Explosion")
- e.BlastRadius = math.random(1,4)
- e.BlastPressure = 0
- e.Position = pos
- e.Visible = true
- e.Hit:Connect(function(hit)
- local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and hit.Parent.Name ~= player then
- hum:TakeDamage(math.random(5,50))
- if crit(1) == true and hit.Parent.Name ~= player then
- playSFX("rbxassetid://8789851536",5,1)
- hum:TakeDamage(math.huge)
- end
- end
- end)
- e.Parent = workspace
- local sound = Instance.new("Sound",thunder)
- sound.Volume = 10
- sound.SoundId = "rbxassetid://13048892034"
- sound.PlayOnRemove = true
- sound:Destroy()
- for i = 1,2 do
- RunService.Heartbeat:Wait()
- if math.random(0,1) == 0 then
- thunder.BrickColor = BrickColor.White()
- else
- thunder.BrickColor = BrickColor.Yellow()
- end
- thunder.Transparency = i/5
- end
- thunder:Destroy()
- end
- t_Thunder = Instance.new("Tool",playerbin.Backpack)
- t_Thunder.RequiresHandle = false
- t_Thunder.Name = "PK Thunder (450 PSI)"
- t_Thunder.Activated:Connect(function()
- if doing_magic == false and psi >= 450 then
- doing_magic = true
- msg = "Giygas tries PK Thunder!"
- playSFX("rbxassetid://13048879322",10,1)
- psi = psi - 450
- for i = 1,6 do
- local catch = workspace:GetChildren()
- local caught = {}
- for x = 1,#catch do
- if catch[x]:IsA("Model") and catch[x].Name ~= player then
- local hum = catch[x]:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and hum.Health >= 1 and catch[x] ~= nil then
- if catch[x]:FindFirstChild("Head") ~= nil and math.abs((catch[x].Head.Position - character.Head.Position).Magnitude) <= 128 then --test
- --savedpos = catch[x].Head.Position
- table.insert(caught, catch[x].Head.Position)
- end
- end
- end
- end
- wait(0.3)
- for z = 1,#caught do
- local rand = math.random(-4,4)
- local rand2 = math.random(-4,4)
- strike(caught[z] + Vector3.new(rand,0,rand2))
- end
- end
- msg = ". . ."
- doing_magic = false
- end
- end)
- t_Rockin = Instance.new("Tool",playerbin.Backpack)
- t_Rockin.RequiresHandle = false
- t_Rockin.Name = "PSI Rockin ω (2000 PSI)"
- t_Rockin.Activated:Connect(function()
- if doing_magic == false and psi >= 2000 then
- doing_magic = true
- msg = "Giygas tries PSI Rockin ω!"
- playSFX("rbxassetid://13048879322",10,1)
- psi = psi - 2000
- wait(1)
- msg = ". . ."
- local s = Instance.new("Sound",character.PrimaryPart)
- s.SoundId = "rbxassetid://13048868272"
- s.Volume = 10
- s.PlayOnRemove = true
- s:Destroy()
- local bodyposition = Instance.new("BodyPosition",character.PrimaryPart)
- bodyposition.Position = character.PrimaryPart.Position + Vector3.new(0,60,0)
- --wait(5.5*(40/100))
- for i = 1,3 do
- local colors = {BrickColor.Blue(),BrickColor.Yellow(),BrickColor.Red()}
- local fx = Instance.new("Part")
- fx.Shape = 0
- fx.Anchored = true
- fx.CanCollide = false
- fx.CastShadow = false
- fx.Material = Enum.Material.Neon
- fx.Position = character.PrimaryPart.Position
- fx.Parent = workspace
- fx.BrickColor = colors[math.random(1,3)]
- for x = 1,33 do
- RunService.Heartbeat:Wait()
- fx.Transparency = x/20
- fx.Size = fx.Size + Vector3.new(3,3,3)
- end
- fx:Destroy()
- end
- local ball = Instance.new("Part")
- ball.CanCollide = false
- ball.Shape = 0
- ball.Material = Enum.Material.Neon
- ball.Anchored = true
- ball.CastShadow = false
- ball.Position = character.PrimaryPart.Position
- ball.Parent = workspace
- for i = 1,170 do
- RunService.Heartbeat:Wait()
- ball.Size = ball.Size + Vector3.new(5,5,5)
- if math.random(0,2) == 1 then
- ball.BrickColor = BrickColor.Red()
- elseif math.random(0,2) == 2 then
- ball.BrickColor = BrickColor.Blue()
- else
- ball.BrickColor = BrickColor.Yellow()
- end
- ball.Transparency = i/200
- DamageHumanoids(i*5,math.random(5,25),3,ball)
- end
- ball:Destroy()
- bodyposition:Destroy()
- wait(4/phase)
- doing_magic = false
- end
- end)
- t_Teleport = Instance.new("Tool",playerbin.Backpack)
- t_Teleport.RequiresHandle = false
- t_Teleport.Name = "PK Teleport β (100 PSI)"
- t_Teleport.Activated:Connect(function()
- if doing_magic == false and psi >= 150 then
- doing_magic = true
- msg = "Giygas tries PK Teleport β!"
- playSFX("rbxassetid://13048879322",10,1)
- psi = psi - 100
- wait(1)
- msg = ". . ."
- playSFX("rbxassetid://5909720414",4,0.9)
- character.PrimaryPart.CFrame = character.PrimaryPart.CFrame + character.PrimaryPart.CFrame.LookVector*math.random(0,128) --.new(math.random(0,196),30,math.random(0,196))
- wait(1/phase)
- doing_magic = false
- end
- end)
- local s_cooldown = false
- t_Shield = Instance.new("Tool",playerbin.Backpack)
- t_Shield.RequiresHandle = false
- t_Shield.Name = "PK Shield (150 PSI)"
- t_Shield.Activated:Connect(function()
- if doing_magic == false and psi >= 150 and s_cooldown == false then
- doing_magic = true
- msg = "Giygas tries PK Shield!"
- playSFX("rbxassetid://13048879322",10,1)
- psi = psi - 150
- wait(1)
- doing_magic = false
- s_cooldown = true
- msg = ". . ."
- local f = Instance.new("ForceField",character)
- f.Visible = false
- local fx = Instance.new("Part",character.PrimaryPart)
- fx.Position = character.PrimaryPart.Position
- fx.CanTouch = false
- fx.BrickColor = BrickColor.Red()
- fx.Size = Vector3.new(0.5,0.5,0.5)
- fx.CanCollide = false
- fx.Massless = true
- local weld = Instance.new("WeldConstraint",fx)
- weld.Part1 = character.PrimaryPart
- weld.Part0 = fx
- fx.Shape = 0
- playSFX("rbxassetid://1158234981",10,1)
- fx.Material = Enum.Material.ForceField
- for i = 1,15 do
- RunService.Heartbeat:Wait()
- fx.Size = fx.Size + Vector3.new(1.5,1.5,1.5)
- end
- wait(2.5*phase)
- for i = 1,15 do
- RunService.Heartbeat:Wait()
- fx.Size = fx.Size - Vector3.new(1.5,1.5,1.5)
- end
- s_cooldown = false
- msg = "Giygas' shield wore off!"
- fx:Destroy()
- f:Destroy()
- end
- end)
Advertisement
Advertisement