Hello, I have a function, and I want to find the destination of the model that passes through it. I have done it so it finds the part Destination, I just dont know what would go at the --something here comment. I am trying to get the value of Destination and then calling the appropriate. function.
local function onTouch(part)
if part.Parent:findFirstChild("Destination") then
--Something here
if Destination.Value == "York" then
InL()
end
end
end
script.parent.Collider.Touched:connect(onTouch)
If anyone could help that would be great!
Thanks.
