I have a weapon local script that finds weapon configuration values by finding the IntValues in the tool. This way I can create different weapons on the fly without having to dive into the script itself. The script works fine in solo, but breaks down in the test server. Here's the code I use to find the configurations.

local VELOCITY = script.Parent.Configuration.Velocity.Value

Weapon

Local Script

Configuration

	Velocity (Int Value)

While this works just fine solo, I get an error as soon as I load the server:

Configuration is not a valid member of Tool

Configuration is clearly there when I go to check.

Is something with it being a server causing the Local Script to break down?

2 comments

2

Try :WaitForChild

1

Hey, that worked. I guess it was looking for the child before it was loaded? Thanks!