ars899
(RaCc0oN)
#1
I need to add Y cords. But i don’t understand how.
local CFrameEnd = CFrame.new(game:GetService("Workspace").Part.Position)
I’m try to do like this - but this is doesn’t working for me….
local CFrameEnd = CFrame.new(game:GetService("Workspace").Part.Position)+CFrame.new(0,2,0)
1 Like
You can translate the cframe in world space like this:
CFrame.new() + Vector3.new(0,5,0)
To translate it relative to the CFrame, use this:
CFrame.new() * CFrame.new(0,5,0)
(edit: game:GetService("Workspace")
… stop)
2 Likes
Scottifly
(Scottifly)
#3
There’s lots of info on the create.roblox.com site if you search the term ‘cframe’ and it also has the cframe.ToWorldSpace, .ToObjectSpace and .Position links.
CFrames | Roblox Creator Documentation
BasePart | Roblox Creator Documentation
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.