Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Tools moving models? [CLOSED] [closed]

Asked by 7 years ago
Edited 7 years ago

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)
0
The lighing is not used any more to store models please use replicated storage, also are you using filtering? User#5423 17 — 7y
0
no MrMinecraft998887 87 — 7y
0
From what i can tell all you need to do is the the car parent e.g. car.Parent = game.Workspace User#5423 17 — 7y
0
thanks MrMinecraft998887 87 — 7y
View all comments (2 more)
0
if this is resolved pls add [closed] to the title User#5423 17 — 7y
0
It fixed a problem and made another. MrMinecraft998887 87 — 7y

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?

1 answer

Log in to vote
0
Answered by 7 years ago

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

Ad