PlayerAdded not working

Why don’t you make a variable for the part and put the script in ServerScriptService?
Also could you try rejoining studio?

Could you try re opening studio or something, there is nothing wrong with your original script and it should’ve worked in the first place

I rejoined the Studio still doesn’t work.

Can you take a screenshot of your output window

Have you updated studio recently?

Uh Can you record a vid or screenshot your output?

I tried this script:

wait(5) print("Start") game.Players.PlayerAdded:connect(function(player) print("Player Joined") end)

still doesn’t work. It prints Start, but nothing else.

That wouldn’t work, Because the Player would have joined from a long time.

I tried without wait and nothing happend.

I’ve tried the exact same thing, it works perfectly fine for me.

image

image

Well that one doesn’t work because you shouldn’t yield a playeradded function like that

Can you screenshot your output?

I am going to reinstall Roblox Studio and see if that fixes the problem.

Can you run the game, then open workspace while you’re in play mode and see if the part and script is still in there.

Are you even reading our messages? Can you screenshot your output?

1 Like

set anchored to true on the part

I reinstalled the Studio and made a new place, I used the same script and it worked.

I think my Studio was broken or something.

It updates as soon as I open it.