Scripts work in Studio, but not in-game?

First, don’t store stuff in Lighting, use ReplicatedStorage

Second, are you using Accurate Play Solo?

https://www.robloxdev.com/api-reference/class/LocalScript

https://gyazo.com/e88b84ecce8525aa7eb8c65a6c523a02

A LocalScript will only run Lua code if it is a descendant of one of the following objects:

  • A Player’s Backpack , such as a child of a Tool
  • A Player’s character model
  • A Player’s PlayerGui
  • A Player’s PlayerScripts .
  • The ReplicatedFirst service

Make sure you are using a LocalScript instead of a Script for Detecting Input.


Game Development Resources [MEGA THREAD]

Basic Scripts

You will be needing those later. :wink:

1 Like