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.
Use the MoveTo function: http://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo