Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

HumanoidRootPart is not a valid member of Humanoid?

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

2 comments

0

HumanoidRootPart is not a valid member of Humanoid, it's a valid member of the Character (humanoid.Parent)

0

thanks that helped alot! It works now

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.