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

How do I move something from Lighting to Workspace? [closed]

Asked by
Jephi 42
8 years ago

The models name is arena1

0
Um why the hell would you have an object in the lighting service. Here I'll post maw answer in a sec. LateralLace 297 — 8y

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

3 answers

Log in to vote
1
Answered by
3dsonicdx 163
8 years ago

Although it's probably better to store things in the ReplicatedStorage, lighting was the old way of doing things.

It's game.Lighting.arena1.Parent = workspace

should work.

0
Remember to include a code block or an inline code!!!!!! LateralLace 297 — 8y
0
BTW whoever upvoted this answer, only upvote answers that you think are detailed. LateralLace 297 — 8y
Ad
Log in to vote
1
Answered by 8 years ago

Alright well I have one question, why would you have an object in the lighting service. Well anyways, it's quite simple. You'd have to change the Parent property of that object (AKA the location of the object). So it would first look like this: game.Lighting.arena1.Parent . Now we have to set the parent property of arena1 to the Workspace. So we'd specify the parent using "=" , so the final product would be this:

game.Lighting.arena1.Parent = game.Workspace --we set the parent property of that object to the Workspace

Well it wasn't much :/. Please if you're asking questions, don't let it be this simple. Look it up er something. Anyways I hope this helped. If you have any questions, please post a comment below. Otherwise, if you have other questions I have some helpful links below. YOUR WELCOME!!!

LINKS:

Roblox Wiki: http://wiki.roblox.com/index.php/Scripting#Roblox-Defined_Types

The Parent Property: http://wiki.roblox.com/index.php?title=API:Class/Instance/Parent

"Posting good questions" Article: https://scriptinghelpers.org/help/how-post-good-questions-answers

Community Guidlines: https://scriptinghelpers.org/help/community-guidelines

Log in to vote
0
Answered by 8 years ago

Well, You could do this script :

This should make your model go to workspace.

--Script Made by NeonTurtle2001 (Credit) while true do wait() local Model = game.Lighting.arena1 for I = 1, #Model do local yes = true if yes then Model.Parent = game.Workspace return end end end return end

0
Again guys, PUT YOUR SCRIPTS INTO CODE BLOCKS. By The Way dude all he wants is the code, not a whole entire script. LateralLace 297 — 8y