Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error after asserting an Instance property and using one of the Instance's methods #1579

Open
someone19204 opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@someone19204
Copy link

In this example code Instance.FindFirstChild later results in type errors when trying to access the part.

--!strict
local part = Instance.new("Part")
assert(part.CanCollide)
if part:FindFirstChild("Part") then print(part) end

image

@someone19204 someone19204 added the bug Something isn't working label Dec 19, 2024
@someone19204 someone19204 changed the title Type error after asserting an Instance property and using one of its functions Type error after asserting an Instance property and using one of the Instance's methods Dec 19, 2024
@someone19204
Copy link
Author

someone19204 commented Dec 19, 2024

This also seems to happen on children when using one of their methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant