Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by
drew1017 330 Moderation Voter
9 years ago

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

0
Have you tried using WaitForChild? Spongocardo 1991 — 9y
0
Yes. I've confirmed it's not because it's executing before MoveRate is loaded. drew1017 330 — 9y

2 answers

Log in to vote
0
Answered by
Chronomad 180
9 years ago

Maybe this will work?

 local Rate = game.ReplicatedStorage.Database.Characters.Ace:WaitForChild("MoveRate")
(Rate.Value,0,0)
0
Says Rate is nil. drew1017 330 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

Maybe... just maybe...

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

Answer this question