I am making a tool that clones a model in Lighting. I want to move the clone to Workspace and then to a specific block. I have this, can I have help:
local tool = script.Parent
local clickEvent = tool.ClickEvent
local spawnblock = game.Workspace.spawnblock
local clickEventConnection
local function createPart(location)
local car = game.Lighting.Assets.Car
car:clone()
car.CFrame = spawnblock.CFrame
end
local function onClick(player, clickLocation)
createPart(clickLocation)
end
local function onEquip()
clickEventConnection = clickEvent.OnServerEvent:connect(onClick)
end
tool.Equipped:connect(onEquip)

6 comments
The lighing is not used any more to store models please use replicated storage, also are you using filtering?
no
From what i can tell all you need to do is the the car parent e.g. car.Parent = game.Workspace
thanks
if this is resolved pls add [closed] to the title
It fixed a problem and made another.