I don't know what the problem is. I tried readjusting the code, but I still get the error "Character is not part of DataModel." Here is the code:

Torso = game.Character.HumanoidRootPart

`Instance.new("ParticleEmitter", Torso)
			local fire = game.Character.HumanoidRootPart.ParticleEmitter
			fire.Enabled = true
			fire.Texture = "rbxgameasset://Images/fire"
			fire.Color = ColorSequence(255,0,0)
			fire.Size = 3
			fire.Lifetime = 1
			fire.Rate = 10
			fire.Speed = 1`

Please help me.

2 comments

0

game.Character is wrong. Character is not a child of game. The specific way you need to get the character depends on your situation.

0

Okay thank you