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:

1local function createFirebolt()
2                             local firebolt = Instance.new("Part")
3           firebolt.Position = bowser.HumanoidRootPart.Position + Vector3.new(-2,0,0) --Error
4      firebolt.Shape = "Ball"
5              firebolt.Size = Vector3.new(1,1,1)
6                 firebolt.BrickColor = BrickColor.Red()
7                        firebolt.CanCollide = false
8                            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