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

Moving a script from replicated storage to workspace activates it?

2 answers

✓ Accepted answer

I don't understand exactly what you're trying to do, but the easiest way to force a script to run is to toggle its Disabled property to false and then to true.

By the way, you can post hyperlinks using the toolbar above the text box, so please do so! Also, please post your entire question here when you ask a question. It makes it easier to answer your questions quickly and more accurately.

3 comments

0

This is a model inside the camera, so it's all local. Does this change anything? Also the script goes into a local model. Toggling from disabled to enabled does not activate it seemingly.

0

Fixxed it, won't explain how it's kind of complicated and ugly. Thanks though!

0

Ah, that changes this completely. No script will run inside of a local part. To accomplish the welding, you're going to have to use a LocalScript, placed somewhere it will run, like the PlayerGui.

On the forum, you can't do this: script.Disabled = false Since the script is not running, it won't the above line/. Just make another script that disabled the script:

local Script = put the location of script here
if cnditionbeforeitrunsthescript == trur then
Script.Disabled = false
end
--Just a seudo code generated by me > :]

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