New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Position expects everything except what I pick?

Asked by 14 days 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 1107 Moderation Voter
14 days ago
Edited 14 days 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 73 — 14d
0
Found another mistake within your code, update it and let me know if there are any problems/errors Nanomatics 1107 — 14d
Ad

Answer this question