I'm making a time stop script for a game I'm working on and need help with C-Framing. I have an Idea as to how to plan it out but not how to do it. How would I code C-Frame position so that it grabs the character's position and adds it to the C-Frame position code?
here the code if it helps:
if orb then
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
orb.Shape = "Cylinder"
orb.Material = "Neon"
local weld = Instance.new("WeldConstraint")
weld.Parent = workspace
weld.Part0 = orb
weld.Part1 = character.HumanoidRootPart
orb.Position = Vector3.new (106.59,16.5,-111.73) -- Where to add players position, however these coords are preset to a random location since i couldn't figure out how to get Player Position.

1 comment
Tbh, when freezing the player its just best to anchor their parts, also, you're creating stuff from the client, making it only replicate to the client and not the server seeing you used LocalPlayer