Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I make this brick turn around me?

Asked by 6 years ago
Edited 6 years ago

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
0
Pretty sure the Rotation property of BasePart is deprecated, but I know for the fact that the Instance.new parent argument is. User#19524 175 — 6y
0
use the bodygyro cframe property User#23365 30 — 6y
0
Wouldn’t the BodyGyro make it spin on itself? I want the part to turn around me while following me. iAduriteX 34 — 6y
0
Try "Fire.Anchored = false" if that doesn't work, try welding daffynimm123 4 — 6y

Answer this question