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:
1 | local function createFirebolt() |
2 | local firebolt = Instance.new( "Part" ) |
3 | firebolt.Position = bowser.HumanoidRootPart.Position + Vector 3. new(- 2 , 0 , 0 ) --Error |
4 | firebolt.Shape = "Ball" |
5 | firebolt.Size = Vector 3. new( 1 , 1 , 1 ) |
6 | firebolt.BrickColor = BrickColor.Red() |
7 | firebolt.CanCollide = false |
8 | firebolt.Parent = workspace |
It seems like your variable "bowser" is referring to the Humanoid not Character