Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.Friaza
- repeat wait() until Player.Character
- Player.Character.Humanoid.MaxHealth = 250
- Player.Character.Humanoid.Health = 250
- if Player.Character:FindFirstChild("Health") then Player.Character.Health:Destroy() end
- local hp = Player.Character.Humanoid.Health
- local reflex = false
- local logiaheal = false
- effects = Instance.new("Sparkles")
- effects.SparkleColor = Color3.new(234/255, 166/255, 236/255)
- trans = 0.8
- function Logia(Part)
- print("flex")
- reflex = true
- Update()
- end
- print("ok")
- function Update()
- print("update")
- print(logiaheal)
- if logiaheal == false then
- if Player.Character.Humanoid.Health > hp then
- hp = Player.Character.Humanoid.Health
- end
- print(reflex)
- print(Player.Character.Humanoid.Health)
- if reflex == true and Player.Character.Humanoid.Health < hp then
- logiaheal = true
- print("healtime")
- st = Player.Character:GetChildren()
- for i = 1, #st do
- if st[i].ClassName == "Part" and st[i].Transparency < 1 then
- if Player.Character.Torso:FindFirstChild("LogiaFly") then st[i].Transparency = trans end
- ef = effects:clone()
- ef.Name = "LogiaEffect"
- ef.Parent = st[i]
- st[i].Material = "Neon"
- st[i].BrickColor = BrickColor.new("Carnation pink")
- end
- end
- tim = ((hp -Player.Character.Humanoid.Health) /60)
- wait(0.2 +(tim /1.8))
- tim = ((hp -Player.Character.Humanoid.Health) /3)
- hp = Player.Character.Humanoid.Health
- local tim2 = 0
- repeat wait()
- if tim2 == 0 then wait(0.15) end
- tim2 = tim2 +1
- Player.Character.Humanoid.Health = Player.Character.Humanoid.Health +1.3
- hp = Player.Character.Humanoid.Health
- until (tim2 >= tim and (Player.Character.Humanoid.Health >= hp )) or Player.Character:FindFirstChild("Dark") or Player.Character:FindFirstChild("Kairoseki")
- st = Player.Character:GetChildren()
- for i = 1, #st do
- if st[i].ClassName == "Part" then
- if st[i]:FindFirstChild("LogiaEffect") then
- st[i].LogiaEffect:Destroy()
- st[i].Transparency = 0
- end
- if st[i].Anchored == false then
- st[i].Material = "Plastic"
- if st[i].Name == "Head" then st[i].Transparency = 0 st[i].BrickColor = Player.Character["Body Colors"].HeadColor end
- if st[i].Name == "Left Arm" then st[i].Transparency = 0 st[i].BrickColor = Player.Character["Body Colors"].LeftArmColor end
- if st[i].Name == "Right Arm" then st[i].Transparency = 0 st[i].BrickColor = Player.Character["Body Colors"].RightArmColor end
- if st[i].Name == "Left Leg" then st[i].Transparency = 0 st[i].BrickColor = Player.Character["Body Colors"].LeftLegColor end
- if st[i].Name == "Right Leg" then st[i].Transparency = 0 st[i].BrickColor = Player.Character["Body Colors"].RightLegColor end
- end
- end
- end
- logiaheal = false
- reflex = false
- end
- end
- wait()
- end
- Player.Character.Humanoid.Changed:connect(Update)
- Player.Character["Left Arm"].Touched:connect(Logia)
- Player.Character["Right Arm"].Touched:connect(Logia)
- Player.Character["Left Leg"].Touched:connect(Logia)
- Player.Character["Right Leg"].Touched:connect(Logia)
- Player.Character.Torso.Touched:connect(Logia)
- Player.Character.Head.Touched:connect(Logia)
- Player.Character.HumanoidRootPart.Touched:connect(Logia)
Add Comment
Please, Sign In to add comment