ServerScript isn't picking up a script

I’m trying to make a serverscript where I’m trying to define a script that is stored in ServerStorage. But for some reason, it isn’t picking up that there is a script inside of ServerStorage.


And here’s proof that the script is in serverstorage:
sdgdrs5rr5

Oh, what I’m trying to do with the script is to clone the script into a part.

That isn’t his problem, read the topic.

The intellisense isn’t working that is his problem.

I did some testing and it doesn’t pick up a script if the script is named after a function.

For example I named a script FindFirstChild and it didn’t pick it up.

But when I named the Destroy script to: “DestroyScript” it got picked up.

2 Likes

Wow, that actually helped. Thanks man!

1 Like

That’s not the issue, watch the video, and yes, scripts tend to run in ServerStorage, depending on what you use.

Because there’s already an event called :Destroy() which deletes the instances.

So that’s why. Ok. Thanks for letting me know. :slight_smile:

1 Like

Try:

local ServerStorage = game:GetService('ServerStorage')

local Destroy = ServerStorage:FindFirstChild('Destroy'):Clone()

-- Rest of your code here

My problem was solved a while ago.

Oh lol. Sorry.

3 0 characters here

1 Like