You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a boss with a second phase because it’s cool. -
What is the issue? Include screenshots / videos if possible!
I have almost no scripting experience and no idea what I’m doing. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes, I have already searched the Developer Hub for solutions, but couldn’t find any that fit my problem.
This is the script I made so far:
local currentHealth = script.Parent.Humanoid.Health
local function SecondPhase()
if currentHealth < 100 then
script.Parent.Humanoid.WalkSpeed = 0
script.Parent.Humanoid.MaxHealth = 1000
script.Parent.Humanoid.Health = 1000
script.Parent.Humanoid.WalkSpeed = 16
end
end
Any help would be appreciated!
(I just want to know how I can detect health and then make their speed to 0)