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

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

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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.

0
I gave up on this idea dont tell anyone but im still accepting LTRNightmare 66 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question