Script has invisible, uneditable code?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

figure out what code is inside of this local script made by roblox

  1. What is the issue? Include screenshots / videos if possible!

I was trying to use Roblox’s pickaxe gear (Pickaxe - Roblox) for my game and when I went to try edit the local script named “Local Gui” it has LITERALLY NO VISIBLE CODE INSIDE OF IT, yet, it change’s the player’s mouse icon. If I write code inside of the script that appears to have no code, the code that I write doesn’t run at all. If I delete the script then it doesn’t change the player’s mouse when the tool is used. If I move the script to a different parent it errors and you can see the error in the output. Here are some pictures:

image

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried printing the code using print(script.Source) but it just errors, plus I tried searching alot online.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

I have no idea what is causing this please help

Did you try restarting Roblox Studio?

Strange. Is there any possibility that the text colour is the same as the background?
It may not help, but try turning off your dark mode setting, or going with a different shade if it’s available to you.

When you type do you see the cursor moving in the script window?

Is it only in this script, or have all scripts been affected in your place?

I don’t think it’s that because there’s only 1 line unless the entire client code for that tool is 1 line which I doubt

Even if it was all 1 line I guess it’d have a horizontal scrollbar and there isn’t one so

it happens to me too

ok this is weird: first time I restarted studio it asked to replace whatever “linked sources” was because it was deprecated and then it still didnt change anything, then the second time i restarted studio i could suddenly see the code, I will mark this post as a solution because you need to restart multiple times and that isnt clarified anywhere

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.