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

Position expects everything except what I pick?

Asked by 4 years ago

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

Log in to vote
1
Answered by
Nanomatics 1160 Moderation Voter
4 years ago
Edited 4 years ago

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!

0
Both ways didn't work, please fix iiDkOffical 109 — 4y
0
Found another mistake within your code, update it and let me know if there are any problems/errors Nanomatics 1160 — 4y
Ad

Answer this question