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

Moving a script from replicated storage to workspace activates it?

Asked by
TomsGames 225 Moderation Voter
10 years ago

http://www.roblox.com/Forum/ShowPost.aspx?PostID=126307091#126308843

That's basically the question... It's not activating!

0
Scripting Helpers is not a place for you to ask people to help you on ROBLOX. The question needs to be posted here. Please edit your post. User#11893 186 — 10y

2 answers

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

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.

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. TomsGames 225 — 10y
0
Fixxed it, won't explain how it's kind of complicated and ugly. Thanks though! TomsGames 225 — 10y
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. adark 5487 — 10y
Ad
Log in to vote
0
Answered by
Emg14 10
9 years ago

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 > :]

Answer this question