Print() and wait() error in server script

So i’m not sure what’s wrong here this same script worked fine before?!??!

the print() and the wait() aren’t blue like they usually are not sure if I’ve missed something obvious?
image
image

wait(5)
print("loaded")
local Players = game:GetService("Players")
local RepStorage = game:GetService("ReplicatedStorage")
local RepFirst = game:GetService("ReplicatedFirst")
local SoundService = game:GetService("SoundService")
local Lighting = game:GetService("Lighting")

local TweenService = game:GetService("TweenService")



RepStorage:FindFirstChild("Punch").OnServerEvent:Connect(function(Player)
	print("nice")
end)

Yep, I don’t see a problem, might be a bug.

I don’t like this error

image

1 Like

Look at the count of your lines on the side; there will likely be a gap in between one of them. You’re gonna have to delete that “empty” line.

should i post this in studio bugs or is that not necessary, my studio has been acting up a recently stuff just isn’t working

Try to re-install your Roblox Studio then

1 Like

Okay, thanks that worked not sure why that happened in the first place

I have and i deleted the settings files and stuff

This may be caused by one of your plugins if you have one. Make sure to disable all of them, and try to restart Studio and try again. If it doesn’t help, just enable them back.

1 Like

Yeah not sure why it happens sometimes or what causes those to appear; seems to be a recent occurrence.

1 Like