Hi, this is my first post but i am making a game like Slap Battles but i am making something which requires the part to follow a player.
I could do this for
''local playername = script.Parent.Owner
local plr = game.Workspace:FindFirstChild(playername.Value)
while true do
wait (0.1)
script.Parent.CFrame = CFrame.new(plr.Torso.Position)
end
but wouldn’t it lag the game?
Please help, thanks alot!
Oh, uh i made it work now but theres one problem. It does not face the same way as the player, could anybody help please?
script.Parent.CFrame = plr.Torso.CFrame
Thank you so much but is there a way to change how it faces because right now it faces the player but it faces the opposite way.
Thank you so much though!
Nevermind, i fixed it Thank you though.
script.Parent.CFrame = plr.Torso.CFrame * CFrame.Angles(0,math.rad(180),0)
Thank you so much, you are a real one!
system
(system)
Closed
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.