Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Position expects everything except what I pick?

Hello! On line 16 it says that it wants CFrame but it's vector3. I change it to vector3 and then it asks for CFrame! Help!

local owner = game.Players.iiDkOffical
local head = Instance.new("Part")
head.Name = "Head"
head.Anchored = true
print("Made Part")
local group = Instance.new("Model")
group.Name = "Unknown"
group.Parent = game:GetService("Workspace")
head.Parent = group
local humanoid = Instance.new("Humanoid")
humanoid.Parent = group
print("Made group")
head.Size = CFrame.new(1,1,1)
while true do
wait(0.25)
group.Name = owner.Name.." - Camera"
head.CFrame = game:GetService("Workspace").Camera.CFrame.p
end

1 answer

✓ Accepted answer

Line 17, instead of:

head.CFrame

It should be:

head.Position

Or if you want to use CFrame just take off the .p at the end of line 17

Another thing you need to fix is

head.Size = CFrame.new(1,1,1)
--Should be 
head.Size = Vector3.new(1,1,1)

Hope I helped if you have any questions please let me know!

2 comments

0

Both ways didn't work, please fix

0

Found another mistake within your code, update it and let me know if there are any problems/errors

This discussion is preserved as it was. New answers, comments, and votes are closed.