Scripts not working at all

This is a support category for asking questions about how to get something done on the Roblox websites or how to do something on Roblox applications such as Roblox Studio.

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

  1. What do you want to achieve? Working scripts

  2. What is the issue? Any script I make doesn’t work at all. I’ve only tried making them in the workspace, though.

  3. What solutions have you tried so far? Tried in a new workspace, didn’t work. Tried deleting plugins because i thought it was a virus or something? It didn’t work either.

scriptscreenshot

4 Likes

Are you trying to have the brick become a random brick color?

2 Likes

Yeah. I want the colour to change when the part is clicked. Although, I think I’ve used the same script before and it work. My scripts just haven’t been working lately.

2 Likes
script.Parent.ClickDetector.MouseClick:Connect(function()
	
	local num = math.random(0, 255)
	local num2 = math.random(0, 255)
	local num3 = math.random(0, 255)
	
	script.Parent.Color = Color3.fromRGB(num, num2, num3)
end)

If this works then mark it as solution

2 Likes

I meant that none of my scripts were working at all. Like any new script I add to a game doesn’t work, and I have no clue why

2 Likes

does the script above work? Or is it that scripts for you just aren’t working in general?

2 Likes

They don’t work in general, yeah

2 Likes

so even the default

print("Hello world!")

isnt working?

1 Like

Nope
I just tried it now and the output is completely empty

1 Like

That is weird.

So a normal script in the workspace doesn’t show up in the output when you press play?

Have you tried tunning the application on and off again?

1 Like

Yeah I reinstalled studio and everything

1 Like

And it’s on every new baseplate you open? (even the Roblox starter kit places?)

I dunno what else to tell you. can you provide a file of one of the places this is happening to?

1 Like

wild

did u checked if all of your scripts have the “disabled” property turned off?

1 Like

Ensure this is a " script " not a localScript, and it’s placed in Workspace.

If you still see no output it might be a bug, you might want to report it in the ‘Bug report’ Category or Roblox Support

1 Like

Wait, so the script to change the color of the part on click won’t work on a LocalScript? And the same for print scripts?

1 Like

Will your change-color script work on LocalScript? The short answer is Yes
The long one is
Script Runs on the server and can interact with most parts of the game, including the Workspace and server-side objects.
But
Local script Runs on the client and is typically used for GUI ,player-specific actions, etc

It won’t be working on server ( scripts ), because the click action is being taken by the clients(players) not the server

2 Likes

Thank you so much! I was wondering why everything wasn’t working

2 Likes

I’d avise you learn about the differences between the server and client and their use cases

1 Like

Will do! I only ever used to use localscripts because I was designing gui, so I don’t know much about normal scripts and I think it’s becoming an issue :sob:

2 Likes

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