Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Error saying a value is not a valid member of Folder when it is?

ServerScript

playerchar.PlayerRootPart.Movement.Velocity = Vector3.new(game.ReplicatedStorage.Database.Characters.Ace.MoveRate.Value,0,0) -- MoveRate is not a valid member of Folder

http://prntscr.com/9kpphb ...Um, yes it is.

halp

2 comments

0

Have you tried using WaitForChild?

0

Yes. I've confirmed it's not because it's executing before MoveRate is loaded.

2 answers

Maybe this will work?

 local Rate = game.ReplicatedStorage.Database.Characters.Ace:WaitForChild("MoveRate")
(Rate.Value,0,0)

1 comment

0

Says Rate is nil.

Maybe... just maybe...

playerchar:WaitForChild("PlayerRootPart").Movement.Velocity = Vector3.new(game.ReplicatedStorage:WaitForChild("Database"):WaitForChild("Characters"):WaitForChild("Ace"):WaitForChild("MoveRate").Value,0,0) 

This discussion is preserved as it was. New answers, comments, and votes are closed.