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

How do I change a model's position?

I made this localscript for a tool that clones a union called "LightingModel" from Lighting to Workspace, and it's position is set to wherever I click, but I'd like to know how to set a model's position instead of having to make a union.

local lightingModel = game.Lighting.LightingModel:clone()

local player = game.Players.LocalPlayer

local mouse = player:GetMouse()

script.Parent.Activated:connect(function()

print(mouse.Hit.p)

lightingModel.Parent = game.Workspace

lightingModel.Position = mouse.Hit.p

lightingModel.Anchored = true

end)

Thank you.

1 answer

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