I keep getting errors saying 18:21:51.490 - pully_in_pulled_position is not a valid member of ServerStorage and 18:21:51.489 - pully_in_pulled_position is not a valid member of ServerStorage I understand why I just want to know how I fix it? here's the script
01 | local pully = script.Parent |
02 | local pully 2 = game.ServerStorage.pully_in_pulled_position |
03 | local pully 2 _workspace = game.Workspace.pully_in_pulled_position |
04 | local pully_serverstorage = game.ServerStorage.pully |
05 | function pull_up_then_down() |
06 | pully.Parent = game.ServerStorage |
07 | pully 2. Parent = game.Workspace |
08 | wait( 2 ) |
09 | pully.Parent = workspace |
10 | workspace.pully_in_pulled_position.parent = game.ServerStorage |
11 |
12 | end |
13 | script.Parent.ClickDetector.MouseClick:Connect(pull_up_then_down) |
help please
Hello. Try using WaitForChild()
on "pully_in_pulled_position". This will ensure the pully will be inside ServerStorage
.
01 | local pully = script.Parent |
02 | local pully 2 = game.ServerStorage:WaitForChild( "pully_in_pulled_position" ) |
03 | local pully 2 _workspace = game.Workspace.pully_in_pulled_position |
04 | local pully_serverstorage = game.ServerStorage.pully |
05 | function pull_up_then_down() |
06 | pully.Parent = game.ServerStorage |
07 | pully 2. Parent = game.Workspace |
08 | wait( 2 ) |
09 | pully.Parent = workspace |
10 | workspace.pully_in_pulled_position.parent = game.ServerStorage |
11 |
12 | end |
13 | script.Parent.ClickDetector.MouseClick:Connect(pull_up_then_down) |
Tell me in the comments if it says something like Infinite yield possible on game.ServerStorage.pully_in_pulled_position
. Please upvote and accept this answer if it helped you.
There needs to be an object in server storage by the name of "pully_in_pulled_position"