Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HumanoidRootPart is not a valid member of Humanoid?

Asked by 3 years ago

I'm trying to make a fireball generator to make it look like bowser did it but it doesn't work :/

Here's the code:

       local function createFirebolt()
                                    local firebolt = Instance.new("Part")
                  firebolt.Position = bowser.HumanoidRootPart.Position + Vector3.new(-2,0,0) --Error
             firebolt.Shape = "Ball"
                     firebolt.Size = Vector3.new(1,1,1)
                        firebolt.BrickColor = BrickColor.Red()
                               firebolt.CanCollide = false
                                   firebolt.Parent = workspace
0
HumanoidRootPart is not a valid member of Humanoid, it's a valid member of the Character (humanoid.Parent) ThatCoolCoderGuy 18 — 3y
0
thanks that helped alot! It works now Altbotnot 9 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

It seems like your variable "bowser" is referring to the Humanoid not Character

Ad

Answer this question