Script works on Roblox Studio but doesnt works on Roblox normal server

  1. I’m making an attack script with Remote Event and Fire Server

  2. https://streamable.com/jh2w7m (It works on Roblox Studio but doesnt works on Roblox normal server)

  3. I’ve tried changing

game.ReplicatedStorage

to

local rs = game:GetService(“ReplicatedStorage”)

but it didnt made effect

I didn’t find anything that could help me here on the site, please i need help

1 Like

Did you check the developer console while in-game?

I think there’s a virus in the scripting that is trying to require some content deleted model, there for creating an error before your script can run. Make sure there aren’t any scripts you don’t recognize, then also trying highlighting the entire script to see if there’s any suspicious sections.

yes i solved it now but my script still doesn’t work!

Could we eventually see the script?
Don’t forget to format it by adding ``` before and after the code.

Nvm i’ve solved it thank you guys