print(animatedparts.Name)
if animatedparts:IsA("Part") then
print(animatedparts.Parent)
if animatedparts.Parent:IsA("Model") then return end
animatedparts.Changed:Connect(function(prop)
print(prop)
if prop == animatedparts:GetAttribute("Completed") then
animate(animatedparts)
end
end)
end
end```
(local script)
#it wont loop through everything
1 messages · Page 1 of 1 (latest)
is streamingenabled on
what is that
what
oh
try without
all the parts that am loading are in my render distance tho
well
most of them
ok
it didnt change anything
oh i see its folders too the streamingenabled wont even help
also i dont see why return
what about continue?
so it does the next thing in the loop
i jsut want it to loop throught all that parts
print(animatedparts.Name)```
but it only prints 4 parts and just stops
thats because i dont want it to loop through the models
doesnt it already do that?
bruh
lemme change that
it works now :D
wait i have 1 more question
in a different script it changes the attribute "Completed" to true and i tested that and it works but the function never fires in the script i showed u
print(prop)
if prop == animatedparts:GetAttribute("Completed") then
animate(animatedparts)
end
end)```
just put if animatedparts:GetAttribute("Completed") then
because that means if true
i dont think the prop variable is even anything
oh
it doesnt even print prop
getattributechangedsignal
google getattributechangedsignal roblox studio documentation
ok
why is it saying this 14:20:24.200 argument #1 expects a string, but function was passed - Client - AnimationScript:51
print("changed!")
if animatedparts:GetAttribute("Completed") == true then
animate(animatedparts)
end
end)```
connect function
GetAttributeChangedSignal:Connect
the GetAttributeChangedSignal thing relpaced :Connect()
what line is that
that doesnt work
what line is that
@twin zealot
animatedparts:GetAttributeChangedSignal:Connect()(function()
no
wait
animatedparts:GetAttributeChangedSignal("Completed"):Connect(function()
now it says 14:24:59.818 Argument 1 missing or nil - Client - AnimationScript:50
@twin zealot
oh
nvm i fixed it