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
local pully = script.Parent local pully2 = game.ServerStorage.pully_in_pulled_position local pully2_workspace = game.Workspace.pully_in_pulled_position local pully_serverstorage = game.ServerStorage.pully function pull_up_then_down() pully.Parent = game.ServerStorage pully2.Parent = game.Workspace wait(2) pully.Parent = workspace workspace.pully_in_pulled_position.parent = game.ServerStorage end 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
.
local pully = script.Parent local pully2 = game.ServerStorage:WaitForChild("pully_in_pulled_position") local pully2_workspace = game.Workspace.pully_in_pulled_position local pully_serverstorage = game.ServerStorage.pully function pull_up_then_down() pully.Parent = game.ServerStorage pully2.Parent = game.Workspace wait(2) pully.Parent = workspace workspace.pully_in_pulled_position.parent = game.ServerStorage end 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"