Still have questions? Join our Discord server and get real time help.
Log in to vote

How to make a Part's Position be the same as a Player's Position?

Asked by 5 days ago
Edited 5 days ago

local Player = game.Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() local Camera = workspace.CurrentCamera

repeat wait() Camera.CameraType = Enum.CameraType.Scriptable until Camera.CameraType == Enum.CameraType.Scriptable Camera.CFrame = workspace.CameraPart.CFrame workspace.CharacterCamera.CameraPart.Position = Player."Player.Name".Humanoid.Position

So I don't know how to define the "Player" once he's joined the game is all. There's an output msg - Players.Dudez2Good4u.PlayerGui.Camera:10: '<name>' expected near '"Player.Name"'

Does it show any errors or warnings? Y_VRN 16 — 5d
This was answered but the guy has to post his answer Dudez2Good4u 6 — 5d
I don't know what you mean but I'll answer anyways. It should be workspace.CharacterCamera.CameraPart.Position = Character.HumanoidRootPart.Position. Y_VRN 16 — 5d
About the error, line 10 requires brackets. Instead of Player."Player.Name", use Player[Player.Name]. Y_VRN 16 — 5d
Ur stupid aaaaaaaaaa, instances have a metatable with an __index field so works ur making me depressed with ur stupidity incapaxx 3086 — 5d

Answer this question