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)
theres no end on the last line. I'm also just saying this because I have never seen this type of thing happen
Locked by User#19524
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?