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

Tools moving models? [CLOSED]

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

0

The lighing is not used any more to store models please use replicated storage, also are you using filtering?

0

no

0

From what i can tell all you need to do is the the car parent e.g. car.Parent = game.Workspace

0

thanks

0

if this is resolved pls add [closed] to the title

0

It fixed a problem and made another.

1 answer

theres no end on the last line. I'm also just saying this because I have never seen this type of thing happen

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