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

Why does cloning a model into workspace that has a script inside it not fire it?

Asked by 4 years ago
Edited 4 years ago

I have a script inside a model, and whenever I clone it into workspace, the script does not get active. What is the cause?

Object being cloned into workspace:

while true do
    script.Parent.Velocity = script.Parent.CFrame.lookVector*10
    wait()
end

Script cloning it into workspace:

wait(2)

lol = game.ReplicatedStorage.Conveyor:Clone()
lol.Parent = workspace
0
Please edit your post with the script you have written, there's no way we can know without seeing your script. Marty999 82 — 4y
0
Updated goodadmins 111 — 4y
0
i think if you clone it while its disabled then enable the cloned script, it should work User#23252 26 — 4y
0
It's enabled when its inserted goodadmins 111 — 4y
0
Try writing code to make the script disabled then enabled again. RobloxGameingStudios 145 — 4y

Answer this question