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

Is it possible to save a CFrame in a Value and use it to place an item in the correct location?

Asked by 6 years ago

Here is a code example:

local copy = game.ServerStorage.CopyableItem:Clone()

copy.Parent = game.Workspace
copy.Name = "Example Copy"
copy.CFrame = CFrame.new() -- I want to use a CFrame stored in a value such as a string Value but don't know how.

I would really appreciate it if someone could help me out.

0
I believe there is a "CFrameValue" MRbraveDragon 374 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

just use a CFrameValue

local copy = game.ServerStorage.CopyableItem:Clone()

copy.Parent = game.Workspace
copy.Name = "Example Copy"
copy.CFrame = script.CoolValue.Value

https://wiki.roblox.com/index.php?title=API:Class/CFrameValue

0
Thank you so much! User#21908 42 — 6y
0
your welcome fanofpixels 718 — 6y
Ad

Answer this question