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

[Solved] Why does my script do nothing after enabling it?

Asked by 3 years ago
Edited 3 years ago

I have a script that is disabled on startup and when i set Disabled to false it doesn't do anything, i tried putting a print("Test") in the very first line but still wont work. there isn't any errors or anything. The script enabling the other script is a SS and so is the script that I'm trying to get working. This has worked in other games I'm making but sometimes it randomly wont work,

0
This might help a bit: What is the script for, and WHY does it need to be disabled? If you want it to run at a certain time, then use an event thing: someEvent.EventHappened:Connect(function() print("Im doing something") end) mine_theblocks 23 — 3y
0
I cant use events for it bcs then every script would do that, i have a sound where once i want to play it i clone the sound and enable the script that plays it then waits for it to finish and then deletes the sound, there would be multiple sounds and other effects going on at once. I dont know what i did but it works now EiOooAxea 70 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Hello, make sure you make it enabled again from server script.

script.Disabled = false -- if this doesnt work from server script try that:
script.Disabled.Value = false -- I dont work with disable statement but one of that should work
0
did that wont still work EiOooAxea 70 — 3y
0
it changes the disabled to false but the script wont just run EiOooAxea 70 — 3y
0
it changes the disabled to false but the script wont just run EiOooAxea 70 — 3y
0
I dont really know than dude. BeautifulAuraLover 371 — 3y
Ad

Answer this question