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

Did the removal of Loadlibrary cause my script not to work?

Asked by 4 years ago
Edited 4 years ago

My part has two scripts and one makes the part visible by transparency after 3 seconds and the other script makes the part spin at a certain pace. I don't know if the removal of loadlibrary caused this to no longer work. can someone tell me if the loadlibrary caused it to not work?

First script

wait(3)
script.Parent.Transparency = 0

Second script

while true do
    script.Parent.CFrame = script.Parent.CFrame * CFrame.EulerAnglesXYZ(0,0.1,0)
    wait()
end
0
this shouldntve been affected by loadlibrary. you are not using load library here.what exactly isnt workign? royaltoe 5144 — 4y
0
The transparency doesn't work and I can't see anything working with the part User#30241 0 — 4y
0
along with that, I don't know how it broke anyways it just didn't go to 0 after 3 seconds and no spinning User#30241 0 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

No, it's just that you typed EulerAnglesXYZ without the from so this is how you fix it in the second script :

while true do
    script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
    wait()
end
0
Maybe, but I don't know why the transparency doesn't work User#30241 0 — 4y
0
r u trying to make it invisible because transparency 1 is invisible and transparency 0 is visible HappyTimIsHim 652 — 4y
0
I was trying to make it visible but after 3 seconds still invisible User#30241 0 — 4y
Ad

Answer this question