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

Why do my scripts stop working even when they're not disabled?

Asked by 3 years ago
Edited 3 years ago

I'm working on a "find the lost item" quest, and in the item I have a spinning and bouncing script among a few others, but once the quest is started, if the the quest item changes parent, gets cloned, moved to workspace, or even newly cframed all the scripts inside it stop working, weird right

1 answer

Log in to vote
0
Answered by
NGC4637 602 Moderation Voter
3 years ago
Edited 3 years ago

There are many reasons for a script to stop working. here are some common ones:

1.Your script errored. Your script encountered an exception and therefore fails, thus it stops working. You can check the developer console (press F9) to see errors (red text). We can help if you don't know what they mean. usually this is the format of an error:

(time): (script that errored):(line that went wrong) (reason for error)

2.WaitForChild cannot find something. You used WaitForChild on something that takes forever to load, and the dev console would give you a Infinite Yield Possible warning, meaning that the game thinks the WaitForChild function will wait forever. the warn looks like this:

(time): Infinite Yield Possible on ("(what you used waitforchild for)")

3.The script is just messing with the wrong things an example is changing startergui when really you should be changing the localplayer's playergui, or tweening a character's position when you should just change the character's humanoid's walkspeed. stuff like that.

perhaps you should try this:

in explorer, disable all the scripts inside your item. then, at a separate script, enable the scripts after the item is cloned to workspace.

0
if you get any errors, post a question here with the script that errored and also the error. we can perhaps help fix the errors NGC4637 602 — 3y
Ad

Answer this question