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

can i basicly undo this without this error becuase it seemes impossible?

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

2 answers

✓ Accepted answer

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.

1 comment

0

I gave up on this idea dont tell anyone but im still accepting

There needs to be an object in server storage by the name of "pully_in_pulled_position"

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