So I made this script which creates a part that follows you around, but I would like to make it so that it turns around me simultaneously. How would I go on about to do that? Thanks!


local Player = game.Players.LocalPlayer

local Fire = Instance.new('Part', Player.Character.LowerTorso)
Fire.CanCollide = false
Fire.Anchored = true
Fire.Size = Vector3.new(1,1,1)

local direction = CFrame.new(Fire.Position, Player.Character.LeftUpperLeg.Position).lookVector
local increment = direction * 4

while true do
	wait()
		Fire.CFrame = Player.Character.LowerTorso.CFrame + (direction * increment) + Vector3.new(-5, -2.2 , 0)
    Fire.Rotation = Player.Character.LowerTorso.Rotation + (direction * increment) + Vector3.new(-1, -2, increment)

end

4 comments

0

Pretty sure the Rotation property of BasePart is deprecated, but I know for the fact that the Instance.new parent argument is.

0

use the bodygyro cframe property

0

Wouldn’t the BodyGyro make it spin on itself? I want the part to turn around me while following me.

0

Try "Fire.Anchored = false" if that doesn't work, try welding